• 
      

    Activate enhanced typing for Django using django-stubs-ext.

    Review Request #14031 — Created July 12, 2024 and submitted

    Information

    Review Board
    release-7.x

    Reviewers

    django-stubs provides an extension for mypy that adds enhanced
    typing for Django, including correct handling of model fields. This
    change activates the plugin, giving us better typing by default.

    We also now specify the version of django-stubs we want to depend on.

    Verified that the type checker was happy with several of the models
    we have in the codebase.

    Summary ID
    Activate enhanced typing for Django using django-stubs-ext.
    `django-stubs` provides an extension for `mypy` that adds enhanced typing for Django, including correct handling of model fields. This change activates the plugin, giving us better typing by default. We also now specify the version of `django-stubs` we want to depend on.
    3fbb9571c9ca27b39e246fdbab5338cefad38237
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-7.x (f6b0d39)