Skip to content

Commit 5f6cdc3

Browse files
committed
fix: add flake8-type-checking configuration and reorder imports in schemas.py
1 parent bc6dd2f commit 5f6cdc3

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ ignore = [
106106
"E501", # Line too long (handled by ruff format)
107107
]
108108

109+
[tool.ruff.lint.flake8-type-checking]
110+
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
111+
109112
[tool.ruff.lint.pyupgrade]
110113
keep-runtime-typing = true
111114

src/fish_audio_sdk/schemas.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
from __future__ import annotations
22

3-
from typing import TYPE_CHECKING, Annotated, Generic, Literal, TypeVar
3+
import datetime
4+
import decimal
5+
from typing import Annotated, Generic, Literal, TypeVar
46

57
from pydantic import BaseModel, Field
68

7-
if TYPE_CHECKING:
8-
import datetime
9-
import decimal
10-
119
Backends = Literal["speech-1.5", "speech-1.6", "agent-x0", "s1", "s1-mini"]
1210

1311
Item = TypeVar("Item")

0 commit comments

Comments
 (0)