typing: Specify element type for sip.voidptr.asarray
Florian Bruhin
me at the-compiler.org
Sun Jul 9 01:05:58 BST 2023
Hey,
last one for today ;)
In PyQt6/sip.pyi, there is:
class voidptr:
...
def asarray(self, size: int = -1) -> array: ...
which could be specified to return array[int] rather than just array.
As usual, thanks to the PyQt6-stubs project :)
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230709/e57fba89/attachment.sig>
More information about the PyQt
mailing list