Skip to content

Commit b66f18e

Browse files
committed
always be total
1 parent 916f9d0 commit b66f18e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/typing_extensions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,8 +1089,7 @@ def __new__(cls, name, bases, ns, *, total=True, closed=None,
10891089
tp_dict.__optional_keys__ = frozenset(optional_keys)
10901090
tp_dict.__readonly_keys__ = frozenset(readonly_keys)
10911091
tp_dict.__mutable_keys__ = frozenset(mutable_keys)
1092-
if not hasattr(tp_dict, '__total__'):
1093-
tp_dict.__total__ = total
1092+
tp_dict.__total__ = total
10941093
tp_dict.__closed__ = closed
10951094
tp_dict.__extra_items__ = extra_items_type
10961095
return tp_dict

0 commit comments

Comments
 (0)