Skip to content

Commit e9d5cc7

Browse files
authored
Fix PEP 728 TypedDict.__closed__ annotation in typing_extensions (#14839)
1 parent 3c16181 commit e9d5cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/typing_extensions.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
239239
__readonly_keys__: ClassVar[frozenset[str]]
240240
__mutable_keys__: ClassVar[frozenset[str]]
241241
# PEP 728
242-
__closed__: ClassVar[bool]
242+
__closed__: ClassVar[bool | None]
243243
__extra_items__: ClassVar[AnnotationForm]
244244
def copy(self) -> Self: ...
245245
# Using Never so that only calls using mypy plugin hook that specialize the signature

0 commit comments

Comments
 (0)