Skip to content
Myr

Remove unused type: ignore (#3038)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Remove unused type: ignore * Bump mypy version * Revert "Bump mypy version" This reverts commit 55b44b5d2f6f6b6417c197c653a43e3db3bf8804. * Bump mypy ---------

authored by Kar Petrosyan · committed by GitHub · parent ebc1393 · Browse files · 3 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Tom Christie <tom@tomchristie.com>

Diff stats

3 files+4 added−4 removed

  • other:+4 added−4 removed

3 files+4 added−4 removed

modified:httpx/_config.py+1 added-1 removed
183 unmodified lines
184 elif isinstance(self.cert, tuple) and len(self.cert) == 3:185 ssl_context.load_cert_chain(186 certfile=self.cert[0],187 keyfile=self.cert[1],188 password=self.cert[2], # type: ignore188 password=self.cert[2],189 )190191192class Timeout:
176 unmodified lines
modified:httpx/_multipart.py+2 added-2 removed
102 unmodified lines
103 if isinstance(value, tuple):104 if len(value) == 2:105 # neither the 3rd parameter (content_type) nor the 4th (headers)106 # was included107 filename, fileobj = value # type: ignore107 filename, fileobj = value108 elif len(value) == 3:109 filename, fileobj, content_type = value # type: ignore109 filename, fileobj, content_type = value110 else:111 # all 4 parameters included112 filename, fileobj, content_type, headers = value # type: ignore113 else:
156 unmodified lines
modified:requirements.txt+1 added-1 removed
18 unmodified lines
1920# Tests & Linting21coverage[toml]==7.4.022cryptography==41.0.723mypy==1.5.123mypy==1.8.024pytest==7.4.425ruff==0.1.926trio==0.22.227trio-typing==0.10.0
2 unmodified lines