Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest numpy is failing build with "syntax error" that cannot be disabled #13642

Closed
squarewave24 opened this issue Sep 9, 2022 · 1 comment
Closed
Labels
bug mypy got something wrong

Comments

@squarewave24
Copy link

while running mypy getting the following on site-packages/numpy

mypy src --show-error-codes     

/poetry_venv/lib/python3.10/site-packages/numpy/__init__.pyi:636: error: Positional-only parameters are only supported in Python 3.8 and greater  [syntax]
Found 1 error in 1 file (errors prevented further checking)
ERROR: 2

versions:

[[package]]
name = "mypy"
version = "0.942"
description = "Optional static typing for Python"
category = "dev"
optional = false
python-versions = ">=3.6"
[[package]]
name = "numpy"
version = "1.23.2"
description = "NumPy is the fundamental package for array computing with Python."
category = "main"
optional = false
python-versions = ">=3.8"

tool config:

[tool.mypy]
ignore_missing_imports = true
plugins = "sqlalchemy.ext.mypy.plugin"

@squarewave24 squarewave24 added the bug mypy got something wrong label Sep 9, 2022
@AlexWaygood
Copy link
Member

Duplicate of #13627, a pinned issue :)

@AlexWaygood AlexWaygood closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

2 participants