Skip to content

Commit 2031149

Browse files
authored
Lib/typing.py copy edits originating from GH-31061 (#31684)
1 parent 46a116c commit 2031149

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
@@ -330,8 +330,8 @@ def inner(*args, **kwds):
330330
def _eval_type(t, globalns, localns, recursive_guard=frozenset()):
331331
"""Evaluate all forward references in the given type t.
332332
For use of globalns and localns see the docstring for get_type_hints().
333-
recursive_guard is used to prevent prevent infinite recursion
334-
with recursive ForwardRef.
333+
recursive_guard is used to prevent infinite recursion with a recursive
334+
ForwardRef.
335335
"""
336336
if isinstance(t, ForwardRef):
337337
return t._evaluate(globalns, localns, recursive_guard)
@@ -1036,7 +1036,7 @@ def __getattr__(self, attr):
10361036
return self._name or self.__origin__.__name__
10371037

10381038
# We are careful for copy and pickle.
1039-
# Also for simplicity we just don't relay all dunder names
1039+
# Also for simplicity we don't relay any dunder names
10401040
if '__origin__' in self.__dict__ and not _is_dunder(attr):
10411041
return getattr(self.__origin__, attr)
10421042
raise AttributeError(attr)

0 commit comments

Comments
 (0)