Skip to content

Commit

Permalink
fix typo in AutoTaskCrop.bbox(s) (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteEbner authored Nov 15, 2024
1 parent 7fae0a4 commit 68b6766
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import json


from typing import List, Optional, Union
from typing import List, Union
try:
# Pydantic >=v1.10.17
from pydantic.v1 import BaseModel, Field, confloat, conint, conlist
Expand All @@ -32,7 +32,7 @@ class AutoTaskCrop(AutoTaskBase):
"""
Create a prediction which crops and focuses on a specific part of the image
"""
bboxs: Optional[conlist(conlist(Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)], max_items=4, min_items=4), min_items=1)] = Field(None, description="The bounding boxes to focus on.")
bboxs: conlist(conlist(Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)], max_items=4, min_items=4), min_items=1) = Field(..., description="The bounding boxes to focus on.")
__properties = ["type", "name", "bboxs"]

class Config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import json


from typing import List, Optional, Union
from typing import List, Union
try:
# Pydantic >=v1.10.17
from pydantic.v1 import BaseModel, Field, confloat, conint, conlist
Expand All @@ -31,7 +31,7 @@ class AutoTaskCropAllOf(BaseModel):
"""
AutoTaskCropAllOf
"""
bboxs: Optional[conlist(conlist(Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)], max_items=4, min_items=4), min_items=1)] = Field(None, description="The bounding boxes to focus on.")
bboxs: conlist(conlist(Union[confloat(le=1, ge=0, strict=True), conint(le=1, ge=0, strict=True)], max_items=4, min_items=4), min_items=1) = Field(..., description="The bounding boxes to focus on.")
__properties = ["bboxs"]

class Config:
Expand Down

0 comments on commit 68b6766

Please sign in to comment.