Skip to content

Commit

Permalink
CTX-4070: Updated typing and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuk Manojlovic committed Jul 14, 2023
1 parent 8cd9a50 commit fcefbdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions coretex/networking/network_manager_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from typing import Optional, Any, Dict, List
from typing import Optional, Any, Dict, List, Union
from pathlib import Path
from abc import ABC, abstractmethod
from importlib.metadata import version as getLibraryVersion
Expand Down Expand Up @@ -249,7 +249,7 @@ def genericDownload(
def sampleDownload(
self,
endpoint: str,
destination: str,
destination: Union[str, Path],
ignoreCache: bool,
parameters: Optional[Dict[str, Any]] = None,
retryCount: int = 0
Expand All @@ -261,7 +261,7 @@ def sampleDownload(
----------
endpoint : str
API endpoint
destination : str
destination : Union[str, Path]
path to save file
ignoreCache : bool
whether to overwrite local cache
Expand Down
2 changes: 1 addition & 1 deletion coretex/networking/requests_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def streamingDownload(
----------
endpoint : str
API endpoint
destination : str
destination : Union[str, Path]
path to save file
ignoreCache : bool
whether to overwrite local cache
Expand Down

0 comments on commit fcefbdc

Please sign in to comment.