Skip to content

Commit 485b120

Browse files
authored
Enable local_partial_types on mypy (#18370)
1 parent b2b32e7 commit 485b120

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mypy_self_check.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[mypy]
22

33
strict = True
4+
local_partial_types = True
45
disallow_any_unimported = True
56
show_traceback = True
67
pretty = True

test-data/unit/plugins/dyn_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from mypy.plugin import ClassDefContext, DynamicClassDefContext, Plugin
77
from mypy.types import Instance, get_proper_type
88

9-
DECL_BASES = set()
9+
DECL_BASES: set[str] = set()
1010

1111

1212
class DynPlugin(Plugin):

0 commit comments

Comments
 (0)