ultralytics 8.0.191 fix yolo checks for missing packages (#5179)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Muhammad Rizwan Munawar <62513924+RizwanMunawar@users.noreply.github.com>
This commit is contained in:
parent
9aaa5d5ed0
commit
525c8b0294
17 changed files with 110 additions and 74 deletions
|
|
@ -52,22 +52,23 @@ When adding new functions or classes, please include a [Google-style docstring](
|
|||
Example Google-style docstring:
|
||||
|
||||
```python
|
||||
def example_function(arg1: int, arg2: str) -> bool:
|
||||
"""Example function that demonstrates Google-style docstrings.
|
||||
def example_function(arg1: int, arg2: int) -> bool:
|
||||
"""
|
||||
Example function that demonstrates Google-style docstrings.
|
||||
|
||||
Args:
|
||||
arg1 (int): The first argument.
|
||||
arg2 (str): The second argument.
|
||||
arg2 (int): The second argument.
|
||||
|
||||
Returns:
|
||||
bool: True if successful, False otherwise.
|
||||
(bool): True if successful, False otherwise.
|
||||
|
||||
Raises:
|
||||
ValueError: If `arg1` is negative or `arg2` is empty.
|
||||
Examples:
|
||||
>>> result = example_function(1, 2) # returns False
|
||||
"""
|
||||
if arg1 < 0 or not arg2:
|
||||
raise ValueError("Invalid input values")
|
||||
return True
|
||||
if arg1 == arg2:
|
||||
return True
|
||||
return False
|
||||
```
|
||||
|
||||
### GitHub Actions CI Tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue