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

Invalid type syntax does not result in error #9415

Closed
erictraut opened this issue Nov 7, 2024 · 1 comment
Closed

Invalid type syntax does not result in error #9415

erictraut opened this issue Nov 7, 2024 · 1 comment
Labels
addressed in next version Issue is fixed and will appear in next published version bug Something isn't working

Comments

@erictraut
Copy link
Collaborator

The following should result in an error because this this is invalid syntax for a type expression.

def func(x: (list | set)[int]):
    reveal_type(x)

This comes from this typing forum discussion.

@erictraut erictraut added the bug Something isn't working label Nov 7, 2024
erictraut added a commit that referenced this issue Nov 7, 2024
…eates a union of generic types. These types should be specialized with default type arguments. This addresses #9415.
erictraut added a commit that referenced this issue Nov 7, 2024
…eates a union of generic types. These types should be specialized with default type arguments. This addresses #9415.
erictraut added a commit that referenced this issue Nov 8, 2024
…eates a union of generic types. These types should be specialized with default type arguments. This addresses #9415. (#9424)
@erictraut erictraut added the addressed in next version Issue is fixed and will appear in next published version label Nov 8, 2024
@erictraut
Copy link
Collaborator Author

This is addressed in pyright 1.1.389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed in next version Issue is fixed and will appear in next published version bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant