Remove unused type: ignore (#3038)

* Remove unused type: ignore

* Bump mypy version

* Revert "Bump mypy version"

This reverts commit 55b44b5d2f.

* Bump mypy

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
This commit is contained in:
Kar Petrosyan 2024-01-04 19:03:09 +04:00 committed by GitHub
parent ebc1393c5c
commit c6907c2203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View 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],
)

View 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

View 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