Skip to content

Remove invalid top-of-the-file # type: ignore statement#159

Merged
abravalheri merged 1 commit intoabravalheri:mainfrom
Avasam:patch-2
Feb 27, 2024
Merged

Remove invalid top-of-the-file # type: ignore statement#159
abravalheri merged 1 commit intoabravalheri:mainfrom
Avasam:patch-2

Conversation

@Avasam
Copy link
Copy Markdown
Contributor

@Avasam Avasam commented Feb 25, 2024

On mypy for PyPy, this causes a [syntax] error: https://github.com/pypa/setuptools/actions/runs/8040607909/job/21958905599?pr=4192#step:9:1517

On regular mypy this causes [attr-defined] trying to import from fastjsonschema_validations (in setuptools, the exact error was: error: Module "setuptools.config._validate_pyproject.fastjsonschema_validations" has no attribute "validate" [attr-defined])

Both happen even if the file/folder is excluded (because it is imported)

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]`
@abravalheri abravalheri merged commit ab59195 into abravalheri:main Feb 27, 2024
@abravalheri
Copy link
Copy Markdown
Owner

Thank you very much @Avasam

@Avasam Avasam deleted the patch-2 branch August 15, 2024 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants