bindings: python: fix Chip.request_lines typing
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.
Signed-off-by Vincent Fazio <[email protected]>
--- bindings/python/gpiod/chip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bindings/python/gpiod/chip.py +1 -1
@@ -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
Bartosz Golaszewski
AppliedFrom: Bartosz Golaszewski <[email protected]>
Quoted 4 lines · Vincent Fazio
The
output_valuesargument 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]>