[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass
STINNER Victor
report at bugs.python.org
Tue Aug 13 08:35:15 EDT 2019
STINNER Victor <vstinner at redhat.com> added the comment:
"from typing import *"
I like to run pyflakes time to time on the Python code base. Please avoid "import *" since it prevents pyflakes (and other code analyzers) to find bugs. Example:
$ pyflakes Tools/unicode/makeunicodedata.py
Tools/unicode/makeunicodedata.py:35: 'from typing import *' used; unable to detect undefined names
Tools/unicode/makeunicodedata.py:921: 'Iterator' may be undefined, or defined from star imports: typing
Tools/unicode/makeunicodedata.py:921: 'List' may be undefined, or defined from star imports: typing
Tools/unicode/makeunicodedata.py:921: 'Iterator' may be undefined, or defined from star imports: typing
...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37760>
_______________________________________
More information about the Python-bugs-list
mailing list