Type annotation improvements.

This commit is contained in:
Itamar Turner-Trauring 2022-05-20 11:09:04 -04:00
parent 8c8ea4927f
commit 12927d50ba
2 changed files with 2 additions and 2 deletions

View File

@ -358,7 +358,7 @@ class StorageClientGeneral(object):
@inlineCallbacks
def add_or_renew_lease(
self, storage_index: bytes, renew_secret: bytes, cancel_secret: bytes
):
) -> Deferred[None]:
"""
Add or renew a lease.

View File

@ -416,7 +416,7 @@ class StorageServer(service.MultiService):
"""
self._call_on_bucket_writer_close.append(handler)
def get_shares(self, storage_index) -> Iterable[(int, str)]:
def get_shares(self, storage_index) -> Iterable[tuple[int, str]]:
"""
Return an iterable of (shnum, pathname) tuples for files that hold
shares for this storage_index. In each tuple, 'shnum' will always be