Re: [libgpiod][PATCH 12/22] bindings: python: raise exception type, not exception instance

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

 



On Fri, Sep 27, 2024 at 8:57 PM Vincent Fazio <vfazio@xxxxxxxxxxx> wrote:
>
> This resolves a strict no-untyped-call mypy warning.
>
> Signed-off-by: Vincent Fazio <vfazio@xxxxxxxxxxx>
> ---

Ok, so I see this is how it's done in the standard library but why? If
an error doesn't take arguments, one should raise its type? Could you
elaborate more in the commit message?

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