Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayof committed Aug 13, 2024
1 parent fd87fa5 commit 4bee8d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ line_length = 88
profile = "black"

[tool.mypy]
plugins = "pydantic.mypy"

exclude = "tests"
show_error_context = true
pretty = true
Expand Down
4 changes: 2 additions & 2 deletions vision_agent/tools/meta_tools_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from enum import Enum
from typing import List, Tuple, Optional

from pydantic import BaseModel, ConfigDict, Field, field_serializer
from pydantic import BaseModel, ConfigDict, Field, field_serializer, SerializationInfo


class BboxInput(BaseModel):
Expand Down Expand Up @@ -37,7 +37,7 @@ class FineTuning(BaseModel):
job_id: UUID = Field(alias="jobId")

@field_serializer("job_id")
def serialize_job_id(self, job_id: UUID, _info):
def serialize_job_id(self, job_id: UUID, _info: SerializationInfo) -> str:
return str(job_id)


Expand Down

0 comments on commit 4bee8d7

Please sign in to comment.