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:
7474 "disable_memoryview_promotion" ,
7575 "strict_bytes" ,
7676 "fixed_format_cache" ,
77+ "untyped_calls_exclude" ,
7778 }
7879) - {"debug_cache" }
7980
Original file line number Diff line number Diff line change @@ -6865,6 +6865,24 @@ if int():
68656865[out2]
68666866main:6: error: Incompatible types in assignment (expression has type "str", variable has type "int")
68676867
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+
68686886[case testMethodMakeBoundIncremental]
68696887from a import A
68706888a = A()
You can’t perform that action at this time.
0 commit comments