We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
error occurs simply for:
import polars
Here's output from my terminal showing my virtual env, a trivial .py, and running mypy on that trivial file
(polars_mwe) alex@Alexs-MacBook-Pro ~ % pip freeze mypy==1.0.0 mypy-extensions==1.0.0 polars-lts-cpu==1.6.0 tomli==2.0.1 typing_extensions==4.12.2 (polars_mwe) alex@Alexs-MacBook-Pro ~ % cat mwe.py import polars (polars_mwe) alex@Alexs-MacBook-Pro ~ % python -m mypy mwe.py .pyenv/versions/polars_mwe/lib/python3.8/site-packages/polars/ml/torch.py:1: error: disable_error_code: Invalid error code(s): unused-ignore [misc] Found 1 error in 1 file (checked 1 source file) (polars_mwe) alex@Alexs-MacBook-Pro ~ %
.pyenv/versions/polars_mwe/lib/python3.8/site-packages/polars/ml/torch.py:1: error: disable_error_code: Invalid error code(s): unused-ignore [misc]
mypy fails on any code that imports polars. I want to incorporate polars into an existing project that uses mypy, but cannot due to this issue.
polars
mypy does not fail for importing polars :)
(polars_mwe) alex@Alexs-MacBook-Pro ~ % python Python 3.8.11 (default, Nov 10 2021, 09:24:20) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import polars as pl >>> pl.show_versions() --------Version info--------- Polars: 1.6.0 Index type: UInt32 Platform: macOS-14.6.1-arm64-arm-64bit Python: 3.8.11 (default, Nov 10 2021, 09:24:20) [Clang 13.0.0 (clang-1300.0.29.3)] ----Optional dependencies---- adbc_driver_manager <not installed> altair <not installed> cloudpickle <not installed> connectorx <not installed> deltalake <not installed> fastexcel <not installed> fsspec <not installed> gevent <not installed> great_tables <not installed> matplotlib <not installed> nest_asyncio <not installed> numpy <not installed> openpyxl <not installed> pandas <not installed> pyarrow <not installed> pydantic <not installed> pyiceberg <not installed> sqlalchemy <not installed> torch <not installed> xlsx2csv <not installed> xlsxwriter <not installed> >>>
The text was updated successfully, but these errors were encountered:
ml.torch.py
FYI: we run mypy on the codebase on every commit, and it doesn't fail ;)
mypy
I suspect you just need to update to a more recent mypy than 1.0.0 🤔
Sorry, something went wrong.
You need to update your environment. We test against mypy. I will close this as there isn't any action here for us.
Successfully merging a pull request may close this issue.
Checks
Reproducible example
error occurs simply for:
Here's output from my terminal showing my virtual env, a trivial .py, and running mypy on that trivial file
Log output
Issue description
mypy fails on any code that imports polars. I want to incorporate
polars
into an existing project that uses mypy, but cannot due to this issue.Expected behavior
mypy does not fail for importing polars :)
Installed versions
The text was updated successfully, but these errors were encountered: