Skip to content

Commit 0002af7

Browse files
committed
making parse_file untyped
1 parent 84787e4 commit 0002af7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cargo/lib/dependabot/cargo/file_parser.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ def check_required_files
375375
raise "No Cargo.toml!" unless get_original_file("Cargo.toml")
376376
end
377377

378-
sig { params(file: DependencyFile).returns(T::Hash[String, T.untyped]) }
378+
sig { params(file: DependencyFile).returns(T.untyped) }
379379
def parsed_file(file)
380-
@parsed_file ||= T.let({}, T.nilable(T::Hash[String, T.untyped]))
380+
@parsed_file ||= T.let({}, T.untyped)
381381
@parsed_file[file.name] ||= TomlRB.parse(file.content)
382382
rescue TomlRB::ParseError, TomlRB::ValueOverwriteError
383383
raise Dependabot::DependencyFileNotParseable, file.path

0 commit comments

Comments
 (0)