Hacker GitHub

← All repos

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

Mentions per year 12 mentions · busiest year 2022 (3)
20082026
  1. Wish Django Stubs dont need a Mypy plugin https://github.com/typeddjango/django-stubs
  2. 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…
  3. …in case it's useful, the django-stubs package provides mypy compatible type stubs for Django: https://github.com/typeddjango/django-stubs
  4. …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
  5. …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…
  6. …to install django-stubs[1]. It works great with mypy, but should also work well with pyright. [1]: https://github.com/typeddjango/django-stubs
  7. …use the same config as you use for ci checks from the command line. We use mypy + [django-stubs]( https://github.com/typeddjango/django-stubs ) (in a huge Django + drf project at day job) which includes a plugin for mypy allowing it to…
    comment by aleksanb · 2023-10-17 · in Mypy 1.6
  8. …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
  9. …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
  10. 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?
  11. …accepted in the current state of mypy and typing ecosystem. Try 'django-stubs' mentioned above too https://github.com/typeddjango/django-stubs , it's mostly complete. Mypy plugin inside takes care of a lot of stuff. Disclaimer: I'm a…
    comment by mkurnikov · 2019-12-02 · in Django 3
  12. 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