Skip to content
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

Better typing #189

Merged
merged 1 commit into from
Jun 1, 2022
Merged

Better typing #189

merged 1 commit into from
Jun 1, 2022

Conversation

kachick
Copy link
Owner

@kachick kachick commented Jun 1, 2022

Closes #26

Not all for the issue. But I can close major part.

@kachick kachick marked this pull request as draft June 1, 2022 10:51
@@ -13,7 +13,7 @@ class MonotonicGenerator
undef_method :instance_variable_set

def initialize
super()
super
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm bit negative for this change. 🤔

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kachick kachick marked this pull request as ready for review June 1, 2022 15:18
@kachick kachick merged commit a06dfc9 into main Jun 1, 2022
@kachick kachick deleted the better-typing branch June 1, 2022 15:18
Comment on lines +14 to +23
- range:
start:
line: 233
character: 23
end:
line: 233
character: 27
severity: ERROR
message: Type `::Numeric` does not have method `to_i`
code: Ruby::NoMethod
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code

(time.to_r * 1000).to_i

I hope ruby/rbs#1012 resolve this workaround.

Comment on lines +34 to +58
- range:
start:
line: 326
character: 8
end:
line: 326
character: 52
severity: ERROR
message: |-
UnexpectedError: undefined method `constr' for nil:NilClass

constr = rhs_result.constr.update_lvar_env do |lvar_env|
^^^^^^^
code: Ruby::UnexpectedError
- range:
start:
line: 326
character: 26
end:
line: 326
character: 52
severity: ERROR
message: sclass receiver must be instance type or singleton type, but type given
`untyped`
code: Ruby::UnsupportedSyntax
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

soutaro/steep#211

Looks intentional omitted 😮

kachick added a commit that referenced this pull request Jun 1, 2022
Comment on lines +34 to +47
- range:
start:
line: 326
character: 8
end:
line: 326
character: 52
severity: ERROR
message: |-
UnexpectedError: undefined method `constr' for nil:NilClass

constr = rhs_result.constr.update_lvar_env do |lvar_env|
^^^^^^^
code: Ruby::UnexpectedError
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

steep check is fault from some rbs incorrect definitions
1 participant