# Feature or enhancement ### Bug description: This is inconsistent: ```pycon >>> import inspect >>> type T = int >>> class C: pass ... >>> inspect.formatannotation(T) 'T' >>> inspect.formatannotation(C) '__main__.C' ``` ### CPython versions tested on: CPython main branch ### Operating systems tested on: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-157956 <!-- /gh-linked-prs -->
Feature or enhancement
Bug description:
This is inconsistent:
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs