mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Fix indent
This commit is contained in:
parent
7ef22d6b96
commit
9f91e858ce
1 changed files with 3 additions and 3 deletions
|
@ -893,9 +893,9 @@ def _replace_arg(arg, tvars, args):
|
|||
if hasattr(arg, '_subs_repr'):
|
||||
return arg._subs_repr(tvars, args)
|
||||
if isinstance(arg, TypeVar):
|
||||
for i, tvar in enumerate(tvars):
|
||||
if arg.__name__ == tvar.__name__:
|
||||
return args[i]
|
||||
for i, tvar in enumerate(tvars):
|
||||
if arg.__name__ == tvar.__name__:
|
||||
return args[i]
|
||||
return _type_repr(arg)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue