[issue44524] __name__ attribute in typing module
Łukasz Langa
report at bugs.python.org
Mon Jul 19 09:19:32 EDT 2021
Łukasz Langa <lukasz at langa.pl> added the comment:
> I think __module__ should be set to ‘typing’, and __qualname__ to ‘typing.WhatEver’.
PEP 3155 specifies that `__qualname__` does not include the module name:
https://www.python.org/dev/peps/pep-3155/#excluding-the-module-name
Rather, it's for nested classes and classes created in local scopes.
----------
nosy: +lukasz.langa
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44524>
_______________________________________
More information about the Python-bugs-list
mailing list