Type hints, PEP 561, and mypy-django

2018-07-22 Thread Luke Murphy
Hi folks, Following a short discussion over at: https://github.com/machinalis/mypy-django/issues/9, There is some renewed interest in getting stuck into type hints for Django. I wanted to drop a mail here to see what the status is. In preparation for this email, I've been combing the Django

Re: python manage.py inspectdb makes all fields with a default value blank=True, null=True

2018-07-22 Thread Collin Anderson
It's tricky to automatically convert the database default value to python, but I wonder if it would help to put the default value in a python comment at the end of the field? like: models.IntegerField(blank=True, null=True) # DB Default value: 1 That way it's more clear in models.py what's going