{ "info": { "author": "Maksim Kurnikov", "author_email": "maxim.kurnikov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\"mypy\n\n# pep484 stubs for Django framework\n\n[![Build Status](https://travis-ci.org/mkurnikov/django-stubs.svg?branch=master)](https://travis-ci.org/mkurnikov/django-stubs)\n[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)\n\nThis package contains type stubs and mypy plugin to provide more precise static types and type inference for Django framework. Django uses some Python \"magic\" that makes having precise types for some code patterns problematic. This is why we need to accompany the stubs with mypy plugins. The final goal is to be able to get precise types for most common patterns.\n\nSupports Python 3.6/3.7, and Django 2.1.x series.\n\nCould be run on earlier versions of Django, but expect some missing imports warnings.\n\n## Installation\n\n```\npip install django-stubs\n```\n\nTo make mypy aware of the plugin, you need to add\n\n```\n[mypy]\nplugins =\n mypy_django_plugin.main\n```\n\nin your `mypy.ini` file.\n\n\n## Configuration\n\nIn order to specify config file, set `MYPY_DJANGO_CONFIG` environment variable with path to the config file. Default is `./mypy_django.ini`\n\nConfig file format (.ini):\n```\n[mypy_django_plugin]\n\n# specify settings module to use for django.conf.settings, this setting\n# could also be specified with DJANGO_SETTINGS_MODULE environment variable\n# (it also takes priority over config file)\ndjango_settings = mysettings.local\n\n# if True, all unknown settings in django.conf.settings will fallback to Any,\n# specify it if your settings are loaded dynamically to avoid false positives\nignore_missing_settings = True\n\n# if True, unknown attributes on Model instances won't produce errors\nignore_missing_model_attributes = True\n```\n\n## To get help\n\nWe have Gitter here https://gitter.im/mypy-django/Lobby.\n\nIf you think you have more generic typing issue, please refer to https://github.com/python/mypy and their Gitter.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mkurnikov/django-stubs", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "emil-fixed-django-stubs", "package_url": "https://pypi.org/project/emil-fixed-django-stubs/", "platform": "", "project_url": "https://pypi.org/project/emil-fixed-django-stubs/", "project_urls": { "Homepage": "https://github.com/mkurnikov/django-stubs" }, "release_url": "https://pypi.org/project/emil-fixed-django-stubs/0.12.0/", "requires_dist": [ "mypy (<0.710,>=0.700)", "typing-extensions", "dataclasses" ], "requires_python": ">=3.6", "summary": "Django mypy stubs", "version": "0.12.0" }, "last_serial": 5413521, "releases": { "0.12.0": [ { "comment_text": "", "digests": { "md5": "ecd35df71b1c9ef542d712c07b535c25", "sha256": "bcb97b3b9215e874a1079e49d33ccd2bac0a5fd16ae81bbb1cd5c21ccfc3ac97" }, "downloads": -1, "filename": "emil_fixed_django_stubs-0.12.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ecd35df71b1c9ef542d712c07b535c25", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 276937, "upload_time": "2019-06-18T05:58:22", "url": "https://files.pythonhosted.org/packages/9c/af/35e50bcf1f5fef0c2695e99f39b21d84736c5f719327dc477ad6374521fe/emil_fixed_django_stubs-0.12.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "763075f7c916fb91d7c0e81570a119c6", "sha256": "72eb4b3d1b00eb1182c58efec14cb640b2cddc91e7d7fab0b0d5c3ceb3a506a6" }, "downloads": -1, "filename": "emil-fixed-django-stubs-0.12.0.tar.gz", "has_sig": false, "md5_digest": "763075f7c916fb91d7c0e81570a119c6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 139028, "upload_time": "2019-06-18T05:58:24", "url": "https://files.pythonhosted.org/packages/c0/94/75160c91e1d8e2e73ada08b1e937c7d5f84e1f5f32cfce41f17b20d9bb33/emil-fixed-django-stubs-0.12.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ecd35df71b1c9ef542d712c07b535c25", "sha256": "bcb97b3b9215e874a1079e49d33ccd2bac0a5fd16ae81bbb1cd5c21ccfc3ac97" }, "downloads": -1, "filename": "emil_fixed_django_stubs-0.12.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ecd35df71b1c9ef542d712c07b535c25", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 276937, "upload_time": "2019-06-18T05:58:22", "url": "https://files.pythonhosted.org/packages/9c/af/35e50bcf1f5fef0c2695e99f39b21d84736c5f719327dc477ad6374521fe/emil_fixed_django_stubs-0.12.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "763075f7c916fb91d7c0e81570a119c6", "sha256": "72eb4b3d1b00eb1182c58efec14cb640b2cddc91e7d7fab0b0d5c3ceb3a506a6" }, "downloads": -1, "filename": "emil-fixed-django-stubs-0.12.0.tar.gz", "has_sig": false, "md5_digest": "763075f7c916fb91d7c0e81570a119c6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 139028, "upload_time": "2019-06-18T05:58:24", "url": "https://files.pythonhosted.org/packages/c0/94/75160c91e1d8e2e73ada08b1e937c7d5f84e1f5f32cfce41f17b20d9bb33/emil-fixed-django-stubs-0.12.0.tar.gz" } ] }