HomeSoftware Heritage

Fix typing issue

Description

Fix typing issue

response.content_type is set by Dulwich, but isn't part of urllib3's
HTTPResponse, so we shouldn't rely on it.
(And it makes mypy complain when the 'types-urllib3' package is installed)

Details

Provenance
vlorentzAuthored on Jan 10 2022, 5:01 PM
vlorentzPushed on Jan 10 2022, 6:41 PM
Differential Revision
D6900: Fix typing issue
Parents
rDLDG0cc96c25ab81: tests: Remove the SWHTag mock, use dulwich.objects.Tag instead.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 25906
Build 40490: test-and-buildJenkins console · Jenkins