Skip to content

Commit bb38c4a

Browse files
committed
Fix more linting errors
1 parent 845dce7 commit bb38c4a

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

poetry.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ build-backend = "poetry.core.masonry.api"
3434
pytest = "^8.2.2"
3535
mock = "^5.1.0"
3636
coverage = "^7.5.4"
37-
ruff = "^0.11.7"
37+
ruff = "^0.12.0"
3838
pytest-cov = "^5.0.0"
3939
pytest-asyncio = "^0.24.0"
4040
pytest-mock = "^3.14.0"

src/saic_ismart_client_ng/api/vehicle/schema.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ class ExtendedVehicleStatus:
124124

125125
@dataclass
126126
class VehicleStatusResp:
127-
# pylint: disable=import-outside-toplevel
128-
from saic_ismart_client_ng.api.schema import GpsPosition
127+
if TYPE_CHECKING:
128+
# pylint: disable=import-outside-toplevel
129+
from saic_ismart_client_ng.api.schema import GpsPosition # noqa: PLC0415
129130

130131
basicVehicleStatus: BasicVehicleStatus | None = None
131132
extendedVehicleStatus: ExtendedVehicleStatus | None = None
@@ -203,7 +204,8 @@ def rvc_req_type_decoded(self) -> bytes | None:
203204
@dataclass
204205
class VehicleControlResp:
205206
# pylint: disable=import-outside-toplevel
206-
from saic_ismart_client_ng.api.schema import GpsPosition
207+
if TYPE_CHECKING:
208+
from saic_ismart_client_ng.api.schema import GpsPosition # noqa: PLC0415
207209

208210
basicVehicleStatus: BasicVehicleStatus | None = None
209211
failureType: int | None = None

0 commit comments

Comments
 (0)