Skip to content

Commit b8d726e

Browse files
committed
do not let testRedundantExpressionWarningsForIfStatements use ... anymore
1 parent 03cdec6 commit b8d726e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test-data/unit/check-isinstance.test

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3039,30 +3039,30 @@ if isinstance(a, B):
30393039
from typing import Literal
30403040

30413041
if True: # E: If condition is always true
3042-
...
3042+
x = 1
30433043

30443044
if False: # E: If condition is always false
3045-
...
3045+
x = 1
30463046

30473047
class W:
30483048
...
30493049
if W():
3050-
...
3050+
x = 1
30513051

30523052
class X:
30533053
def __bool__(self) -> bool: ...
30543054
if X():
3055-
...
3055+
x = 1
30563056

30573057
class Y:
30583058
def __bool__(self) -> Literal[True]: ...
30593059
if Y(): # E: If condition is always true
3060-
...
3060+
x = 1
30613061

30623062
class Z:
30633063
def __bool__(self) -> Literal[False]: ...
30643064
if Z(): # E: If condition is always false
3065-
...
3065+
x = 1
30663066

30673067
[builtins fixtures/bool.pyi]
30683068

0 commit comments

Comments
 (0)