Skip to content

Commit e7452de

Browse files
authored
Merge pull request #83 from altendky/array_generic
Make PyQt5.sip.array generic
2 parents b7f20b5 + 12ade82 commit e7452de

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)