Skip to content

Commit b042dac

Browse files
committed
chore: fix lint error found by ruff on type comparison
1 parent f376027 commit b042dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/devices/traits/traits_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, trait: Trait) -> None:
4242
"""
4343
for item in fields(self):
4444
trait_type = _get_trait_type(item)
45-
if trait_type == type(trait):
45+
if trait_type is type(trait):
4646
setattr(self, item.name, trait)
4747
break
4848

0 commit comments

Comments
 (0)