Re: [PATCH libgpiod] bindings: python: provide fileno() for Chip and LineRequest

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

 



On Tue, Dec 10, 2024 at 3:17 PM Vincent Fazio <vfazio@xxxxxxxxxxx> wrote:
>
> >
> > @@ -131,6 +132,23 @@ class WatchingInfoEventWorks(TestCase):
> >          self.assertGreater(ts_rel, ts_rec)
> >          self.assertGreater(ts_rec, ts_req)
> >
> > +    def test_select_chip_object(self):
>
> Nit:
>
> def test_select_chip_object(self) -> None:
>
> These fail `mypy --strict` otherwise. These are optional checks so I'll leave it up to you to decide if you want to implement them.
>

Ah! This is why I didn't see it, I missed the --strict switch. Thanks.

On an unrelated note: mypy --strict is giving me this:

bindings/python/gpiod/line.py:19: error: Non-overlapping equality
check (left operand type: "Value", right operand type: "int")
[comparison-overlap]

for:

18     def __bool__(self) -> bool:
19         return self == self.ACTIVE

How do I fix it?

Bart

> Otherwise-
>
> Reviewed-by: Vincent Fazio <vfazio@xxxxxxxxxxx>
>





[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