From 8266383a725ecc6b787d08f965c0dbbf225d9d2c Mon Sep 17 00:00:00 2001 From: Avasam Date: Sun, 25 Feb 2024 16:09:07 -0500 Subject: [PATCH] Remove invalid `# type: ignore` statement 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]` --- src/validate_pyproject/pre_compile/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/validate_pyproject/pre_compile/__init__.py b/src/validate_pyproject/pre_compile/__init__.py index 0a597ca..4c03204 100644 --- a/src/validate_pyproject/pre_compile/__init__.py +++ b/src/validate_pyproject/pre_compile/__init__.py @@ -112,7 +112,6 @@ def load_licenses() -> Dict[str, str]: NOCHECK_HEADERS = ( "# noqa", - "# type: ignore", "# ruff: noqa", "# flake8: noqa", "# pylint: skip-file",