Skip to content

Commit

Permalink
fix typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jfischer committed Mar 15, 2020
1 parent 35dd3e7 commit a9a1f41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dataworkspaces/resources/git_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def upload_file(self, src_local_path:str,
if self.workspace.verbose:
click.echo("%s: Copied file to %s" % (self.name, rel_dest_path))

def read_results_file(self, subpath:str) -> Union[JSONDict,JSONList]:
def read_results_file(self, subpath:str) -> JSONDict:
"""Read and parse json results data from the specified path
in the resource. If the path does not exist or is not a file
throw a ConfigurationError.
Expand Down
2 changes: 1 addition & 1 deletion dataworkspaces/resources/local_file_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def does_subpath_exist(self, subpath:str, must_be_file:bool=False,
return does_subpath_exist(self.local_path, subpath, must_be_file,
must_be_directory)

def read_results_file(self, subpath:str) -> Union[JSONDict,JSONList]:
def read_results_file(self, subpath:str) -> JSONDict:
"""Read and parse json results data from the specified path
in the resource. If the path does not exist or is not a file
throw a ConfigurationError.
Expand Down
2 changes: 1 addition & 1 deletion dataworkspaces/resources/rclone_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def does_subpath_exist(self, subpath:str, must_be_file:bool=False,
return does_subpath_exist(self.local_path, subpath, must_be_file,
must_be_directory)

def read_results_file(self, subpath:str) -> Union[JSONDict,JSONList]:
def read_results_file(self, subpath:str) -> JSONDict:
"""Read and parse json results data from the specified path
in the resource. If the path does not exist or is not a file
throw a ConfigurationError.
Expand Down

0 comments on commit a9a1f41

Please sign in to comment.