fix typing

This commit is contained in:
gmega 2024-10-31 15:26:00 -03:00
parent 3299cdb246
commit 8686c71ccf
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ def mock_sampler(elements: List[int]) -> Sampler:
class MockNode(Node[MockHandle]):
def __init__(self):
self.seeding: Optional[MockNode] = None
self.seeding: Optional[Path] = None
self.leeching: Optional[MockHandle] = None
def seed(self, path: Path, handle: Optional[MockHandle] = None) -> MockHandle:
@ -36,7 +36,7 @@ class MockFileSharingNetwork(FileSharingNetwork[MockNode]):
self._nodes = [MockNode() for _ in range(n)]
@property
def nodes(self) -> List[TNode]:
def nodes(self) -> List[MockNode]:
return self._nodes