Skip to content
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

Update to PyQt 6.4.0 and improve bytes support #10

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
4 changes: 3 additions & 1 deletion PyQt6-stubs/QAxContainer.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The PEP 484 type hints stub file for the QAxContainer module.
#
# Generated by SIP 6.5.1
# Generated by SIP 6.7.0
#
# Copyright (c) 2022 Riverbank Computing Limited <[email protected]>
#
Expand Down Expand Up @@ -74,6 +74,7 @@ class QAxObjectInterface(PyQt6.sip.simplewrapper):

class QAxBaseObject(QtCore.QObject, QAxObjectInterface):
def __init__(self) -> None: ...

signal: typing.ClassVar[QtCore.pyqtSignal]
propertyChanged: typing.ClassVar[QtCore.pyqtSignal]
exception: typing.ClassVar[QtCore.pyqtSignal]
Expand All @@ -94,6 +95,7 @@ class QAxObject(QAxBaseObject, QAxBase):

class QAxBaseWidget(QtWidgets.QWidget, QAxObjectInterface):
def __init__(self) -> None: ...

signal: typing.ClassVar[QtCore.pyqtSignal]
propertyChanged: typing.ClassVar[QtCore.pyqtSignal]
exception: typing.ClassVar[QtCore.pyqtSignal]
Expand Down
83 changes: 81 additions & 2 deletions PyQt6-stubs/QtBluetooth.pyi

Large diffs are not rendered by default.

827 changes: 749 additions & 78 deletions PyQt6-stubs/QtCore.pyi

Large diffs are not rendered by default.

20 changes: 19 additions & 1 deletion 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.7.0
#
# 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 Down
4 changes: 3 additions & 1 deletion 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.7.0
#
# 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
Loading