Skip to content

Commit adab3cd

Browse files
Bump actions/setup-python from v5 to v6 in /.github/workflows (#26)
1 parent a9e9d3c commit adab3cd

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323

2424
- name: Setup Python
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v4
2222
- name: Setup Python
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@v6
2424
with:
2525
python-version: 3.12
2626
- name: Setup uv

yolo11n/predict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
22

3-
from typing import Optional
3+
from __future__ import annotations
44

55
from cog import BaseModel, BasePredictor, Input, Path
66
from ultralytics import YOLO
@@ -9,8 +9,8 @@
99
class Output(BaseModel):
1010
"""Output model for predictions."""
1111

12-
image: Optional[Path] = None
13-
json_str: Optional[str] = None
12+
image: Path | None = None
13+
json_str: str | None = None
1414

1515

1616
class Predictor(BasePredictor):

yoloe11s/predict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
22

3-
from typing import Optional
3+
from __future__ import annotations
44

55
from cog import BaseModel, BasePredictor, Input, Path
66
from ultralytics import YOLOE
@@ -9,8 +9,8 @@
99
class Output(BaseModel):
1010
"""Output model for predictions."""
1111

12-
image: Optional[Path] = None
13-
json_str: Optional[str] = None
12+
image: Path | None = None
13+
json_str: str | None = None
1414

1515

1616
class Predictor(BasePredictor):

yolov8s-worldv2/predict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
22

3-
from typing import Optional
3+
from __future__ import annotations
44

55
from cog import BaseModel, BasePredictor, Input, Path
66
from ultralytics import YOLOWorld
@@ -9,8 +9,8 @@
99
class Output(BaseModel):
1010
"""Output model for predictions."""
1111

12-
image: Optional[Path] = None
13-
json_str: Optional[str] = None
12+
image: Path | None = None
13+
json_str: str | None = None
1414

1515

1616
class Predictor(BasePredictor):

0 commit comments

Comments
 (0)