Skip to content

inspect.formatannotationrelativeto is not tested #138729

@sobolevn

Description

@sobolevn

cpython/Lib/inspect.py

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:

Image Image

I will send a PR with some tests.

Linked PRs

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions