On 1/5/19 12:21 PM, Mike Miller wrote:> > On 1/5/19 12:34 AM, Ivan Levkivskyi wrote: > > > There is. Mypy supports final names, final methods and whatnot > > https://mypy.readthedocs.io/en/latest/final_attrs.html > > > Believe this^^ is the best answer, unfortunately buried.
The type hinting is physically separate (often in a different module) than the usage. If I'm looking at some code that uses the constant, the type hint is somewhere else. > Use typing hints for constants and tools that support them, and > all-caps is no longer needed. Requiring a tool/IDE to highlight this attribute is a step backwards. Can your email client find the type hint when it's in some other python module? Will proponents of type hints to provide this information also type them into answers on Stack Overflow? Dan _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/