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 @@ -330,8 +330,8 @@ def inner(*args, **kwds):
330
330
def _eval_type (t , globalns , localns , recursive_guard = frozenset ()):
331
331
"""Evaluate all forward references in the given type t.
332
332
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.
335
335
"""
336
336
if isinstance (t , ForwardRef ):
337
337
return t ._evaluate (globalns , localns , recursive_guard )
@@ -1036,7 +1036,7 @@ def __getattr__(self, attr):
1036
1036
return self ._name or self .__origin__ .__name__
1037
1037
1038
1038
# 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
1040
1040
if '__origin__' in self .__dict__ and not _is_dunder (attr ):
1041
1041
return getattr (self .__origin__ , attr )
1042
1042
raise AttributeError (attr )
You can’t perform that action at this time.
0 commit comments