Skip to content

Commit 19c49a3

Browse files
committed
SQ: Fix bad merge
1 parent acd2035 commit 19c49a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

trycast/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)