Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mypy/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class BuildType:
"disable_memoryview_promotion",
"strict_bytes",
"fixed_format_cache",
"untyped_calls_exclude",
}
) - {"debug_cache"}

Expand Down
18 changes: 18 additions & 0 deletions test-data/unit/check-incremental.test
Original file line number Diff line number Diff line change
Expand Up @@ -6865,6 +6865,24 @@ if int():
[out2]
main:6: error: Incompatible types in assignment (expression has type "str", variable has type "int")

[case testUntypedCallsExcludeAffectsCache]
# flags: --disallow-untyped-calls --untyped-calls-exclude=mod.Super
# flags2: --disallow-untyped-calls --untyped-calls-exclude=mod
# flags3: --disallow-untyped-calls --untyped-calls-exclude=mod.Super
import mod
[file mod.py]
class Super:
def draw(self):
...
class Class(Super):
...
Class().draw()
[out]
tmp/mod.py:6: error: Call to untyped function "draw" in typed context
[out2]
[out3]
tmp/mod.py:6: error: Call to untyped function "draw" in typed context

[case testMethodMakeBoundIncremental]
from a import A
a = A()
Expand Down
Loading