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
Bug Report
Related to Issue #13795, using certain types of tuple in a recursive TypeAlias causes mypyc to crash, even though mypy reports no errors.
mypyc
mypy
To Reproduce
from typing import TypeAlias RuleItem: TypeAlias = tuple["RuleItem"] | str def fun(value: RuleItem) -> None: pass
Also broken, with or without TypeAlias:
(After importing Union and Tuple from typing, of course.)
But these work:
(That second option turns out to be what I really wanted anyway.)
Actual Behavior
The mypy command reports no errors.
Running the mypyc command on an affected file emits no output (even with a --show-traceback option) and exits with status code 245.
--show-traceback
Running the mypyc.build.mypycify Python function on an affected file emits no output, and crashes Python with status code 139.
mypyc.build.mypycify
Your Environment
--strict
mypy.ini
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
Related to Issue #13795, using certain types of tuple in a recursive TypeAlias causes
mypyc
to crash, even thoughmypy
reports no errors.To Reproduce
Also broken, with or without TypeAlias:
(After importing Union and Tuple from typing, of course.)
But these work:
(That second option turns out to be what I really wanted anyway.)
Actual Behavior
The
mypy
command reports no errors.Running the
mypyc
command on an affected file emits no output (even with a--show-traceback
option) and exits with status code 245.Running the
mypyc.build.mypycify
Python function on an affected file emits no output, and crashes Python with status code 139.Your Environment
--strict
(optional)--show-traceback
(optional)mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: