From: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:03:09 +0000 (+0400) Subject: Remove unused type: ignore (#3038) X-Git-Tag: 0.27.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6907c22034e2739c4c1af89908e3c9f90602788;p=thirdparty%2Fhttpx.git Remove unused type: ignore (#3038) * Remove unused type: ignore * Bump mypy version * Revert "Bump mypy version" This reverts commit 55b44b5d2f6f6b6417c197c653a43e3db3bf8804. * Bump mypy --------- Co-authored-by: Tom Christie --- diff --git a/httpx/_config.py b/httpx/_config.py index 05c096df..0cfd552e 100644 --- a/httpx/_config.py +++ b/httpx/_config.py @@ -185,7 +185,7 @@ class SSLConfig: ssl_context.load_cert_chain( certfile=self.cert[0], keyfile=self.cert[1], - password=self.cert[2], # type: ignore + password=self.cert[2], ) diff --git a/httpx/_multipart.py b/httpx/_multipart.py index 5122d511..1d451c38 100644 --- a/httpx/_multipart.py +++ b/httpx/_multipart.py @@ -104,9 +104,9 @@ class FileField: if len(value) == 2: # neither the 3rd parameter (content_type) nor the 4th (headers) # was included - filename, fileobj = value # type: ignore + filename, fileobj = value elif len(value) == 3: - filename, fileobj, content_type = value # type: ignore + filename, fileobj, content_type = value else: # all 4 parameters included filename, fileobj, content_type, headers = value # type: ignore diff --git a/requirements.txt b/requirements.txt index c7b24a89..218f06c6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ twine==4.0.2 # Tests & Linting coverage[toml]==7.4.0 cryptography==41.0.7 -mypy==1.5.1 +mypy==1.8.0 pytest==7.4.4 ruff==0.1.9 trio==0.22.2