Page MenuHomeSoftware Heritage

api/throttling: Fix mypy errors after djangorestframework-stubs update
ClosedPublic

Authored by anlambert on Oct 30 2020, 3:58 PM.

Details

Summary
15:40:17  mypy run-test-pre: PYTHONHASHSEED='1405704389'
15:40:17  mypy run-test: commands[0] | mypy swh
15:40:29  swh/web/api/throttling.py:141: error: Cannot determine type of 'num_requests'
15:40:29  swh/web/api/throttling.py:142: error: Cannot determine type of 'num_requests'
15:40:29  Found 2 errors in 1 file (checked 155 source files)

Diff Detail

Repository
rDWAPPS Web applications
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 16765
Build 25853: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 25852: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Oct 30 2020, 4:01 PM

Build is green

Patch application report for D4390 (id=15539)

Rebasing onto f6cb156178...

Current branch diff-target is up to date.
Changes applied before test
commit b51ca62ef30e907b419b2791b6eb2ebdaa3dfdc1
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Fri Oct 30 15:52:25 2020 +0100

    api/throttling: Fix mypy errors after djangorestframework-stubs update

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