Skip to content

Fix Ruby::UnannotatedEmptyCollection in steep check #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2024
Merged

Conversation

sue445
Copy link
Collaborator

@sue445 sue445 commented Dec 15, 2024

Warning: header_parser/parser.rb:97:37: [warning] Empty hash doesn't have type annotation
│ Diagnostic ID: Ruby::UnannotatedEmptyCollection
│
└         stdout.each_line.with_object({}) do |line, hash|
                                       ~~

Detected 1 problem from 1 file
rake aborted!
Command failed with status (1): [steep check]
/home/runner/work/ruby_header_parser/ruby_header_parser/Rakefile:24:in `block in <top (required)>'
/home/runner/work/ruby_header_parser/ruby_header_parser/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/opt/hostedtoolcache/Ruby/3.3.6/x64/bin/bundle:25:in `load'
/opt/hostedtoolcache/Ruby/3.3.6/x64/bin/bundle:25:in `<main>'
Tasks: TOP => rbs
(See full trace by running task with --trace)
```
Warning: header_parser/parser.rb:97:37: [warning] Empty hash doesn't have type annotation
│ Diagnostic ID: Ruby::UnannotatedEmptyCollection
│
└         stdout.each_line.with_object({}) do |line, hash|
                                       ~~

Detected 1 problem from 1 file
rake aborted!
Command failed with status (1): [steep check]
/home/runner/work/ruby_header_parser/ruby_header_parser/Rakefile:24:in `block in <top (required)>'
/home/runner/work/ruby_header_parser/ruby_header_parser/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/opt/hostedtoolcache/Ruby/3.3.6/x64/bin/bundle:25:in `load'
/opt/hostedtoolcache/Ruby/3.3.6/x64/bin/bundle:25:in `<main>'
Tasks: TOP => rbs
(See full trace by running task with --trace)
```
@sue445 sue445 merged commit 263fc5c into main Dec 15, 2024
4 checks passed
@sue445 sue445 deleted the fix_steep branch December 15, 2024 06:38
@sue445 sue445 added the chore Chore updates (Not included in release note) label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chore updates (Not included in release note)
1 participant