📝 Bad usage of Optional typing

This commit is contained in:
Elior Cohen 2020-10-23 11:51:49 +03:00 committed by Allegro AI
parent 912264bfa7
commit fc85f070e2

View File

@ -23,7 +23,7 @@ class StorageManager(object):
def get_local_copy( def get_local_copy(
cls, remote_url, cache_context=None, extract_archive=True, name=None cls, remote_url, cache_context=None, extract_archive=True, name=None
): ):
# type: (str, Optional[str], Optional[bool], Optional[str]) -> str # type: (str, Optional[str], bool, Optional[str]) -> str
""" """
Get a local copy of the remote file. If the remote URL is a direct file access, Get a local copy of the remote file. If the remote URL is a direct file access,
the returned link is the same, otherwise a link to a local copy of the url file is returned. the returned link is the same, otherwise a link to a local copy of the url file is returned.