File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -320,8 +320,8 @@ def inner(*args, **kwds):
320
320
def _eval_type (t , globalns , localns , recursive_guard = frozenset ()):
321
321
"""Evaluate all forward references in the given type t.
322
322
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.
325
325
"""
326
326
if isinstance (t , ForwardRef ):
327
327
return t ._evaluate (globalns , localns , recursive_guard )
@@ -976,7 +976,7 @@ def __getattr__(self, attr):
976
976
return self ._name or self .__origin__ .__name__
977
977
978
978
# 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
980
980
if '__origin__' in self .__dict__ and not _is_dunder (attr ):
981
981
return getattr (self .__origin__ , attr )
982
982
raise AttributeError (attr )
You can’t perform that action at this time.
0 commit comments