8000 Add flag to prohibit equality checks between non-overlapping checks by ilevkivskyi · Pull Request #6370 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Add flag to prohibit equality checks between non-overlapping checks #6370

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 13 commits into from
Feb 15, 2019
Prev Previous commit
Next Next commit
Improve one test
  • Loading branch information
Ivan Levkivskyi committed Feb 14, 2019
commit 85f48e31b8fed137d9dcf76833a5a1e67aab18af
2 changes: 1 addition & 1 deletion test-data/unit/check-expressions.test
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,7 @@ class D(C): ...
class Bad: ...

subclasses: List[Type[C]]
C in subclasses
object in subclasses
D in subclasses
Bad in subclasses # E: Non-overlapping container check (element type: "Type[Bad]", container item type: "Type[C]")
[builtins fixtures/list.pyi]
Expand Down
0