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 @@ -332,8 +332,8 @@ def inner(*args, **kwds):
332
332
def _eval_type (t , globalns , localns , recursive_guard = frozenset ()):
333
333
"""Evaluate all forward references in the given type t.
334
334
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.
337
337
"""
338
338
if isinstance (t , ForwardRef ):
339
339
return t ._evaluate (globalns , localns , recursive_guard )
@@ -1097,7 +1097,7 @@ def __getattr__(self, attr):
1097
1097
return self ._name or self .__origin__ .__name__
1098
1098
1099
1099
# 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
1101
1101
if '__origin__' in self .__dict__ and not _is_dunder (attr ):
1102
1102
return getattr (self .__origin__ , attr )
1103
1103
raise AttributeError (attr )
You can’t perform that action at this time.
0 commit comments