nxp-mcuxpresso / spsdk

Secure Provisioning SDK (SPSDK) is unified, reliable and easy to use SW library working across NXP MCU portfolio providing strong foundation from quick customer prototyping up to production deployment.
Other
55 stars 24 forks source link

Change type annotations for RawHid.enumerate #32

Closed robin-nitrokey closed 2 years ago

robin-nitrokey commented 2 years ago

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

mstarecek commented 2 years ago

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.

mstarecek commented 2 years ago

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