MCPcopy Index your code
hub / github.com/RustPython/RustPython / repl

Function repl

Lib/inspect.py:1343–1345  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

1341 return annotation
1342 if getattr(annotation, '__module__', None) == 'typing':
1343 def repl(match):
1344 text = match.group()
1345 return text.removeprefix('typing.')
1346 return re.sub(r'[\w\.]+', repl, repr(annotation))
1347 if isinstance(annotation, types.GenericAlias):
1348 return str(annotation)

Callers

nothing calls this directly

Calls 2

groupMethod · 0.45
removeprefixMethod · 0.45

Tested by

no test coverage detected