Closed
Description
The jsonschema
module has 3 type: ignore
comments that are not in PEP484 format. This results in the following error when running mypy
where referencing
has been imported:
$ mypy my_package
/usr/local/lib/python3.8/dist-packages/referencing/jsonschema.py:432: error: Invalid "type: ignore" comment
/usr/local/lib/python3.8/dist-packages/referencing/jsonschema.py:474: error: Invalid "type: ignore" comment
/usr/local/lib/python3.8/dist-packages/referencing/jsonschema.py:505: error: Invalid "type: ignore" comment
Found 3 errors in 1 file (errors prevented further checking)
The error produced is the same as reported here. However, newer versions of mypy
do not fix the issue, as the style is not correct.
These can't be ignored with the mypy ignore_errors = True
flag, because these are fatal errors that do not allow mypy to run over the rest of the codebase.
From what I can tell, the error messages just need an extra #
after the error code to allow mypy
to pass
Metadata
Metadata
Assignees
Labels
No labels