• 
      

    Add typing for all model manager associations.

    Review Request #13369 — Created Oct. 23, 2023 and submitted — Latest diff uploaded

    Information

    Review Board
    release-5.0.x

    Reviewers

    When associating a model manager, the type remains the default of a
    Manager[_ModelT]. Unless given a more specific type, callers won't see
    the methods on these managers.

    This change goes through the codebase and adds explicit typing for each
    model manager association. As a note for future associations, these must
    be typed as ClassVars in order to safely override the original types.

    Unit tests pass.

    Verified that I could access methods for some of the ones relevant to my
    query work without the type checker complaining.

    Commits

    Files