-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Crash on type alias bounded by and defaulted to itself #21128
Copy link
Copy link
Open
Labels
crashtopic-pep-695Issues related to PEP 695 syntaxIssues related to PEP 695 syntaxtopic-recursive-types
Description
Crash Report
Found while messing around.
Traceback
Collapsed for readability
Deferral trace:
__main__:1
__main__:1
__main__:1
__main__:-1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:-1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
__main__:1
<string>: error: INTERNAL ERROR: maximum semantic analysis iteration count reachedTo Reproduce
https://mypy-play.net/?mypy=master&python=3.14&gist=20fd30ebe61db2c71150e54a6c86a1bb
type A[T: A = A] = intPS > uvx mypy@https://github.com/python/mypy.git --show-traceback -c 'type A[T: A = A] = int'Your Environment
- Mypy version used: Current master
- Mypy command-line flags:
--show-traceback -c "code" - Mypy configuration options from
mypy.ini(and other config files): None - Python version used: 3.14? Whatever
uvxdoes. - Operating system and version: Windows 11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
crashtopic-pep-695Issues related to PEP 695 syntaxIssues related to PEP 695 syntaxtopic-recursive-types