django rest框架的pep-484存根
djangorestframework-stubs的Python项目详细描述
django rest framework的pep484存根
我为DRF 3.9.x留了些小树桩。支持Python3.6和3.7。
安装
pip install djangorestframework-stubs
要让mypy知道这个插件,您需要添加
[mypy]
plugins =
mypy_drf_plugin.main
在您的mypy.ini
文件中。
获取帮助
我们这里有一个吉特https://gitter.im/mypy-django/Lobby。
如果您认为您有更一般的类型问题,请参考https://github.com/python/mypy和他们的gitter。