-
Notifications
You must be signed in to change notification settings - Fork 31
The rest #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The rest #92
Changes from all commits
f37afb8
711c2e7
98db3ce
b19bc05
46d0ab0
2936116
5df7c71
a4bf46e
98e8deb
88c1b1d
e0a9852
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -473,7 +473,7 @@ class QPyDesignerTaskMenuExtension(QtCore.QObject, QDesignerTaskMenuExtension): | |
def __init__(self, parent: QtCore.QObject) -> None: ... | ||
|
||
|
||
class QPyDesignerPropertySheetExtension(QtCore.QObject, QDesignerPropertySheetExtension): | ||
class QPyDesignerPropertySheetExtension(QtCore.QObject, QDesignerPropertySheetExtension): # type: ignore[misc] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
def __init__(self, parent: QtCore.QObject) -> None: ... | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ class QQuickItem(QtCore.QObject, QtQml.QQmlParserStatus): | |
@typing.overload | ||
def __init__(self, v: float) -> None: ... | ||
@typing.overload | ||
def __init__(self, v: bool) -> None: ... | ||
def __init__(self, v: bool) -> None: ... # type: ignore[misc] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
@typing.overload | ||
def __init__(self, a0: 'QQuickItem.ItemChangeData') -> None: ... | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
from typing import overload, Sequence, TypeVar, Union | ||
from typing import overload, Generic, Iterable, Sequence, TypeVar, Union | ||
|
||
|
||
# Constants. | ||
|
@@ -40,11 +40,24 @@ class wrapper(simplewrapper): ... | |
Buffer = Union['array', 'voidptr', str, bytes, bytearray] | ||
|
||
|
||
T = TypeVar("T") | ||
_T = TypeVar("_T") | ||
|
||
|
||
# The array type. | ||
class array(Sequence[T]): ... | ||
class array(Sequence[_T], Generic[_T]): | ||
@overload | ||
def __delitem__(self, key: int) -> None: ... | ||
@overload | ||
def __delitem__(self, key: slice) -> None: ... | ||
Comment on lines
+48
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could be a |
||
@overload | ||
def __getitem__(self, key: int) -> _T: ... | ||
@overload | ||
def __getitem__(self, key: slice) -> "array[_T]": ... | ||
def __len__(self) -> int: ... | ||
@overload | ||
def __setitem__(self, key: int, value: _T) -> None: ... | ||
@overload | ||
def __setitem__(self, key: slice, value: Iterable[_T]) -> None: ... | ||
|
||
|
||
# The voidptr type. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/stlehmann/PyQt5-stubs/blob/f37afb8e579727ab76680d13bb155b07650ab040/PyQt5-stubs/QtCore.pyi#L2365
https://github.com/stlehmann/PyQt5-stubs/blob/f37afb8e579727ab76680d13bb155b07650ab040/PyQt5-stubs/QtCore.pyi#L6137