On 4/23/2022 3:28 AM, Tobias HT wrote:
On the other hand, there's something I've been seeing around. I don't
know if it was introduced by Mypy or something, but its the use of
declaration files. I think they are saved as pyi files. They just have
the declaration of a python object, be it class or variable. What if
we just found a way of reusing that instead?
As they currently exist, stub files (.pyi files) don't contain enough
information. In particular, they don't have the metaclass information.
This could be changed, but at that point you basically have the
"forward" declaration, but it's hidden away where the interpreter can't
see it.
Eric
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/ZNZS7Q2MYGGDW5DJ4LOAQ2FOOULKQV3S/
Code of Conduct: http://python.org/psf/codeofconduct/