From fc85f070e2f2a610b5097e9158adf3c0c5e50c26 Mon Sep 17 00:00:00 2001 From: Elior Cohen Date: Fri, 23 Oct 2020 11:51:49 +0300 Subject: [PATCH] :memo: Bad usage of Optional typing --- trains/storage/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trains/storage/manager.py b/trains/storage/manager.py index e91861f5..0f5e734d 100644 --- a/trains/storage/manager.py +++ b/trains/storage/manager.py @@ -23,7 +23,7 @@ class StorageManager(object): def get_local_copy( 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, the returned link is the same, otherwise a link to a local copy of the url file is returned.