-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement
Description
Lines 1354 to 1358 in d6d0548
def formatannotationrelativeto(object): | |
module = getattr(object, '__module__', None) | |
def _formatannotation(annotation): | |
return formatannotation(annotation, module) | |
return _formatannotation |
It is completely untested and unused in CPython's code base:


I will send a PR with some tests.
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement