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

stubgen doesn't support new PEP 695 type aliases #17997

Closed
KapJI opened this issue Oct 19, 2024 · 0 comments · Fixed by #18054
Closed

stubgen doesn't support new PEP 695 type aliases #17997

KapJI opened this issue Oct 19, 2024 · 0 comments · Fixed by #18054
Labels
feature topic-pep-695 Issues related to PEP 695 syntax topic-stubgen

Comments

@KapJI
Copy link
Contributor

KapJI commented Oct 19, 2024

Bug Report

I see there is some work ongoing for adding PEP 695 support. Creating this issue to track support in stubgen.

To Reproduce

Run stubgen for:

type ListOrSet[T] = list[T] | set[T]

Expected Behavior

stubgen outputs:

type ListOrSet[T] = list[T] | set[T]

Actual Behavior

stubgen generates empty file.

Your Environment

  • Mypy version used: Latest master mypy 1.13.0+dev.603a3652b59c21e82927db407194b824b3ef7f7b
  • Mypy command-line flags: stubgen test.py
  • Python version used: 3.12.6
@KapJI KapJI added the bug mypy got something wrong label Oct 19, 2024
@AlexWaygood AlexWaygood added feature topic-stubgen topic-pep-695 Issues related to PEP 695 syntax and removed bug mypy got something wrong labels Oct 19, 2024
hamdanal added a commit to hamdanal/mypy that referenced this issue Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature topic-pep-695 Issues related to PEP 695 syntax topic-stubgen
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants