bindings: python: add type hint for the sec variable in poll_fd
authorVincent Fazio <vfazio@xes-inc.com>
Thu, 14 Nov 2024 14:51:00 +0000 (08:51 -0600)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 19 Nov 2024 14:21:01 +0000 (15:21 +0100)
commit2a2904082fd1bbbf5863dccd4184873c5826ae72
tree3529741492b4376deb31b8d0dfc7cb9670244001
parent498ec6df34cd103a532e33fa1a7edf47339f88de
bindings: python: add type hint for the sec variable in poll_fd

The sec variable can be either a float or None, so type it accordingly
to avoid complaints from type checkers.

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
Link: https://lore.kernel.org/r/20241114145116.2123714-8-vfazio@xes-inc.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/gpiod/_internal.py