File tree Expand file tree Collapse file tree 3 files changed +26
-24
lines changed
src/saic_ismart_client_ng/api/vehicle Expand file tree Collapse file tree 3 files changed +26
-24
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ build-backend = "poetry.core.masonry.api"
3434pytest = " ^8.2.2"
3535mock = " ^5.1.0"
3636coverage = " ^7.5.4"
37- ruff = " ^0.11.7 "
37+ ruff = " ^0.12.0 "
3838pytest-cov = " ^5.0.0"
3939pytest-asyncio = " ^0.24.0"
4040pytest-mock = " ^3.14.0"
Original file line number Diff line number Diff line change @@ -124,8 +124,9 @@ class ExtendedVehicleStatus:
124124
125125@dataclass
126126class 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
204205class 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
You can’t perform that action at this time.
0 commit comments