Skip to content

Commit

Permalink
Add return types for hwIo.hid.Hid's inputButtonCaps, inputValueCaps a…
Browse files Browse the repository at this point in the history
…nd outputValueCaps properties.
  • Loading branch information
michaelDCurran committed Aug 6, 2024
1 parent 603230f commit 6ff5c83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/hwIo/hid.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def caps(self):
return self._caps

@property
def inputButtonCaps(self):
def inputButtonCaps(self) -> ctypes.Array[hidpi.HIDP_VALUE_CAPS]:
if hasattr(self, "_inputButtonCaps"):
return self._inputButtonCaps
valueCapsList = (hidpi.HIDP_VALUE_CAPS * self.caps.NumberInputButtonCaps)()
Expand All @@ -216,7 +216,7 @@ def inputButtonCaps(self):
return self._inputButtonCaps

@property
def inputValueCaps(self):
def inputValueCaps(self) -> ctypes.Array[hidpi.HIDP_VALUE_CAPS]:
if hasattr(self, "_inputValueCaps"):
return self._inputValueCaps
valueCapsList = (hidpi.HIDP_VALUE_CAPS * self.caps.NumberInputValueCaps)()
Expand All @@ -234,7 +234,7 @@ def inputValueCaps(self):
return self._inputValueCaps

@property
def outputValueCaps(self):
def outputValueCaps(self) -> ctypes.Array[hidpi.HIDP_VALUE_CAPS]:
if hasattr(self, "_outputValueCaps"):
return self._outputValueCaps
valueCapsList = (hidpi.HIDP_VALUE_CAPS * self.caps.NumberOutputValueCaps)()
Expand Down

0 comments on commit 6ff5c83

Please sign in to comment.