Another service name issue.

This commit is contained in:
Itamar Turner-Trauring 2023-06-14 14:12:39 -04:00
parent 3b5c6695d5
commit cab24e4c7b
2 changed files with 4 additions and 2 deletions

View File

@ -1843,7 +1843,9 @@ class Uploader(service.MultiService, log.PrefixingLogMixin):
"""I am a service that allows file uploading. I am a service-child of the
Client.
"""
name = "uploader"
# The type in Twisted for services is wrong in 22.10...
# https://github.com/twisted/twisted/issues/10135
name = "uploader" # type: ignore[assignment]
URI_LIT_SIZE_THRESHOLD = 55
def __init__(self, helper_furl=None, stats_provider=None, history=None):

View File

@ -57,7 +57,7 @@ class StorageServer(service.MultiService):
"""
# The type in Twisted for services is wrong in 22.10...
# https://github.com/twisted/twisted/issues/10135
name = 'storage' # type: ignore
name = 'storage' # type: ignore[assignment]
# only the tests change this to anything else
LeaseCheckerClass = LeaseCheckingCrawler