Skip to content

Commit

Permalink
Chagned the type of variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
randhircs committed Feb 21, 2025
1 parent 91f85b7 commit a1ba7be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/lib/dependabot/python/metadata_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
require "dependabot/metadata_finders"
require "dependabot/metadata_finders/base"
require "dependabot/registry_client"
require "dependabot/python/authed_url_builder"
require "dependabot/python/name_normaliser"

module Dependabot
Expand All @@ -26,7 +25,7 @@ def homepage_url

private

sig { override.returns(T.nilable(Source)) }
sig { override.returns(T.nilable(Dependabot::Source)) }
def look_up_source
potential_source_urls = [
pypi_listing.dig("info", "project_urls", "Source"),
Expand Down Expand Up @@ -68,7 +67,7 @@ def source_from_description

# Failing that, look for a source where the full dependency name is
# mentioned when the link is followed
@source_from_description = T.let(nil, T.nilable(String))
@source_from_description = T.let(nil, T.nilable(Source))
@source_from_description =
potential_source_urls.find do |url|
full_url = Source.from_url(url)&.url
Expand Down Expand Up @@ -99,7 +98,7 @@ def source_from_homepage

return match_url if match_url

@source_from_homepage = T.let(nil, T.nilable(String))
@source_from_homepage = T.let(nil, T.nilable(Source))
@source_from_homepage =
potential_source_urls.find do |url|
full_url = Source.from_url(url)&.url
Expand Down

0 comments on commit a1ba7be

Please sign in to comment.