ultralytics 8.1.25 fix **kwargs: (dict) warnings (#8815)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2024-03-09 18:51:38 +01:00 committed by GitHub
parent f8f62bc649
commit 2bc605f32a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 22 additions and 22 deletions

View file

@ -113,7 +113,7 @@ class TQDM(tqdm_original):
Args:
*args (list): Positional arguments passed to original tqdm.
**kwargs (dict): Keyword arguments, with custom defaults applied.
**kwargs (any): Keyword arguments, with custom defaults applied.
"""
def __init__(self, *args, **kwargs):

View file

@ -410,7 +410,7 @@ def attempt_download_asset(file, repo="ultralytics/assets", release="v8.1.0", **
file (str | Path): The filename or file path to be downloaded.
repo (str, optional): The GitHub repository in the format 'owner/repo'. Defaults to 'ultralytics/assets'.
release (str, optional): The specific release version to be downloaded. Defaults to 'v8.1.0'.
**kwargs (dict): Additional keyword arguments for the download process.
**kwargs (any): Additional keyword arguments for the download process.
Returns:
(str): The path to the downloaded file.

View file

@ -68,7 +68,7 @@ def torch_save(*args, use_dill=True, **kwargs):
Args:
*args (tuple): Positional arguments to pass to torch.save.
use_dill (bool): Whether to try using dill for serialization if available. Defaults to True.
**kwargs (dict): Keyword arguments to pass to torch.save.
**kwargs (any): Keyword arguments to pass to torch.save.
"""
try:
assert use_dill