mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-07 11:50:21 +00:00
Fix mypy complaint.
This commit is contained in:
parent
257aa289cd
commit
1fd81116cb
@ -16,9 +16,10 @@ later in the configuration process.
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
|
from typing import cast
|
||||||
|
|
||||||
from twisted.internet.protocol import Protocol
|
from twisted.internet.protocol import Protocol
|
||||||
from twisted.internet.interfaces import IDelayedCall
|
from twisted.internet.interfaces import IDelayedCall, IReactorFromThreads
|
||||||
from twisted.internet.ssl import CertificateOptions
|
from twisted.internet.ssl import CertificateOptions
|
||||||
from twisted.web.server import Site
|
from twisted.web.server import Site
|
||||||
from twisted.protocols.tls import TLSMemoryBIOFactory
|
from twisted.protocols.tls import TLSMemoryBIOFactory
|
||||||
@ -89,7 +90,7 @@ class _FoolscapOrHttps(Protocol, metaclass=_PretendToBeNegotiation):
|
|||||||
certificate=cls.tub.myCertificate.original,
|
certificate=cls.tub.myCertificate.original,
|
||||||
)
|
)
|
||||||
|
|
||||||
http_storage_server = HTTPServer(reactor, storage_server, swissnum)
|
http_storage_server = HTTPServer(cast(IReactorFromThreads, reactor), storage_server, swissnum)
|
||||||
cls.https_factory = TLSMemoryBIOFactory(
|
cls.https_factory = TLSMemoryBIOFactory(
|
||||||
certificate_options,
|
certificate_options,
|
||||||
False,
|
False,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user