mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-132491: Rename annotationlib.value_to_string to type_repr (#132492)
This commit is contained in:
parent
5e80fee41a
commit
11f6603845
6 changed files with 37 additions and 26 deletions
|
|
@ -253,7 +253,7 @@ def _type_repr(obj):
|
|||
if isinstance(obj, tuple):
|
||||
# Special case for `repr` of types with `ParamSpec`:
|
||||
return '[' + ', '.join(_type_repr(t) for t in obj) + ']'
|
||||
return _lazy_annotationlib.value_to_string(obj)
|
||||
return _lazy_annotationlib.type_repr(obj)
|
||||
|
||||
|
||||
def _collect_type_parameters(args, *, enforce_default_ordering: bool = True):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue