File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ class BuildType:
74
74
"disable_memoryview_promotion" ,
75
75
"strict_bytes" ,
76
76
"fixed_format_cache" ,
77
+ "untyped_calls_exclude" ,
77
78
}
78
79
) - {"debug_cache" }
79
80
Original file line number Diff line number Diff line change @@ -6865,6 +6865,24 @@ if int():
6865
6865
[out2]
6866
6866
main:6: error: Incompatible types in assignment (expression has type "str", variable has type "int")
6867
6867
6868
+ [case testUntypedCallsExcludeAffectsCache]
6869
+ # flags: --disallow-untyped-calls --untyped-calls-exclude=mod.Super
6870
+ # flags2: --disallow-untyped-calls --untyped-calls-exclude=mod
6871
+ # flags3: --disallow-untyped-calls --untyped-calls-exclude=mod.Super
6872
+ import mod
6873
+ [file mod.py]
6874
+ class Super:
6875
+ def draw(self):
6876
+ ...
6877
+ class Class(Super):
6878
+ ...
6879
+ Class().draw()
6880
+ [out]
6881
+ tmp/mod.py:6: error: Call to untyped function "draw" in typed context
6882
+ [out2]
6883
+ [out3]
6884
+ tmp/mod.py:6: error: Call to untyped function "draw" in typed context
6885
+
6868
6886
[case testMethodMakeBoundIncremental]
6869
6887
from a import A
6870
6888
a = A()
You can’t perform that action at this time.
0 commit comments