From 9a9e574ac0fdf9a5481580cea6fcdb661d7ce013 Mon Sep 17 00:00:00 2001 From: Austin Raney Date: Wed, 25 Aug 2021 13:34:15 -0400 Subject: [PATCH] remove extraneous __init__ return types from lib filesystem per https://github.com/hydroshare/hydroshare_jupyter_sync/pull/80\#discussion_r694308040 --- hydroshare_jupyter_sync/lib/filesystem/fs_map.py | 6 ++---- hydroshare_jupyter_sync/lib/filesystem/fs_resource_map.py | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hydroshare_jupyter_sync/lib/filesystem/fs_map.py b/hydroshare_jupyter_sync/lib/filesystem/fs_map.py index d437f433..9f2ed1ff 100644 --- a/hydroshare_jupyter_sync/lib/filesystem/fs_map.py +++ b/hydroshare_jupyter_sync/lib/filesystem/fs_map.py @@ -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() @@ -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 diff --git a/hydroshare_jupyter_sync/lib/filesystem/fs_resource_map.py b/hydroshare_jupyter_sync/lib/filesystem/fs_resource_map.py index 694f4923..c12d6ebf 100644 --- a/hydroshare_jupyter_sync/lib/filesystem/fs_resource_map.py +++ b/hydroshare_jupyter_sync/lib/filesystem/fs_resource_map.py @@ -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 @@ -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