]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Remove unused type: ignore (#3038)
authorKar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
Thu, 4 Jan 2024 15:03:09 +0000 (19:03 +0400)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 15:03:09 +0000 (15:03 +0000)
* Remove unused type: ignore

* Bump mypy version

* Revert "Bump mypy version"

This reverts commit 55b44b5d2f6f6b6417c197c653a43e3db3bf8804.

* Bump mypy

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
httpx/_config.py
httpx/_multipart.py
requirements.txt

index 05c096dfc3103aec8971ce406c9aaee0155ba283..0cfd552e49b9c510fcf5c7466118dcd4ed574d5f 100644 (file)
@@ -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],
                 )
 
 
index 5122d5114fb542a72e968cc503eccb7aef717473..1d451c382b320c510081586262e5ff252dea134b 100644 (file)
@@ -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
index c7b24a896c38d9edc79d89a12a176b86ed1d551d..218f06c6e571cd5e47618d583a93791f2c3f68ce 100644 (file)
@@ -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