# Seeking Feedback: A Roadmap for Gradual Native Typing & Strengthening django-stubs (GSoC 2026 Draft)

**URL:** <https://forum.djangoproject.com/t/seeking-feedback-a-roadmap-for-gradual-native-typing-strengthening-django-stubs-gsoc-2026-draft/44424>\
**Category:** Google Season of Code\
**Created:** [March 8, 2026, 10:16pm UTC](https://forum.djangoproject.com/t/seeking-feedback-a-roadmap-for-gradual-native-typing-strengthening-django-stubs-gsoc-2026-draft/44424 "2026-03-08T22:16:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmedasar00](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ahmedasar00/32/30262_2.png) [@ahmedasar00](https://forum.djangoproject.com/u/ahmedasar00)\
**Post date:** [March 8, 2026, 10:16pm UTC](https://forum.djangoproject.com/t/seeking-feedback-a-roadmap-for-gradual-native-typing-strengthening-django-stubs-gsoc-2026-draft/44424/1 "2026-03-08T22:16:15Z")

</div>

I’ve been contributing to `django-stubs` recently (with Three merged PRs and more in progress) and I’m currently preparing my proposal for **GSoC 2026**. Before finalizing the formal document, I’d love to share my “Draft Ideas” and get your thoughts on whether this direction aligns with the community’s long-term vision.

Based on my research into **DEP-14** , the **2020 Technical Board statement** , and recent discussions, I’m proposing a **“Gradual Native Typing”** roadmap. Here are the core ideas I’m exploring, backed by community insights:

**1. The ‘Ratchet’ CI Strategy** Implementing a hybrid Mypy/Pyright CI setup to enforce type-checking only on modified or new files. This prevents adding “untyped” debt without the impossible task of fixing the entire legacy codebase at once.

- **Reference:** [Ryan Hiebert’s comment](https://forum.djangoproject.com/t/revisiting-types-in-django-dep-14/37832/13) regarding incremental type enforcement.

**2. Core Object Typing & Global Settings** Prioritizing native types for “low-hanging fruit” like `HttpRequest`, `HttpResponse`, and `global_settings.py` (using `dj-typed-settings` as a technical reference).

- **Reference:** [Apollo13’s feedback](https://github.com/django/new-features/issues/23#issuecomment-2849283302) and [Mariusz Felisiak’s summary](https://github.com/django/new-features/issues/23#issuecomment-3906249330) on starting with these core components.

**3. ORM Protocols & Structural Typing** Implementing conceptual contracts like `Resolvable` and `Compilable` to make the ORM expression pipeline understandable for type checkers without breaking its dynamic nature.

- **Reference:** [Simon Charette’s proposal](https://forum.djangoproject.com/t/revisiting-types-in-django-dep-14/37832/11) regarding Structural Typing and exploring **PEP 827** feasibility.

**4. The Hover Fix & IDE Discoverability** Adding concise one-liner docstrings to `.pyi` stubs to solve “discoverability” issues where IDEs fail to show helpful information on hover.

- **Reference:** [Discussion on django-developers](https://groups.google.com/g/django-developers/c/at-G0hZrfXE) regarding IDE issues mentioned by **Moshe Zadka**.

**5. Historical Alignment** I’ve also studied the [2020 Technical Board Statement](https://groups.google.com/g/django-developers/c/C_Phs05kL1Q/discussion) to ensure this roadmap respects the cautious and gradual approach established by the project’s leadership.

* * *

**Why am I sharing this now?** I want to ensure these tasks solve real pain points for Django developers and are achievable within a GSoC timeline.

- Does this roadmap feel like a “single, concrete project” (as per GSoC guidelines)?
- Are there other high-priority areas in `django-stubs` I should consider?

I’m currently refining these ideas with my mentor, **Thibaut Decombe** , but I’d value any feedback from the wider developer community.

**Looking forward to your thoughts!**
