We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30417c commit 0a09606Copy full SHA for 0a09606
tests/functional/u/unidiomatic_typecheck.py
@@ -61,9 +61,15 @@ def parameter_shadowing_inference_negatives(type):
61
type(42) in [int]
62
type(42) not in [int]
63
64
-def deliberate_subclass_check_negatives(b):
+def deliberate_subclass_check_negatives(a,b):
65
type(42) is type(b)
66
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)
73
74
def type_of_literals_negatives(a):
75
type(a) is type([])
@@ -78,9 +84,3 @@ def type_of_literals_negatives(a):
78
84
type(a) != type({})
79
85
type(a) == type("")
80
86
type(a) != type("")
81
-
82
-def double_type_check_negatives(a, b):
83
- type(a) == type(b)
- type(a) != type(b)
- type(a) is type(b)
- type(a) is not type(b)
0 commit comments