Change type annotations for RawHid.enumerate
Closed this issue · 2 comments
robin-nitrokey commented
Could the type annotation for RawHid.enumerate
be changed to Sequence[RawHid]
?
mstarecek commented
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
As of version 1.6.1, return type hits for all scan_*
functions now point to concrete derived class instead of base Interface
class.