Skip to content

Update to PyQt 6.3.1 #12

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/

# pycharm
.idea/
77 changes: 75 additions & 2 deletions PyQt6-stubs/QtBluetooth.pyi

Large diffs are not rendered by default.

710 changes: 674 additions & 36 deletions PyQt6-stubs/QtCore.pyi

Large diffs are not rendered by default.

46 changes: 32 additions & 14 deletions PyQt6-stubs/QtDBus.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The PEP 484 type hints stub file for the QtDBus module.
#
# Generated by SIP 6.5.1
# Generated by SIP 6.6.2
#
# Copyright (c) 2022 Riverbank Computing Limited <[email protected]>
#
Expand Down Expand Up @@ -94,9 +94,11 @@ class QDBus(PyQt6.sip.simplewrapper):
class QDBusConnection(PyQt6.sip.simplewrapper):
class ConnectionCapability(enum.Flag):
UnixFileDescriptorPassing = ... # type: QDBusConnection.ConnectionCapability

class UnregisterMode(enum.Enum):
UnregisterNode = ... # type: QDBusConnection.UnregisterMode
UnregisterTree = ... # type: QDBusConnection.UnregisterMode

class RegisterOption(enum.Flag):
ExportAdaptors = ... # type: QDBusConnection.RegisterOption
ExportScriptableSlots = ... # type: QDBusConnection.RegisterOption
Expand All @@ -116,6 +118,7 @@ class QDBusConnection(PyQt6.sip.simplewrapper):
ExportAllContents = ... # type: QDBusConnection.RegisterOption
ExportAllSignal = ... # type: QDBusConnection.RegisterOption
ExportChildObjects = ... # type: QDBusConnection.RegisterOption

class BusType(enum.Enum):
SessionBus = ... # type: QDBusConnection.BusType
SystemBus = ... # type: QDBusConnection.BusType
Expand Down Expand Up @@ -179,9 +182,11 @@ class QDBusConnectionInterface(QDBusAbstractInterface):
ServiceNotRegistered = ... # type: QDBusConnectionInterface.RegisterServiceReply
ServiceRegistered = ... # type: QDBusConnectionInterface.RegisterServiceReply
ServiceQueued = ... # type: QDBusConnectionInterface.RegisterServiceReply

class ServiceReplacementOptions(enum.Enum):
DontAllowReplacement = ... # type: QDBusConnectionInterface.ServiceReplacementOptions
AllowReplacement = ... # type: QDBusConnectionInterface.ServiceReplacementOptions

class ServiceQueueOptions(enum.Enum):
DontQueueService = ... # type: QDBusConnectionInterface.ServiceQueueOptions
QueueService = ... # type: QDBusConnectionInterface.ServiceQueueOptions
Expand Down Expand Up @@ -248,6 +253,10 @@ class QDBusObjectPath(PyQt6.sip.simplewrapper):
def __init__(self, objectPath: str) -> None: ...
@typing.overload
def __init__(self, a0: "QDBusObjectPath") -> None: ...
def __ge__(self, rhs: "QDBusObjectPath") -> bool: ...
def __eq__(self, other: object): ...
def __ne__(self, other: object): ...
def __lt__(self, rhs: "QDBusObjectPath") -> bool: ...
def swap(self, other: "QDBusObjectPath") -> None: ...
def __hash__(self) -> int: ...
def setPath(self, objectPath: str) -> None: ...
Expand All @@ -260,6 +269,10 @@ class QDBusSignature(PyQt6.sip.simplewrapper):
def __init__(self, dBusSignature: str) -> None: ...
@typing.overload
def __init__(self, a0: "QDBusSignature") -> None: ...
def __ge__(self, rhs: "QDBusSignature") -> bool: ...
def __eq__(self, other: object): ...
def __ne__(self, other: object): ...
def __lt__(self, rhs: "QDBusSignature") -> bool: ...
def swap(self, other: "QDBusSignature") -> None: ...
def __hash__(self) -> int: ...
def setSignature(self, dBusSignature: str) -> None: ...
Expand All @@ -272,6 +285,8 @@ class QDBusVariant(PyQt6.sip.simplewrapper):
def __init__(self, dBusVariant: typing.Any) -> None: ...
@typing.overload
def __init__(self, a0: "QDBusVariant") -> None: ...
def __ne__(self, other: object): ...
def __eq__(self, other: object): ...
def swap(self, other: "QDBusVariant") -> None: ...
def setVariant(self, dBusVariant: typing.Any) -> None: ...
def variant(self) -> typing.Any: ...
Expand All @@ -295,6 +310,7 @@ class QDBusMessage(PyQt6.sip.simplewrapper):
@staticmethod
def createTargetedSignal(service: str, path: str, interface: str, name: str) -> "QDBusMessage": ...
def swap(self, other: "QDBusMessage") -> None: ...
def __lshift__(self, arg: typing.Any) -> "QDBusMessage": ...
def arguments(self) -> typing.List[typing.Any]: ...
def setArguments(self, arguments: typing.Iterable[typing.Any]) -> None: ...
def autoStartService(self) -> bool: ...
Expand Down Expand Up @@ -344,6 +360,7 @@ class QDBusPendingCall(PyQt6.sip.simplewrapper):

class QDBusPendingCallWatcher(QtCore.QObject, QDBusPendingCall):
def __init__(self, call: QDBusPendingCall, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

finished: typing.ClassVar[QtCore.pyqtSignal]
def waitForFinished(self) -> None: ...
def isFinished(self) -> bool: ...
Expand All @@ -357,6 +374,7 @@ class QDBusServiceWatcher(QtCore.QObject):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, service: str, connection: QDBusConnection, watchMode: "QDBusServiceWatcher.WatchModeFlag" = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

serviceOwnerChanged: typing.ClassVar[QtCore.pyqtSignal]
serviceUnregistered: typing.ClassVar[QtCore.pyqtSignal]
serviceRegistered: typing.ClassVar[QtCore.pyqtSignal]
Expand All @@ -383,6 +401,19 @@ class QDBusUnixFileDescriptor(PyQt6.sip.simplewrapper):
def fileDescriptor(self) -> int: ...
def isValid(self) -> bool: ...

class QDBusReply(PyQt6.sip.simplewrapper):
@typing.overload
def __init__(self, reply: QDBusMessage) -> None: ...
@typing.overload
def __init__(self, call: QDBusPendingCall) -> None: ...
@typing.overload
def __init__(self, error: QDBusError) -> None: ...
@typing.overload
def __init__(self, other: "QDBusReply") -> None: ...
def value(self, type: typing.Any = ...) -> typing.Any: ...
def isValid(self) -> bool: ...
def error(self) -> QDBusError: ...

class QDBusPendingReply(QDBusPendingCall):
@typing.overload
def __init__(self) -> None: ...
Expand All @@ -400,16 +431,3 @@ class QDBusPendingReply(QDBusPendingCall):
def isError(self) -> bool: ...
def error(self) -> QDBusError: ...
def argumentAt(self, index: int) -> typing.Any: ...

class QDBusReply(PyQt6.sip.simplewrapper):
@typing.overload
def __init__(self, reply: QDBusMessage) -> None: ...
@typing.overload
def __init__(self, call: QDBusPendingCall) -> None: ...
@typing.overload
def __init__(self, error: QDBusError) -> None: ...
@typing.overload
def __init__(self, other: "QDBusReply") -> None: ...
def value(self, type: typing.Any = ...) -> typing.Any: ...
def isValid(self) -> bool: ...
def error(self) -> QDBusError: ...
8 changes: 5 additions & 3 deletions PyQt6-stubs/QtDesigner.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The PEP 484 type hints stub file for the QtDesigner module.
#
# Generated by SIP 6.5.1
# Generated by SIP 6.6.2
#
# Copyright (c) 2022 Riverbank Computing Limited <[email protected]>
#
Expand Down Expand Up @@ -137,6 +137,7 @@ class QDesignerFormWindowCursorInterface(PyQt6.sip.simplewrapper):
class MoveMode(enum.Enum):
MoveAnchor = ... # type: QDesignerFormWindowCursorInterface.MoveMode
KeepAnchor = ... # type: QDesignerFormWindowCursorInterface.MoveMode

class MoveOperation(enum.Enum):
NoMove = ... # type: QDesignerFormWindowCursorInterface.MoveOperation
Start = ... # type: QDesignerFormWindowCursorInterface.MoveOperation
Expand Down Expand Up @@ -166,6 +167,7 @@ class QDesignerFormWindowCursorInterface(PyQt6.sip.simplewrapper):
class QDesignerFormWindowManagerInterface(QtCore.QObject):
class ActionGroup(enum.Enum):
StyledPreviewActionGroup = ... # type: QDesignerFormWindowManagerInterface.ActionGroup

class Action(enum.Enum):
CutAction = ... # type: QDesignerFormWindowManagerInterface.Action
CopyAction = ... # type: QDesignerFormWindowManagerInterface.Action
Expand Down Expand Up @@ -357,11 +359,11 @@ class QPyDesignerCustomWidgetCollectionPlugin(QtCore.QObject, QDesignerCustomWid
class QPyDesignerCustomWidgetPlugin(QtCore.QObject, QDesignerCustomWidgetInterface):
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

class QPyDesignerMemberSheetExtension(QtCore.QObject, QDesignerMemberSheetExtension):
class QPyDesignerTaskMenuExtension(QtCore.QObject, QDesignerTaskMenuExtension):
def __init__(self, parent: QtCore.QObject) -> None: ...

class QPyDesignerPropertySheetExtension(QtCore.QObject, QDesignerPropertySheetExtension): # type: ignore[misc]
def __init__(self, parent: QtCore.QObject) -> None: ...

class QPyDesignerTaskMenuExtension(QtCore.QObject, QDesignerTaskMenuExtension):
class QPyDesignerMemberSheetExtension(QtCore.QObject, QDesignerMemberSheetExtension):
def __init__(self, parent: QtCore.QObject) -> None: ...
Loading