Add support for mypy plugins to enable django-stubs testing in typeshed library #1990
huynguyengl99
started this conversation in
General
Replies: 1 comment
-
I will be happy to help from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We can support Django type checking via mypy's django-stubs plugin. The required mypy.ini configuration is simply:
With a minimal tests_settings.py file:
I propose we extend our typing tools to support mypy plugins by adding the "plugins" field to the KNOWN_METADATA_TOOL_FIELDS dictionary:
This would allow package maintainers to specify in their METADATA.toml:
This enhancement would enable proper stubtest functionality for Django-based stubs libraries. What do you think about this idea?
Beta Was this translation helpful? Give feedback.
All reactions