mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Remove unnecessary ignores due to Twisted upgrade. (#11939)
Twisted 22.1.0 fixed some internal type hints, allowing Synapse to remove ignore calls for parameters to connectTCP.
This commit is contained in:
parent
6b91315ddf
commit
6c0984e3f0
1
changelog.d/11939.misc
Normal file
1
changelog.d/11939.misc
Normal file
@ -0,0 +1 @@
|
||||
Remove an unnecessary ignoring of type hints due to fixes in upstream packages.
|
@ -106,7 +106,7 @@ async def _sendmail(
|
||||
factory = build_sender_factory(hostname=smtphost if enable_tls else None)
|
||||
|
||||
reactor.connectTCP(
|
||||
smtphost, # type: ignore[arg-type]
|
||||
smtphost,
|
||||
smtpport,
|
||||
factory,
|
||||
timeout=30,
|
||||
|
@ -318,7 +318,7 @@ class ReplicationCommandHandler:
|
||||
hs, outbound_redis_connection
|
||||
)
|
||||
hs.get_reactor().connectTCP(
|
||||
hs.config.redis.redis_host, # type: ignore[arg-type]
|
||||
hs.config.redis.redis_host,
|
||||
hs.config.redis.redis_port,
|
||||
self._factory,
|
||||
timeout=30,
|
||||
@ -330,7 +330,7 @@ class ReplicationCommandHandler:
|
||||
host = hs.config.worker.worker_replication_host
|
||||
port = hs.config.worker.worker_replication_port
|
||||
hs.get_reactor().connectTCP(
|
||||
host, # type: ignore[arg-type]
|
||||
host,
|
||||
port,
|
||||
self._factory,
|
||||
timeout=30,
|
||||
|
@ -373,7 +373,7 @@ def lazyConnection(
|
||||
|
||||
reactor = hs.get_reactor()
|
||||
reactor.connectTCP(
|
||||
host, # type: ignore[arg-type]
|
||||
host,
|
||||
port,
|
||||
factory,
|
||||
timeout=30,
|
||||
|
Loading…
Reference in New Issue
Block a user