Page MenuHomeSoftware Heritage

mypy: Fix django related error by using stubs
ClosedPublic

Authored by anlambert on Mar 23 2021, 6:13 PM.

Details

Summary

Use django stubs for mypy to remove the following error in models.py:
Need type annotation for 'url'.

Diff Detail

Event Timeline

Build is green

Patch application report for D5313 (id=19062)

Rebasing onto b3d3ff6039...

Current branch diff-target is up to date.
Changes applied before test
commit 7ff9562451a29dab37c7444da979a015de7f8e7a
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Tue Mar 23 18:10:01 2021 +0100

    mypy: Fix django related error by using stubs
    
    Use django stubs for mypy to remove the following error in models.py:
    "Need type annotation for 'url'".

See https://jenkins.softwareheritage.org/job/DAUTH/job/tests-on-diff/45/ for more details.

This revision is now accepted and ready to land.Mar 23 2021, 6:15 PM