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:
parent
ebc1393c5c
commit
c6907c2203
@ -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],
|
||||
)
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user