Skip to content

Commit

Permalink
Corrected return type
Browse files Browse the repository at this point in the history
  • Loading branch information
randhircs committed Jan 15, 2025
1 parent f44145f commit 7dea911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lib/dependabot/python/file_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class FileParser < Dependabot::FileParsers::Base # rubocop:disable Metrics/Class
pipfile: "dev-packages",
lockfile: "develop"
}
].freeze, T::Array[T::Hash[T.untyped, T.untyped]])
].freeze, T::Array[T::Hash[Symbol, String]])
REQUIREMENT_FILE_EVALUATION_ERRORS = %w(
InstallationError RequirementsFileParseError InvalidMarker
InvalidRequirement ValueError RecursionError
Expand Down Expand Up @@ -198,7 +198,7 @@ def setup_python_environment
nil
end

sig { params(package_manager: String, version: String).returns(T.nilable(T::Boolean)) }
sig { params(package_manager: String, version: String).returns(T::Boolean) }
def log_if_version_malformed(package_manager, version)
# logs warning if malformed version is found
if version.match?(/^\d+(?:\.\d+)*$/)
Expand Down

0 comments on commit 7dea911

Please sign in to comment.