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
# RBS # type rec = {foo: String, bar: Integer } # and having variable a typed as rec a.each do |x, y| # x and y appear as bot
I'm also assuming narrowing on key won't also work (but that's more of a feature request perhaps):
a.each do |x, y| if x == :foo # then y is a string
The text was updated successfully, but these errors were encountered:
Looks like it works with Steep 1.7.1. Can you give me some more detail to reproduce?
Sorry, something went wrong.
module A type context = { ?msg: Hash[interned, untyped], # identifiers ?identifiers: Hash[interned, untyped], # .... } def self?.hash_flat_merge: (context, context) -> context }
Then "#each" declares them as bot in steep.
bot
using latest rbs and steep.
💡 Optional keys are not supported and simply ignored in Steep. The implementation in RBS was finished, but the Steep side slipped my mind. 🙇
@sampersand You may be interested in working for this.
No branches or pull requests
I'm also assuming narrowing on key won't also work (but that's more of a feature request perhaps):
The text was updated successfully, but these errors were encountered: