mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-27 06:20:25 +00:00
Pacify mypy.
This commit is contained in:
parent
56b6dd86c3
commit
5d7d387593
@ -60,7 +60,7 @@ from allmydata.interfaces import (
|
|||||||
)
|
)
|
||||||
from allmydata.nodemaker import NodeMaker
|
from allmydata.nodemaker import NodeMaker
|
||||||
from allmydata.blacklist import Blacklist
|
from allmydata.blacklist import Blacklist
|
||||||
|
from allmydata.node import _Config
|
||||||
|
|
||||||
KiB=1024
|
KiB=1024
|
||||||
MiB=1024*KiB
|
MiB=1024*KiB
|
||||||
|
@ -34,7 +34,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from six import ensure_text
|
from six import ensure_text
|
||||||
|
|
||||||
from typing import Union
|
from typing import Union, Any
|
||||||
from os import urandom
|
from os import urandom
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
@ -219,9 +219,9 @@ class StorageFarmBroker(service.MultiService):
|
|||||||
# own Reconnector, and will give us a RemoteReference when we ask
|
# own Reconnector, and will give us a RemoteReference when we ask
|
||||||
# them for it.
|
# them for it.
|
||||||
self.servers = BytesKeyDict()
|
self.servers = BytesKeyDict()
|
||||||
self._static_server_ids = set() # ignore announcements for these
|
self._static_server_ids : set[bytes] = set() # ignore announcements for these
|
||||||
self.introducer_client = None
|
self.introducer_client = None
|
||||||
self._threshold_listeners = [] # tuples of (threshold, Deferred)
|
self._threshold_listeners : list[tuple[float,defer.Deferred[Any]]]= [] # tuples of (threshold, Deferred)
|
||||||
self._connected_high_water_mark = 0
|
self._connected_high_water_mark = 0
|
||||||
|
|
||||||
@log_call(action_type=u"storage-client:broker:set-static-servers")
|
@log_call(action_type=u"storage-client:broker:set-static-servers")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user