Using mypy (original) (raw)
If you’re using mypy, you’ll need to turn onnamespace packages, otherwise mypy won’t be able to run correctly.
To turn on namespace packages, do one of the following:
Add the following to your project configuration file:
[tool.mypy]
namespace_packages = true
Or, use a command-line switch:
mypy --namespace-packages
Feedback
Was this page helpful?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!
Last modified February 24, 2025: [CI] Report `http` scheme in URL unless localhost, fix links (#6411) (c3365f29)