File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -861,7 +861,7 @@ def _checkcast_typeddict(
861861
862862 try :
863863 # {typing in Python 3.9+, typing_extensions}.TypedDict
864- required_keys = tp .__required_keys__ # type: ignore[attr-defined, attribute-error] # mypy, pytype
864+ required_keys = typed_dict_class .__required_keys__ # type: ignore[attr-defined, attribute-error] # mypy, pytype
865865 except AttributeError :
866866 # {typing in Python 3.8, mypy_extensions}.TypedDict
867867 if options .strict :
@@ -876,7 +876,7 @@ def _checkcast_typeddict(
876876 f"specified kind of TypedDict. { advise } { advise2 } "
877877 )
878878 else :
879- if tp .__total__ : # type: ignore[attr-defined, attribute-error] # mypy, pytype
879+ if typed_dict_class .__total__ : # type: ignore[attr-defined, attribute-error] # mypy, pytype
880880 required_keys = resolved_annotations .keys ()
881881 else :
882882 required_keys = frozenset ()
You can’t perform that action at this time.
0 commit comments