All Projects → caulagi → Django Mypy

caulagi / Django Mypy

Licence: mit
A django project to show use of mypy

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Django Mypy

Izone
django+bootstrap4 个人博客
Stars: ✭ 757 (+10714.29%)
Mutual labels:  django
Django Cachalot
No effort, no worry, maximum performance.
Stars: ✭ 790 (+11185.71%)
Mutual labels:  django
Django Registration
Django-registration (redux) provides user registration functionality for Django websites.
Stars: ✭ 823 (+11657.14%)
Mutual labels:  django
Try Django
Learn Django bit by bit in this series
Stars: ✭ 767 (+10857.14%)
Mutual labels:  django
Funpyspidersearchengine
Word2vec 千人千面 个性化搜索 + Scrapy2.3.0(爬取数据) + ElasticSearch7.9.1(存储数据并提供对外Restful API) + Django3.1.1 搜索
Stars: ✭ 782 (+11071.43%)
Mutual labels:  django
Django Rosetta
Rosetta is a Django application that eases the translation process of your Django projects
Stars: ✭ 806 (+11414.29%)
Mutual labels:  django
Cmdb
CMDB 配置管理系统 资产管理系统
Stars: ✭ 747 (+10571.43%)
Mutual labels:  django
Server
The Etebase server (so you can run your own)
Stars: ✭ 826 (+11700%)
Mutual labels:  django
Django Admin Bootstrap
Responsive Theme for Django Admin With Sidebar Menu
Stars: ✭ 787 (+11142.86%)
Mutual labels:  django
Social Network Harvester V1.0
Stars: ✭ 5 (-28.57%)
Mutual labels:  django
Django Admin Honeypot
🍯 A fake Django admin login screen page.
Stars: ✭ 768 (+10871.43%)
Mutual labels:  django
Imooc Django
高仿慕课网:py3.5 + Django1.10 + xadmin 搭建的在线课程教育平台
Stars: ✭ 774 (+10957.14%)
Mutual labels:  django
Booktype
Booktype is a free, open source platform that produces beautiful, engaging books formatted for print, Amazon, iBooks and almost any ereader within minutes.
Stars: ✭ 810 (+11471.43%)
Mutual labels:  django
Eventsourcing
A library for event sourcing in Python.
Stars: ✭ 760 (+10757.14%)
Mutual labels:  django
Django Prometheus
Export Django monitoring metrics for Prometheus.io
Stars: ✭ 823 (+11657.14%)
Mutual labels:  django
Promgen
Promgen is a configuration file generator for Prometheus
Stars: ✭ 754 (+10671.43%)
Mutual labels:  django
Django Summernote
Simply integrate Summernote editor with Django project.
Stars: ✭ 797 (+11285.71%)
Mutual labels:  django
Django Rest Framework Gis
Geographic add-ons for Django REST Framework. Maintained by the OpenWISP Project.
Stars: ✭ 830 (+11757.14%)
Mutual labels:  django
Django Urlarchivefield
A custom Django model field that automatically archives a URL
Stars: ✭ 5 (-28.57%)
Mutual labels:  django
Django Organizations
👫 Multi-user accounts for Django projects
Stars: ✭ 813 (+11514.29%)
Mutual labels:  django

django-mypy

A simple django project to show use of mypy

  • Create virtualenv with python 3

    $ virtualenv .env --python python3
    $ . ./.env/bin/activate
    
  • Install latest version of mypy from github

    $ git clone https://github.com/python/mypy
    $ git submodule update --init typeshed
    $ python setup.py install
    
  • $ pip install Django==1.9.5

  • Run mypy on the example django project

    $ MYPYPATH=`pwd`/out mypy polls/views.py
    polls/views.py: note: In function "detail":
    polls/views.py:23: error: Incompatible return value type: expected django.http.response.HttpResponse, got builtins.str
    

Creating more stubs

```
$ stubgen django.contrib
```

Disclaimer - WIP

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].