Skipping analyzing "feedparser.util": module is installed, but missing library stubs or py.typed marker
Asked Answered
E

1

8

How do I fix this error? It seems feedparser does not support mypy typings? I could not find a typeshed implementation for feedparser

UPDATE 1

I see an option called ignore_missing_imports that I can add to pyproject.toml. Isn't it a bad idea to do this?

Embryo answered 11/8, 2022 at 5:20 Comment(0)
R
10

I see an option called ignore_missing_imports that I can add to pyproject.toml. Isn't it a bad idea to do this?

Yes, it usually is a bad idea to enable this on all modules. Consider using a more constrained approach:

You can ignore missing imports only for this specific package by adding a [tools.mypy.override] section in pyproject.toml. This way you don't need enable the flag on everything.

[[tool.mypy.overrides]]
module = "feedparser.*"
ignore_missing_imports = true

The work for supporting typing in feedparser has been merged to the develop branch and you should be able to remove this workaround when it is released.

Rooky answered 17/8, 2022 at 15:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.