-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
INTERNAL ERROR when defining method argument type as class member in @runtime_checkable Protocol #10577
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
Labels
crash
priority-0-high
topic-protocols
topic-recursive-types
topic-type-alias
TypeAlias and other type alias issues
Comments
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 6, 2021
- Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 6, 2021
- Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 6, 2021
- Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 6, 2021
- Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 6, 2021
- Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Refactor backward-compatible `gcd` implementation into `symmetries` - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 6, 2021
- Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Refactor backward-compatible `gcd` implementation into `symmetries` - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 7, 2021
- Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Refactor backward-compatible `gcd` implementation into `symmetries` - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 7, 2021
- Fix addition/substraction operations to work more sanely w/ `H({})` - Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Refactor backward-compatible `gcd` implementation into `symmetries` - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 7, 2021
- Added `H.__hash__` - Fix addition/substraction operations to work more sanely w/ `H({})` - Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Refactor backward-compatible `gcd` implementation into `symmetries` - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
posita
added a commit
to posita/dyce
that referenced
this issue
Jun 7, 2021
- Added `H.__hash__` - Fix addition/substraction operations to work more sanely w/ `H({})` - Refactor `HAbleT` and move binary operations to `HAbleBinOpsMixin` and include them in docs - Refactor types out of classes (see python/mypy#10577) - Refactor backward-compatible `gcd` implementation into `symmetries` - Remove largly unused `relative` parameter from `H.data_xy` - Better tolerate `Integral`s in addition to `int`s to ease use with (e.g.) SageMath - Fix Risus graphic and other doc tweaks
ilevkivskyi
added a commit
that referenced
this issue
Aug 26, 2022
Fixes #6801 Fixes #10577 Fixes #12642 Fixes #12337 Fixes #10639 Fixes #13390 All these crashes are in a sense duplicates of each other. Fix is trivial, except I decided to ban type aliases in protocol bodies. Already in the examples in issues, I have found two cases where people wrote `foo = list[str]`, where they clearly wanted `foo: list[str]`. This can cause hard to spot false negatives.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
crash
priority-0-high
topic-protocols
topic-recursive-types
topic-type-alias
TypeAlias and other type alias issues
Uh oh!
There was an error while loading. Please reload this page.
Possibly related to: #9908, #10357, #10521, #10522.
Crash Report
Traceback
The text was updated successfully, but these errors were encountered: