8000 Exhaustiveness checking for match statements by JukkaL · Pull Request #12267 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Exhaustiveness checking for match statements #12267

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

Merged
merged 23 commits into from
Mar 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix type check
  • Loading branch information
JukkaL committed Mar 1, 2022
commit d3d04f9e15ee9feb3ceba73fcefd631f76a433fb
1 change: 1 addition & 0 deletions mypy/checkpattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ def get_var(expr: Expression) -> Var:


def get_type_range(typ: Type) -> 'mypy.checker.TypeRange':
typ = get_proper_type(typ)
if (isinstance(typ, Instance)
and typ.last_known_value
and isinstance(typ.last_known_value.value, bool)):
Expand Down
0