Skip to content

Commit 12ade82

Browse files
committed
Make PyQt5.sip.array generic
1 parent a902d7f commit 12ade82

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PyQt5-stubs/sip.pyi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# POSSIBILITY OF SUCH DAMAGE.
2222

2323

24-
from typing import overload, Sequence, Union
24+
from typing import overload, Sequence, TypeVar, Union
2525

2626

2727
# Constants.
@@ -40,8 +40,11 @@ class wrapper(simplewrapper): ...
4040
Buffer = Union['array', 'voidptr', str, bytes, bytearray]
4141

4242

43+
T = TypeVar("T")
44+
45+
4346
# The array type.
44-
class array(Sequence): ...
47+
class array(Sequence[T]): ...
4548

4649

4750
# The voidptr type.

0 commit comments

Comments
 (0)