Skip to contentSkip to conversation

bindings: python: fix Chip.request_lines typing

PATCH Applied Vincent Fazio 2 participants 2 messages Sep 14, 2024 – Sep 16, 2024 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bindings: python: fix Chip.request_lines typing

The output_values argument was typed as a dict of tuples, however, the code expects a dict of int|str.

---
 bindings/python/gpiod/chip.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bindings/python/gpiod/chip.py +1 -1
index 7692ba4..0a5ac6d 100644
@@ -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.
Signature · 1 line
2.34.1
#1 lore raw

From: Bartosz Golaszewski <[email protected]>

Quoted 4 lines · Vincent Fazio

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,

Signature · 1 line
Bartosz Golaszewski <[email protected]>