dbfe3c7c28
check_type() fails to reject optional members with reserved names,
because it neglects to strip off the leading '*'. Fix that.
The stripping in check_name_str() is now useless. Drop.
Also drop the "no leading '*'" assertion, because valid_name.match()
ensures it can't fail.
Fixes:
|
||
---|---|---|
.. | ||
__init__.py | ||
.flake8 | ||
.isort.cfg | ||
commands.py | ||
common.py | ||
error.py | ||
events.py | ||
expr.py | ||
gen.py | ||
introspect.py | ||
main.py | ||
mypy.ini | ||
parser.py | ||
pylintrc | ||
schema.py | ||
source.py | ||
types.py | ||
visit.py |