Page MenuHomeSoftware Heritage

Fix builds broken by mypy 0.920
Closed, MigratedEdits Locked

Description

A new release of mypy 0.920 is currently breaking our python builds.

I've filed an issue [1] about this as i don't clearly see what's the problem.

Another workaround would be to pin 0.910 in all tox.ini.

[1] https://github.com/python/mypy/issues/11769

Related Objects

Mentioned In
rTSBX113e0a5a9625: Pin mypy and drop type annotations which makes mypy unhappy
rDMFCDae5dbe16ccff: Pin mypy and drop type annotations which makes mypy unhappy
rDGRPH4d36535f9e58: Pin mypy and drop type annotations which makes mypy unhappy
rDCNTdb50e8217802: Pin mypy and drop type annotations which makes mypy unhappy
rDLSec7838123b0f: Pin mypy and drop type annotations which makes mypy unhappy
rDCIDXfcfdc21f099a: Pin mypy and drop type annotations which makes mypy unhappy
rDICPc4f025e849c1: Pin mypy and drop type annotations which makes mypy unhappy
rDFUSEe4e75768acf5: Pin mypy and drop type annotations which makes mypy unhappy
rDDOCa3aeb8ace15f: Pin mypy and drop type annotations which makes mypy unhappy
rDDEP9807be11d043: Pin mypy and drop type annotations which makes mypy unhappy
rDDATASET8d9fcb8edf6f: Pin mypy and drop type annotations which makes mypy unhappy
rDAUTH0cd18057732b: Pin mypy and drop type annotations which makes mypy unhappy
rDMODabb089d4cf41: Pin mypy and drop type annotations which makes mypy unhappy
rDWCLIb93e751f0d16: Pin mypy and drop type annotations which makes mypy unhappy
rDVAUab311983a8dc: Pin mypy and drop type annotations which makes mypy unhappy
rDSEA50fedafcf645: Pin mypy and drop type annotations which makes mypy unhappy
rDTSCN1b97932feb41: Pin mypy and drop type annotations which makes mypy unhappy
rDTPL8e232a888066: Pin mypy and drop type annotations which makes mypy unhappy
rDOPH7fd6dbac76e7: Pin mypy and drop type annotations which makes mypy unhappy
rDOBJSRPLfa5dfe038234: Pin mypy and drop type annotations which makes mypy unhappy
rDOBJS4238095a6c9a: Pin mypy and drop type annotations which makes mypy unhappy
rDLDSVN196c9d596bb2: Pin mypy and drop type annotations which makes mypy unhappy
rDLDHG2180cbbbbe60: Pin mypy and drop type annotations which makes mypy unhappy
rDLDG715fbe212d90: Pin mypy and drop type annotations which makes mypy unhappy
rDLDBASE32b2b7bba8b7: Pin mypy and drop type annotations which makes mypy unhappy
rDJNL4e5e00988a4e: Pin mypy and drop type annotations which makes mypy unhappy\n\nRelated to T3812
D6806: Fix typing which fails the build
D6850: Adapt coverage tooltip for debian based distributions

Event Timeline

ardumont triaged this task as Normal priority.Dec 16 2021, 12:40 PM
ardumont created this task.
ardumont updated the task description. (Show Details)
olasd renamed this task from Fix jenkins builds to Fix builds broken by mypy 0.920.Dec 16 2021, 2:23 PM

It was suggested to drop the type annotation in those files [1].

I'm currently planning to:

  • massively commit such changes
  • drop the copyright header (which are unnecessary in those files)
  • pin mypy to the current version (to avoid yet again those caveats later)

[1]

swh/__init__.py
swh/loader/__init__.py

Issue upstream closed.
Mostly all swh repository (besides loader-bzs which @Alphare will take care of) are back to green now.

As mypy has been pinned, we should no longer be disturbed by such an upstream change.

We'll need to attend to upgrading mypy once in a while though somehow.
Using swh-environment/bin/change-all-repos will be helpful then.

ardumont claimed this task.