Skip to content

Commit

Permalink
Fix is_url() and check_disk_space() docstrings in downloads.py (u…
Browse files Browse the repository at this point in the history
  • Loading branch information
jk4e authored Aug 3, 2024
1 parent 8838f9c commit 121f224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ultralytics/utils/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def is_url(url, check=False):
Args:
url (str): The string to be validated as a URL.
check (bool, optional): If True, performs an additional check to see if the URL exists online.
Defaults to True.
Defaults to False.
Returns:
(bool): Returns True for a valid URL. If 'check' is True, also returns True if the URL exists online.
Expand Down Expand Up @@ -201,7 +201,7 @@ def check_disk_space(url="https://ultralytics.com/assets/coco8.zip", path=Path.c
Args:
url (str, optional): The URL to the file. Defaults to 'https://ultralytics.com/assets/coco8.zip'.
path (str | Path, optional): The path or drive to check the available free space on.
sf (float, optional): Safety factor, the multiplier for the required free space. Defaults to 2.0.
sf (float, optional): Safety factor, the multiplier for the required free space. Defaults to 1.5.
hard (bool, optional): Whether to throw an error or not on insufficient disk space. Defaults to True.
Returns:
Expand Down

0 comments on commit 121f224

Please sign in to comment.