Re: [libgpiod][PATCH 03/22] bindings: python: fix annotation of variable length tuples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 27, 2024 at 9:05 PM Vincent Fazio <vfazio@xxxxxxxxxxx> wrote:
>
> Both `Chip.request_lines` and `LineRequest.reconfigure_lines` accept a
> config argument that is allowed to be either a variable length tuple
> of int | str, a str, or an int.
>
> Python documentation [0] points out that variable length tuples need a
> trailing ellipsis in their annotation.
>
> [0]: https://docs.python.org/3/library/typing.html#annotating-tuples
> Signed-off-by: Vincent Fazio <vfazio@xxxxxxxxxxx>
> ---

For my own reference: looks good.

Bart





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux