-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[1.7.13] type checker thinks RunRequest(...) returns None #23214
Comments
smackesey
pushed a commit
that referenced
this issue
Jul 25, 2024
it appears that when installed, `@record_custom` + `IHaveNew` is assuming `__new__` returns `None` instead of `Unknown` causing it to believe `x` is `None` for `x = RunRecord()` explicitly tag `__new__`'s return to `Self` to resolve resolves #23214 ## How I Tested These Changes manually made the change in `site-packages` of installed copy of `1.7.13`
hellendag
pushed a commit
that referenced
this issue
Jul 25, 2024
it appears that when installed, `@record_custom` + `IHaveNew` is assuming `__new__` returns `None` instead of `Unknown` causing it to believe `x` is `None` for `x = RunRecord()` explicitly tag `__new__`'s return to `Self` to resolve resolves #23214 ## How I Tested These Changes manually made the change in `site-packages` of installed copy of `1.7.13`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
examples of how this can manifest:
The text was updated successfully, but these errors were encountered: