bindings: python: clean up imports and exports
authorVincent Fazio <vfazio@xes-inc.com>
Thu, 14 Nov 2024 14:50:54 +0000 (08:50 -0600)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 19 Nov 2024 14:21:01 +0000 (15:21 +0100)
commit7fde8a47f5845b20ef4774416b28bf063848dc0e
treec245a19d56f8949533f22497adfc63fe1164d523
parent746ba66cfda4bbcff9004b148a5789f00ccca43e
bindings: python: clean up imports and exports

Remove unused imports and sort the remainder following isort rules.

Update submodules to use lists for `__all__` for ease of re-exporting
public classes from within gpiod.

Place imports used only for the purposes of type checking behind a
TYPE_CHECKING guard.

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
Link: https://lore.kernel.org/r/20241114145116.2123714-2-vfazio@xes-inc.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/gpiod/__init__.py
bindings/python/gpiod/chip.py
bindings/python/gpiod/chip_info.py
bindings/python/gpiod/edge_event.py
bindings/python/gpiod/info_event.py
bindings/python/gpiod/internal.py
bindings/python/gpiod/line.py
bindings/python/gpiod/line_info.py
bindings/python/gpiod/line_request.py
bindings/python/gpiod/line_settings.py