mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
Type annotation improvements.
This commit is contained in:
parent
8c8ea4927f
commit
12927d50ba
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user