Skip to content

Commit e30f7ea

Browse files
committed
Move copy edits to #31684
1 parent 19e9207 commit e30f7ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/typing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ def inner(*args, **kwds):
332332
def _eval_type(t, globalns, localns, recursive_guard=frozenset()):
333333
"""Evaluate all forward references in the given type t.
334334
For use of globalns and localns see the docstring for get_type_hints().
335-
recursive_guard is used to prevent infinite recursion with a recursive
336-
ForwardRef.
335+
recursive_guard is used to prevent prevent infinite recursion
336+
with recursive ForwardRef.
337337
"""
338338
if isinstance(t, ForwardRef):
339339
return t._evaluate(globalns, localns, recursive_guard)
@@ -1097,7 +1097,7 @@ def __getattr__(self, attr):
10971097
return self._name or self.__origin__.__name__
10981098

10991099
# We are careful for copy and pickle.
1100-
# Also for simplicity we don't relay any dunder names
1100+
# Also for simplicity we just don't relay all dunder names
11011101
if '__origin__' in self.__dict__ and not _is_dunder(attr):
11021102
return getattr(self.__origin__, attr)
11031103
raise AttributeError(attr)

0 commit comments

Comments
 (0)