Skip to content

Commit 0a09606

Browse files
Take zenlyj remark into account
1 parent f30417c commit 0a09606

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/functional/u/unidiomatic_typecheck.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,15 @@ def parameter_shadowing_inference_negatives(type):
6161
type(42) in [int]
6262
type(42) not in [int]
6363

64-
def deliberate_subclass_check_negatives(b):
64+
def deliberate_subclass_check_negatives(a,b):
6565
type(42) is type(b)
6666
type(42) is not type(b)
67+
type(42) == type(b)
68+
type(42) != type(b)
69+
type(a) is type(b)
70+
type(a) is not type(b)
71+
type(a) == type(b)
72+
type(a) != type(b)
6773

6874
def type_of_literals_negatives(a):
6975
type(a) is type([])
@@ -78,9 +84,3 @@ def type_of_literals_negatives(a):
7884
type(a) != type({})
7985
type(a) == type("")
8086
type(a) != type("")
81-
82-
def double_type_check_negatives(a, b):
83-
type(a) == type(b)
84-
type(a) != type(b)
85-
type(a) is type(b)
86-
type(a) is not type(b)

0 commit comments

Comments
 (0)