Skip to content

Commit 3022e79

Browse files
Lash-LCopilot
andauthored
chore: apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 35f7e8f commit 3022e79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roborock/data/code_mappings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def from_name(cls, name: str) -> Self:
104104
def from_any_optional(cls, value: str | int) -> Self | None:
105105
"""Resolve a string or int to an enum member.
106106
107-
Triest to lookup by enum name, string value, or integer code
107+
Tries to look up by enum name, string value, or integer code
108108
and returns None if no match is found.
109109
"""
110110
# Try enum name lookup (e.g. "SEEK")

tests/data/test_code_mappings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_invalid_from_value() -> None:
7272
],
7373
)
7474
def test_from_any_optional(input: str | int, expected: B01_Q10_DP | None) -> None:
75-
"""Test from_name method."""
75+
"""Test from_any_optional method."""
7676
assert B01_Q10_DP.from_any_optional(input) == expected
7777

7878

0 commit comments

Comments
 (0)