Skip to content

Commit

Permalink
Remove invalid # type: ignore statement
Browse files Browse the repository at this point in the history
On mypy for PyPy, this causes a `[syntax]` error: https://github.com/pypa/setuptools/actions/runs/8040607909/job/21958905599?pr=4192#step:9:1517 **even if the file is excluded** (because it is imported)

On regular mypy this causes `error: Module "validate_pyproject.fastjsonschema_validations" has no attribute "validate"  [attr-defined]` (in setuptools, the exact error was: `error: Module "setuptools.config._validate_pyproject.fastjsonschema_validations" has no attribute "validate"  [attr-defined]`
  • Loading branch information
Avasam authored Feb 25, 2024
1 parent c1ddc1b commit 8266383
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/validate_pyproject/pre_compile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def load_licenses() -> Dict[str, str]:

NOCHECK_HEADERS = (
"# noqa",
"# type: ignore",
"# ruff: noqa",
"# flake8: noqa",
"# pylint: skip-file",
Expand Down

0 comments on commit 8266383

Please sign in to comment.