MCPcopy Index your code
hub / github.com/python/cpython / _stringify_single

Function _stringify_single

Lib/annotationlib.py:883–892  ·  view source on GitHub ↗
(anno)

Source from the content-addressed store, hash-verified

881
882
883def _stringify_single(anno):
884 if anno is ...:
885 return "..."
886 # We have to handle str specially to support PEP 563 stringified annotations.
887 elif isinstance(anno, str):
888 return anno
889 elif isinstance(anno, _Template):
890 return ast.unparse(_template_to_ast(anno))
891 else:
892 return repr(anno)
893
894
895def get_annotate_from_class_namespace(obj):

Callers 1

call_annotate_functionFunction · 0.85

Calls 1

_template_to_astFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…