Message ID | 20240914183352.16090-1-vfazio@gmail.com |
---|---|
State | New |
Headers | show |
Series | [libgpiod] bindings: python: fix Chip.request_lines typing | expand |
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> On Sat, 14 Sep 2024 13:33:52 -0500, Vincent Fazio wrote: > The output_values argument was typed as a dict of tuples, however, the > code expects a dict of int|str. > > Applied, thanks! [1/1] bindings: python: fix Chip.request_lines typing commit: 7c815ae11f3cfc98216d60eb0dca2bad0df9721b Best regards,
diff --git a/bindings/python/gpiod/chip.py b/bindings/python/gpiod/chip.py index 7692ba4..0a5ac6d 100644 --- a/bindings/python/gpiod/chip.py +++ b/bindings/python/gpiod/chip.py @@ -226,7 +226,7 @@ class Chip: config: dict[tuple[Union[int, str]], Optional[LineSettings]], consumer: Optional[str] = None, event_buffer_size: Optional[int] = None, - output_values: Optional[dict[tuple[Union[int, str]], Value]] = None, + output_values: Optional[dict[Union[int, str], Value]] = None, ) -> LineRequest: """ Request a set of lines for exclusive usage.
The output_values argument was typed as a dict of tuples, however, the code expects a dict of int|str. Closes: https://github.com/brgl/libgpiod/issues/96 Signed-off-by: Vincent Fazio <vfazio@gmail.com> --- bindings/python/gpiod/chip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)