typeddjango/django-stubs
View on GitHub ↗ ★ 1,982 Python
PEP-484 stubs for Django
12 mentions on Hacker News by 10 people: 0 stories, 12 comments · first 2018-08-01 · latest 2026-05-14
20082026
-
Wish Django Stubs dont need a Mypy plugin https://github.com/typeddjango/django-stubs
comment by aitchnyu · 2026-05-14 · in Pyrefly v1.0 is here (fast type checker and language server for Python) -
There's a really nice typing plug-in for mypy that's been around a long time: https://github.com/typeddjango/django-stubs It is very disappointing that these new type checkers don't support plug-ins, so things like django-stubs aren't…
comment by infamia · 2026-03-17 · in Comparing Python Type Checkers: Typing Spec Conformance -
…in case it's useful, the django-stubs package provides mypy compatible type stubs for Django: https://github.com/typeddjango/django-stubs
comment by brylie · 2025-03-29 · in Plain – a web framework for building products with Python -
…Tangential, I'm waiting for Edgedb to become next SQL so all ORM moats like Django's are drained. https://github.com/typeddjango/django-stubs
comment by aitchnyu · 2025-01-30 · in "We're building a new static type checker for Python" -
…support such a dynamic interface as mypy's, it'll fare no better. We use mypy with [django-stubs]( https://github.com/typeddjango/django-stubs ) which works ok nowadays. There was an effort to create a typechecking plugin interface for…
comment by aleksanb · 2025-01-30 · in "We're building a new static type checker for Python" -
…to install django-stubs[1]. It works great with mypy, but should also work well with pyright. [1]: https://github.com/typeddjango/django-stubs
comment by josebama · 2024-02-18 · in Ask HN: Which Python type checker should I use? -
…there’s django-stubs which helps a little when running mypy. It’s not as good as pycharm though. https://github.com/typeddjango/django-stubs/tree/master
comment by jsmeaton · 2022-12-20 · in Boring Python: Code quality -
…at the cost of safety. There are type stubs for Django that somewhat avoid these compromises: https://github.com/typeddjango/django-stubs To be able to do this they have to use a Mypy plugin though. And even then it's still far from…
comment by henbruas · 2022-10-25 · in Python 3.11.0 final -
Mypy together with this plug-in gives you typing for django. https://github.com/TypedDjango/django-stubs
comment by Too · 2022-04-17 · in Is Rust Web Yet? -
There's been some work to add type-hinting to Django if that helps. Check out: https://github.com/TypedDjango/django-stubs#django-stubs https://gitter.im/mypy-django/Lobby
comment by collinmanderson · 2018-08-01 · in Django 2.1 released