We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
steep check
Example:
# a.rb class A def foo(val) val end end class B < A def foo(val, &block) block.call super(val, &nil) end end # a.rbs class A def foo: (String) -> String end class B < A def foo: (String) { (String) -> String} -> String end
Running Steep check:
$ steep check a.rb:9:15: UnexpectedBlockGiven: method_type=(::String) -> ::String (super(val, &nil))
Removing &nil works with steep check but breaks when using rbs/test/setup (with UnexpectedBlockError: unexpected block is given for ...).
&nil
rbs/test/setup
UnexpectedBlockError: unexpected block is given for ...
The text was updated successfully, but these errors were encountered:
nil
soutaro
Successfully merging a pull request may close this issue.
Example:
Running Steep check:
Removing
&nil
works withsteep check
but breaks when usingrbs/test/setup
(withUnexpectedBlockError: unexpected block is given for ...
).The text was updated successfully, but these errors were encountered: