Skip to content

Commit

Permalink
Fix write_file destination parameter type hint (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hunt-Mateo authored Aug 6, 2021
1 parent 5a4cdb6 commit 3df5238
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ocean_lib/data_provider/data_service_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from ocean_lib.ocean.env_constants import ENV_PROVIDER_API_VERSION
from ocean_lib.web3_internal.transactions import sign_hash
from ocean_lib.web3_internal.wallet import Wallet
from py._path.local import LocalPath
from requests.exceptions import InvalidURL
from requests.models import PreparedRequest, Response
from requests.sessions import Session
Expand Down Expand Up @@ -530,7 +529,9 @@ def build_fileinfo(provider_uri: str) -> Tuple[str, str]:

@staticmethod
def write_file(
response: Response, destination_folder: Union[LocalPath, str], file_name: str
response: Response,
destination_folder: Union[str, bytes, os.PathLike],
file_name: str,
) -> None:
"""
Write the response content in a file in the destination folder.
Expand Down

0 comments on commit 3df5238

Please sign in to comment.