Skip to content

Commit 7fba55f

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 01df048 commit 7fba55f

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
@@ -285,8 +285,8 @@ def inner(*args, **kwds):
285285
def _eval_type(t, globalns, localns, recursive_guard=frozenset()):
286286
"""Evaluate all forward references in the given type t.
287287
For use of globalns and localns see the docstring for get_type_hints().
288-
recursive_guard is used to prevent prevent infinite recursion
289-
with recursive ForwardRef.
288+
recursive_guard is used to prevent infinite recursion with a recursive
289+
ForwardRef.
290290
"""
291291
if isinstance(t, ForwardRef):
292292
return t._evaluate(globalns, localns, recursive_guard)
@@ -705,7 +705,7 @@ def __mro_entries__(self, bases):
705705

706706
def __getattr__(self, attr):
707707
# We are careful for copy and pickle.
708-
# Also for simplicity we just don't relay all dunder names
708+
# Also for simplicity we don't relay any dunder names
709709
if '__origin__' in self.__dict__ and not _is_dunder(attr):
710710
return getattr(self.__origin__, attr)
711711
raise AttributeError(attr)

0 commit comments

Comments
 (0)