Skip to content

Commit

Permalink
remove extraneous __init__ return types from lib filesystem per https…
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Raney authored and Austin Raney committed Sep 27, 2021
1 parent 927d0ab commit 9a9e574
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions hydroshare_jupyter_sync/lib/filesystem/fs_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class LocalFSMap(FSMap, IEntityFSMap):
"""Class representing the relationship between *local* HydroShare resources', resource files,
and resource MD5 Hashes."""

def __init__(self, fs_root: Union[str, Path]) -> Dict[ResourceId, FSResourceMap]:
def __init__(self, fs_root: Union[str, Path]) -> None:
super().__init__()
self.fs_root = Path(fs_root).expanduser().resolve()

Expand Down Expand Up @@ -154,9 +154,7 @@ class RemoteFSMap(FSMap):
"""Class representing the relationship between remote HydroShare resource's, resource files, and
resource MD5 Hashes."""

def __init__(
self, fs_root: Union[str, Path], hydroshare: HydroShare
) -> Dict[ResourceId, FSResourceMap]:
def __init__(self, fs_root: Union[str, Path], hydroshare: HydroShare) -> None:
super().__init__()
self.fs_root = Path(fs_root).expanduser().resolve()
self._hydroshare = hydroshare
Expand Down
4 changes: 2 additions & 2 deletions hydroshare_jupyter_sync/lib/filesystem/fs_resource_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def files(self) -> List[Path]:
class LocalFSResourceMap(FSResourceMap, IEntityFSResourceMap):
"""Concrete class representing the relationship between a local file (not directory) path to the file's MD5 Hash."""

def __init__(self, resource_path: Union[Path, str]) -> Dict[Path, MD5Hash]:
def __init__(self, resource_path: Union[Path, str]) -> None:
super().__init__()
self.resource_path = Path(resource_path).expanduser().resolve()
self.resource_id = resource_path.name
Expand Down Expand Up @@ -172,7 +172,7 @@ def _insert(self, resource_file: Union[Path, str]) -> None:


class RemoteFSResourceMap(FSResourceMap):
def __init__(self, resource: Resource) -> Dict[Path, MD5Hash]:
def __init__(self, resource: Resource) -> None:
super().__init__()
self.resource = resource
self.resource_id = resource.resource_id
Expand Down

0 comments on commit 9a9e574

Please sign in to comment.