From 3733713d687ef3f4b9d6f0bdb149ce9e5315159c Mon Sep 17 00:00:00 2001 From: Niko Savola Date: Mon, 27 Apr 2026 14:06:09 +0300 Subject: [PATCH] Fix duplicate class field typo in HID parser data --- lib/hid_parser/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hid_parser/data.py b/lib/hid_parser/data.py index e83662c6..ce81ae1f 100644 --- a/lib/hid_parser/data.py +++ b/lib/hid_parser/data.py @@ -46,7 +46,7 @@ class _DataMeta(type): This metaclass also does some verification to prevent duplicated data. """ - def __new__(mcs, name: str, bases: Tuple[Any], dic: Dict[str, Any]): # type: ignore # noqa: C901 + def __new__(mcs, name: str, bases: Tuple[Any], dic: Dict[str, Any]): # type: ignore dic["_single"] = {} dic["_range"] = [] @@ -215,7 +215,7 @@ class GenericDesktopControls(_Data): Z = 0x32, "Z", UsageTypes.DV RX = 0x33, "Rx", UsageTypes.DV RY = 0x34, "Ry", UsageTypes.DV - RX = 0x35, "Rz", UsageTypes.DV + RZ = 0x35, "Rz", UsageTypes.DV SLIDER = 0x36, "Slider", UsageTypes.DV DIAL = 0x37, "Dial", UsageTypes.DV WHEEL = 0x38, "Wheel", UsageTypes.DV