File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3039,30 +3039,30 @@ if isinstance(a, B):
30393039from typing import Literal
30403040
30413041if True: # E: If condition is always true
3042- ...
3042+ x = 1
30433043
30443044if False: # E: If condition is always false
3045- ...
3045+ x = 1
30463046
30473047class W:
30483048 ...
30493049if W():
3050- ...
3050+ x = 1
30513051
30523052class X:
30533053 def __bool__(self) -> bool: ...
30543054if X():
3055- ...
3055+ x = 1
30563056
30573057class Y:
30583058 def __bool__(self) -> Literal[True]: ...
30593059if Y(): # E: If condition is always true
3060- ...
3060+ x = 1
30613061
30623062class Z:
30633063 def __bool__(self) -> Literal[False]: ...
30643064if Z(): # E: If condition is always false
3065- ...
3065+ x = 1
30663066
30673067[builtins fixtures/bool.pyi]
30683068
You can’t perform that action at this time.
0 commit comments