nxp-mcuxpresso/spsdk

Change type annotations for RawHid.enumerate

Closed this issue · 2 comments

Could the type annotation for RawHid.enumerate be changed to Sequence[RawHid]?

That's a good point, we can return the exact type from all of the scan_* functions to make it a little more user-friendly. As long as they inherit from Interface everything should be fine.

As of version 1.6.1, return type hits for all scan_* functions now point to concrete derived class instead of base Interface class.