Skip to content

Commit 4716f70

Browse files
Lib/typing.py copy edits originating from GH-31061 (GH-31684)
(cherry picked from commit 2031149) Co-authored-by: Matt Bogosian <[email protected]>
1 parent fa69ec8 commit 4716f70

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
@@ -320,8 +320,8 @@ def inner(*args, **kwds):
320320
def _eval_type(t, globalns, localns, recursive_guard=frozenset()):
321321
"""Evaluate all forward references in the given type t.
322322
For use of globalns and localns see the docstring for get_type_hints().
323-
recursive_guard is used to prevent prevent infinite recursion
324-
with recursive ForwardRef.
323+
recursive_guard is used to prevent infinite recursion with a recursive
324+
ForwardRef.
325325
"""
326326
if isinstance(t, ForwardRef):
327327
return t._evaluate(globalns, localns, recursive_guard)
@@ -976,7 +976,7 @@ def __getattr__(self, attr):
976976
return self._name or self.__origin__.__name__
977977

978978
# We are careful for copy and pickle.
979-
# Also for simplicity we just don't relay all dunder names
979+
# Also for simplicity we don't relay any dunder names
980980
if '__origin__' in self.__dict__ and not _is_dunder(attr):
981981
return getattr(self.__origin__, attr)
982982
raise AttributeError(attr)

0 commit comments

Comments
 (0)