Skip to content

Commit

Permalink
fix restore_hash type signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
jfischer committed Mar 15, 2020
1 parent 8b91a77 commit 35dd3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataworkspaces/backends/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def _snapshot_precheck(self, current_resources:Iterable[ws.Resource]) -> None:
super()._snapshot_precheck(current_resources)
validate_git_fat_in_path_if_needed(self.workspace_dir)

def _restore_precheck(self, restore_hashes:Dict[str,str],
def _restore_precheck(self, restore_hashes:Dict[str,Optional[str]],
restore_resources:List[ws.SnapshotResourceMixin]) -> None:
"""Run any prechecks before restoring. This should throw
a ConfigurationError if the restore would fail for some reason.
Expand All @@ -425,7 +425,7 @@ def _restore_precheck(self, restore_hashes:Dict[str,str],
super()._restore_precheck(restore_hashes, restore_resources)
validate_git_fat_in_path_if_needed(self.workspace_dir)

def restore(self, snapshot_hash:str, restore_hashes:Dict[str,str],
def restore(self, snapshot_hash:str, restore_hashes:Dict[str,Optional[str]],
restore_resources:List[ws.SnapshotResourceMixin]) -> None:
"""We override restore to perform a git-fat pull at the end,
if needed.
Expand Down

0 comments on commit 35dd3e7

Please sign in to comment.