This pacifies mypy regarding treq/StubTreq for me

Lots of trial and error, incl. trying the latest treq which
ships type annotations... in the end I just removed the stuff
mypy was complaining about and it made the errors go away.
Can it be as simple as that?
This commit is contained in:
Florian Sesser 2024-11-14 11:51:10 +00:00
parent 6cf67471f1
commit 4f20612f3c

View File

@ -434,7 +434,7 @@ class StorageClient(object):
# The URL should be a HTTPS URL ("https://...")
_base_url: DecodedURL
_swissnum: bytes
_treq: Union[treq, StubTreq, HTTPClient]
_treq: HTTPClient
_pool: HTTPConnectionPool
_clock: IReactorTime
# Are we running unit tests?