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

MyPy Support #253

Open
acederberg opened this issue Nov 6, 2024 · 1 comment
Open

MyPy Support #253

acederberg opened this issue Nov 6, 2024 · 1 comment

Comments

@acederberg
Copy link

Hi!

I am checking my code with mypy and would like to ask that we somehow add support. When I run mypy on my filters I get the following message:

scripts/filters/util.py:7: error: Skipping analyzing "panflute": module is installed, but missing library stubs or py.typed marker  [import-untyped]

This will not take much (so I suppose) and the work involved is pretty minimal.
Let me know if there are any issues with this and eventually I might get around to making a PR about it.

@acederberg acederberg changed the title Python Type Hinting MyPy Support Nov 6, 2024
@acederberg
Copy link
Author

For now, I am doing

[tool.mypy]
overrides = [
  {module = "panflute.*",ignore_missing_imports=true},
]

in pyproject.toml to suppress these errors.

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

No branches or pull requests

1 participant