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

Make type refinement to work with None in [a, b, c] #17152

Open
eladshoshani opened this issue Apr 22, 2024 · 0 comments
Open

Make type refinement to work with None in [a, b, c] #17152

eladshoshani opened this issue Apr 22, 2024 · 0 comments
Labels

Comments

@eladshoshani
Copy link

Following the bug report, when checking if multiple variables are not None using the syntax None in <some_collection> mypy should be able to refine the types of these variables to non-Optional types after this check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant