Skip to content

Commit ab945a6

Browse files
committed
chore: Fix typing
1 parent 69e75aa commit ab945a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roborock/containers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from datetime import timezone
99
from enum import Enum
1010
from functools import cached_property
11-
from typing import Any, NamedTuple, get_args, get_origin, Self
11+
from typing import Any, NamedTuple, get_args, get_origin
1212

1313
from .code_mappings import (
1414
SHORT_MODEL_TO_ENUM,
@@ -130,7 +130,7 @@ def from_dict(cls, data: dict[str, Any]):
130130
if not isinstance(data, dict):
131131
return None
132132
field_types = {field.name: field.type for field in dataclasses.fields(cls)}
133-
result: Self = {}
133+
result: dict[str, Any] = {}
134134
for key, value in data.items():
135135
key = _decamelize(key)
136136
if (field_type := field_types.get(key)) is None:

0 commit comments

Comments
 (0)