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
What language and solver does this apply to? Python, packaging
Describe the problem you are trying to solve. I want to typecheck my code, which is using from ortools.sat.python import cp_model, with mypy.
from ortools.sat.python import cp_model
Currently mypy just gives an error:
error: Skipping analyzing "ortools.sat.python": module is installed, but missing library stubs or py.typed marker [import]
Cff.:
Describe the solution you'd like Please add the py.typed marker, so that mypy accepts the module as typed.
py.typed
Describe alternatives you've considered Unfortunately it is currently not possible to force the mypy behaviour. Cf. python/mypy#8545
The text was updated successfully, but these errors were encountered:
improvement to PDLP, remove most GLPK from tests, add py.typed for CP…
6136a47
…-SAT and model_builder python modules: fix #3993
lperron
No branches or pull requests
What language and solver does this apply to?
Python, packaging
Describe the problem you are trying to solve.
I want to typecheck my code, which is using
from ortools.sat.python import cp_model
, with mypy.Currently mypy just gives an error:
Cff.:
Describe the solution you'd like
Please add the
py.typed
marker, so that mypy accepts the module as typed.Describe alternatives you've considered
Unfortunately it is currently not possible to force the mypy behaviour. Cf. python/mypy#8545
The text was updated successfully, but these errors were encountered: