From bc1737a300d5bd18155c375bdd7e560e36afb41d Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Tue, 26 Aug 2025 08:50:31 +0000 Subject: [PATCH] [Jetson.GPIO] Update to ~=2.1.11 (#14647) --- stubs/Jetson.GPIO/Jetson/GPIO/gpio.pyi | 4 +- .../Jetson.GPIO/Jetson/GPIO/gpio_pin_data.pyi | 48 ++++++++++--------- stubs/Jetson.GPIO/METADATA.toml | 2 +- 3 files changed, 29 insertions(+), 25 deletions(-) diff --git a/stubs/Jetson.GPIO/Jetson/GPIO/gpio.pyi b/stubs/Jetson.GPIO/Jetson/GPIO/gpio.pyi index 6a00a2b5a..f8c804772 100644 --- a/stubs/Jetson.GPIO/Jetson/GPIO/gpio.pyi +++ b/stubs/Jetson.GPIO/Jetson/GPIO/gpio.pyi @@ -44,9 +44,9 @@ def add_event_detect( edge: Literal[31, 32, 33], callback: Callable[[int], None] | None = ..., bouncetime: int | None = ..., - polltime: float = ..., + polltime: float = 0.2, ) -> None: ... -def remove_event_detect(channel: int, timeout: float = ...) -> None: ... +def remove_event_detect(channel: int, timeout: float = 0.5) -> None: ... def event_detected(channel: int) -> bool: ... def add_event_callback(channel: int, callback: Callable[[int], None]) -> None: ... def wait_for_edge( diff --git a/stubs/Jetson.GPIO/Jetson/GPIO/gpio_pin_data.pyi b/stubs/Jetson.GPIO/Jetson/GPIO/gpio_pin_data.pyi index e46b4cf90..07c4707ac 100644 --- a/stubs/Jetson.GPIO/Jetson/GPIO/gpio_pin_data.pyi +++ b/stubs/Jetson.GPIO/Jetson/GPIO/gpio_pin_data.pyi @@ -11,45 +11,49 @@ JETSON_TX2_NX: Final = "JETSON_TX2_NX" JETSON_ORIN: Final = "JETSON_ORIN" JETSON_ORIN_NX: Final = "JETSON_ORIN_NX" JETSON_ORIN_NANO: Final = "JETSON_ORIN_NANO" +JETSON_THOR_REFERENCE: Final = "JETSON_THOR_REFERENCE" -JETSON_MODELS: list[str] = ... +JETSON_MODELS: list[str] -JETSON_ORIN_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ... -compats_jetson_orins_nx: Sequence[str] = ... -compats_jetson_orins_nano: Sequence[str] = ... +JETSON_ORIN_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_jetson_orins_nx: Sequence[str] +compats_jetson_orins_nano: Sequence[str] -JETSON_ORIN_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ... -compats_jetson_orins: Sequence[str] = ... +JETSON_ORIN_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_jetson_orins: Sequence[str] -CLARA_AGX_XAVIER_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ... -compats_clara_agx_xavier: Sequence[str] = ... +CLARA_AGX_XAVIER_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_clara_agx_xavier: Sequence[str] -JETSON_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ... -compats_nx: Sequence[str] = ... +JETSON_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_nx: Sequence[str] -JETSON_XAVIER_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ... -compats_xavier: Sequence[str] = ... +JETSON_XAVIER_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_xavier: Sequence[str] -JETSON_TX2_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ... -compats_tx2_nx: Sequence[str] = ... +JETSON_TX2_NX_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_tx2_nx: Sequence[str] -JETSON_TX2_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ... -compats_tx2: Sequence[str] = ... +JETSON_TX2_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_tx2: Sequence[str] -JETSON_TX1_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ... -compats_tx1: Sequence[str] = ... +JETSON_TX1_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_tx1: Sequence[str] -JETSON_NANO_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] = ... -compats_nano: Sequence[str] = ... +JETSON_NANO_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_nano: Sequence[str] -jetson_gpio_data: dict[str, tuple[list[tuple[int, str, str, int, int, str, str, str | None, int | None]], dict[str, Any]]] = ... +JETSON_THOR_REFERENCE_PIN_DEFS: list[tuple[int, str, str, int, int, str, str, str | None, int | None]] +compats_jetson_thor_reference: Sequence[str] + +jetson_gpio_data: dict[str, tuple[list[tuple[int, str, str, int, int, str, str, str | None, int | None]], dict[str, Any]]] class ChannelInfo: def __init__( self, channel: int, line_offset: int, gpio_name: str, gpio_chip: str, pwm_chip_dir: str, pwm_id: int ) -> None: ... -ids_warned: bool = ... +ids_warned: bool def find_pmgr_board(prefix: str) -> str | None: ... def warn_if_not_carrier_board(*carrier_boards: str) -> None: ... diff --git a/stubs/Jetson.GPIO/METADATA.toml b/stubs/Jetson.GPIO/METADATA.toml index 10e85f158..f8d6a03e1 100644 --- a/stubs/Jetson.GPIO/METADATA.toml +++ b/stubs/Jetson.GPIO/METADATA.toml @@ -1,2 +1,2 @@ -version = "2.1.*" +version = "~=2.1.11" upstream_repository = "https://github.com/NVIDIA/jetson-gpio"