(match)
| 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) |
nothing calls this directly
no test coverage detected