diff --git a/PyQt6-stubs/QAxContainer.pyi b/PyQt6-stubs/QAxContainer.pyi index 2a6511c..fb7282d 100644 --- a/PyQt6-stubs/QAxContainer.pyi +++ b/PyQt6-stubs/QAxContainer.pyi @@ -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 # @@ -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] @@ -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] diff --git a/PyQt6-stubs/QtBluetooth.pyi b/PyQt6-stubs/QtBluetooth.pyi index a84f368..9af3ce8 100644 --- a/PyQt6-stubs/QtBluetooth.pyi +++ b/PyQt6-stubs/QtBluetooth.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtBluetooth module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -36,6 +36,7 @@ class QBluetooth(PyQt6.sip.simplewrapper): AttAuthorizationRequired = ... # type: QBluetooth.AttAccessConstraint AttAuthenticationRequired = ... # type: QBluetooth.AttAccessConstraint AttEncryptionRequired = ... # type: QBluetooth.AttAccessConstraint + class Security(enum.Flag): NoSecurity = ... # type: QBluetooth.Security Authorization = ... # type: QBluetooth.Security @@ -52,6 +53,10 @@ class QBluetoothAddress(PyQt6.sip.simplewrapper): def __init__(self, address: str) -> None: ... @typing.overload def __init__(self, other: "QBluetoothAddress") -> None: ... + def __ge__(self, b: "QBluetoothAddress") -> bool: ... + def __lt__(self, b: "QBluetoothAddress") -> bool: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def toString(self) -> str: ... def toUInt64(self) -> int: ... def clear(self) -> None: ... @@ -62,6 +67,7 @@ class QBluetoothDeviceDiscoveryAgent(QtCore.QObject): NoMethod = ... # type: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod ClassicMethod = ... # type: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod LowEnergyMethod = ... # type: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod + class Error(enum.Enum): NoError = ... # type: QBluetoothDeviceDiscoveryAgent.Error InputOutputError = ... # type: QBluetoothDeviceDiscoveryAgent.Error @@ -70,6 +76,7 @@ class QBluetoothDeviceDiscoveryAgent(QtCore.QObject): UnsupportedPlatformError = ... # type: QBluetoothDeviceDiscoveryAgent.Error UnsupportedDiscoveryMethod = ... # type: QBluetoothDeviceDiscoveryAgent.Error LocationServiceTurnedOffError = ... # type: QBluetoothDeviceDiscoveryAgent.Error + MissingPermissionsError = ... # type: QBluetoothDeviceDiscoveryAgent.Error UnknownError = ... # type: QBluetoothDeviceDiscoveryAgent.Error @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @@ -99,12 +106,15 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): None_ = ... # type: QBluetoothDeviceInfo.Field RSSI = ... # type: QBluetoothDeviceInfo.Field ManufacturerData = ... # type: QBluetoothDeviceInfo.Field + ServiceData = ... # type: QBluetoothDeviceInfo.Field All = ... # type: QBluetoothDeviceInfo.Field + class CoreConfiguration(enum.Flag): UnknownCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration LowEnergyCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration BaseRateCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration BaseRateAndLowEnergyCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration + class ServiceClass(enum.Flag): NoService = ... # type: QBluetoothDeviceInfo.ServiceClass PositioningService = ... # type: QBluetoothDeviceInfo.ServiceClass @@ -116,6 +126,7 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): TelephonyService = ... # type: QBluetoothDeviceInfo.ServiceClass InformationService = ... # type: QBluetoothDeviceInfo.ServiceClass AllServices = ... # type: QBluetoothDeviceInfo.ServiceClass + class MinorHealthClass(enum.Enum): UncategorizedHealthDevice = ... # type: QBluetoothDeviceInfo.MinorHealthClass HealthBloodPressureMonitor = ... # type: QBluetoothDeviceInfo.MinorHealthClass @@ -125,6 +136,7 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): HealthPulseOximeter = ... # type: QBluetoothDeviceInfo.MinorHealthClass HealthDataDisplay = ... # type: QBluetoothDeviceInfo.MinorHealthClass HealthStepCounter = ... # type: QBluetoothDeviceInfo.MinorHealthClass + class MinorToyClass(enum.Enum): UncategorizedToy = ... # type: QBluetoothDeviceInfo.MinorToyClass ToyRobot = ... # type: QBluetoothDeviceInfo.MinorToyClass @@ -132,6 +144,7 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): ToyDoll = ... # type: QBluetoothDeviceInfo.MinorToyClass ToyController = ... # type: QBluetoothDeviceInfo.MinorToyClass ToyGame = ... # type: QBluetoothDeviceInfo.MinorToyClass + class MinorWearableClass(enum.Enum): UncategorizedWearableDevice = ... # type: QBluetoothDeviceInfo.MinorWearableClass WearableWristWatch = ... # type: QBluetoothDeviceInfo.MinorWearableClass @@ -139,12 +152,14 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): WearableJacket = ... # type: QBluetoothDeviceInfo.MinorWearableClass WearableHelmet = ... # type: QBluetoothDeviceInfo.MinorWearableClass WearableGlasses = ... # type: QBluetoothDeviceInfo.MinorWearableClass + class MinorImagingClass(enum.Enum): UncategorizedImagingDevice = ... # type: QBluetoothDeviceInfo.MinorImagingClass ImageDisplay = ... # type: QBluetoothDeviceInfo.MinorImagingClass ImageCamera = ... # type: QBluetoothDeviceInfo.MinorImagingClass ImageScanner = ... # type: QBluetoothDeviceInfo.MinorImagingClass ImagePrinter = ... # type: QBluetoothDeviceInfo.MinorImagingClass + class MinorPeripheralClass(enum.Enum): UncategorizedPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass KeyboardPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass @@ -156,6 +171,7 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): SensingDevicePeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass DigitizerTabletPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass CardReaderPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass + class MinorAudioVideoClass(enum.Enum): UncategorizedAudioVideoDevice = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass WearableHeadsetDevice = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass @@ -174,6 +190,7 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): VideoDisplayAndLoudspeaker = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass VideoConferencing = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass GamingDevice = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass + class MinorNetworkClass(enum.Enum): NetworkFullService = ... # type: QBluetoothDeviceInfo.MinorNetworkClass NetworkLoadFactorOne = ... # type: QBluetoothDeviceInfo.MinorNetworkClass @@ -183,6 +200,7 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): NetworkLoadFactorFive = ... # type: QBluetoothDeviceInfo.MinorNetworkClass NetworkLoadFactorSix = ... # type: QBluetoothDeviceInfo.MinorNetworkClass NetworkNoService = ... # type: QBluetoothDeviceInfo.MinorNetworkClass + class MinorPhoneClass(enum.Enum): UncategorizedPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass CellularPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass @@ -190,6 +208,7 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): SmartPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass WiredModemOrVoiceGatewayPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass CommonIsdnAccessPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass + class MinorComputerClass(enum.Enum): UncategorizedComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass DesktopComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass @@ -198,8 +217,10 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): HandheldClamShellComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass HandheldComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass WearableComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass + class MinorMiscellaneousClass(enum.Enum): UncategorizedMiscellaneous = ... # type: QBluetoothDeviceInfo.MinorMiscellaneousClass + class MajorDeviceClass(enum.Enum): MiscellaneousDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass ComputerDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass @@ -220,6 +241,14 @@ class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): def __init__(self, uuid: "QBluetoothUuid", name: str, classOfDevice: int) -> None: ... @typing.overload def __init__(self, other: "QBluetoothDeviceInfo") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def setServiceData(self, serviceId: "QBluetoothUuid", data: QtCore.QByteArray) -> bool: ... + @typing.overload + def serviceData(self) -> typing.Dict["QBluetoothUuid", QtCore.QByteArray]: ... + @typing.overload + def serviceData(self, serviceId: "QBluetoothUuid") -> QtCore.QByteArray: ... + def serviceIds(self) -> typing.List["QBluetoothUuid"]: ... def setName(self, name: str) -> None: ... def setManufacturerData(self, manufacturerId: int, data: QtCore.QByteArray) -> bool: ... @typing.overload @@ -249,6 +278,8 @@ class QBluetoothHostInfo(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QBluetoothHostInfo") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def setName(self, name: str) -> None: ... def name(self) -> str: ... def setAddress(self, address: QBluetoothAddress) -> None: ... @@ -258,12 +289,15 @@ class QBluetoothLocalDevice(QtCore.QObject): class Error(enum.Enum): NoError = ... # type: QBluetoothLocalDevice.Error PairingError = ... # type: QBluetoothLocalDevice.Error + MissingPermissionsError = ... # type: QBluetoothLocalDevice.Error UnknownError = ... # type: QBluetoothLocalDevice.Error + class HostMode(enum.Enum): HostPoweredOff = ... # type: QBluetoothLocalDevice.HostMode HostConnectable = ... # type: QBluetoothLocalDevice.HostMode HostDiscoverable = ... # type: QBluetoothLocalDevice.HostMode HostDiscoverableLimitedInquiry = ... # type: QBluetoothLocalDevice.HostMode + class Pairing(enum.Enum): Unpaired = ... # type: QBluetoothLocalDevice.Pairing Paired = ... # type: QBluetoothLocalDevice.Pairing @@ -272,6 +306,7 @@ class QBluetoothLocalDevice(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, address: QBluetoothAddress, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + deviceDisconnected: typing.ClassVar[QtCore.pyqtSignal] deviceConnected: typing.ClassVar[QtCore.pyqtSignal] errorOccurred: typing.ClassVar[QtCore.pyqtSignal] @@ -297,7 +332,9 @@ class QBluetoothServer(QtCore.QObject): InputOutputError = ... # type: QBluetoothServer.Error ServiceAlreadyRegisteredError = ... # type: QBluetoothServer.Error UnsupportedProtocolError = ... # type: QBluetoothServer.Error + MissingPermissionsError = ... # type: QBluetoothServer.Error def __init__(self, serverType: "QBluetoothServiceInfo.Protocol", parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] newConnection: typing.ClassVar[QtCore.pyqtSignal] def error(self) -> "QBluetoothServer.Error": ... @@ -321,16 +358,19 @@ class QBluetoothServiceDiscoveryAgent(QtCore.QObject): class DiscoveryMode(enum.Enum): MinimalDiscovery = ... # type: QBluetoothServiceDiscoveryAgent.DiscoveryMode FullDiscovery = ... # type: QBluetoothServiceDiscoveryAgent.DiscoveryMode + class Error(enum.Enum): NoError = ... # type: QBluetoothServiceDiscoveryAgent.Error InputOutputError = ... # type: QBluetoothServiceDiscoveryAgent.Error PoweredOffError = ... # type: QBluetoothServiceDiscoveryAgent.Error InvalidBluetoothAdapterError = ... # type: QBluetoothServiceDiscoveryAgent.Error + MissingPermissionsError = ... # type: QBluetoothServiceDiscoveryAgent.Error UnknownError = ... # type: QBluetoothServiceDiscoveryAgent.Error @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, deviceAdapter: QBluetoothAddress, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] canceled: typing.ClassVar[QtCore.pyqtSignal] finished: typing.ClassVar[QtCore.pyqtSignal] @@ -355,6 +395,7 @@ class QBluetoothServiceInfo(PyQt6.sip.simplewrapper): UnknownProtocol = ... # type: QBluetoothServiceInfo.Protocol L2capProtocol = ... # type: QBluetoothServiceInfo.Protocol RfcommProtocol = ... # type: QBluetoothServiceInfo.Protocol + class AttributeId(enum.Enum): ServiceRecordHandle = ... # type: QBluetoothServiceInfo.AttributeId ServiceClassIds = ... # type: QBluetoothServiceInfo.AttributeId @@ -421,6 +462,8 @@ class QBluetoothSocket(QtCore.QIODevice): NetworkError = ... # type: QBluetoothSocket.SocketError UnsupportedProtocolError = ... # type: QBluetoothSocket.SocketError OperationError = ... # type: QBluetoothSocket.SocketError + MissingPermissionsError = ... # type: QBluetoothSocket.SocketError + class SocketState(enum.Enum): UnconnectedState = ... # type: QBluetoothSocket.SocketState ServiceLookupState = ... # type: QBluetoothSocket.SocketState @@ -438,7 +481,7 @@ class QBluetoothSocket(QtCore.QIODevice): def doDeviceDiscovery(self, service: QBluetoothServiceInfo, openMode: QtCore.QIODeviceBase.OpenModeFlag) -> None: ... def setSocketError(self, error: "QBluetoothSocket.SocketError") -> None: ... def setSocketState(self, state: "QBluetoothSocket.SocketState") -> None: ... - def writeData(self, data: bytes) -> int: ... # type: ignore[override] + def writeData(self, data: PyQt6.sip.array[bytes]) -> int: ... # type: ignore[override] def readData(self, maxlen: int) -> bytes: ... stateChanged: typing.ClassVar[QtCore.pyqtSignal] errorOccurred: typing.ClassVar[QtCore.pyqtSignal] @@ -487,6 +530,7 @@ class QBluetoothUuid(QtCore.QUuid): EnvironmentalSensingConfiguration = ... # type: QBluetoothUuid.DescriptorType EnvironmentalSensingMeasurement = ... # type: QBluetoothUuid.DescriptorType EnvironmentalSensingTriggerSetting = ... # type: QBluetoothUuid.DescriptorType + class CharacteristicType(enum.Enum): DeviceName = ... # type: QBluetoothUuid.CharacteristicType Appearance = ... # type: QBluetoothUuid.CharacteristicType @@ -625,6 +669,7 @@ class QBluetoothUuid(QtCore.QUuid): MagneticFluxDensity3D = ... # type: QBluetoothUuid.CharacteristicType Language = ... # type: QBluetoothUuid.CharacteristicType BarometricPressureTrend = ... # type: QBluetoothUuid.CharacteristicType + class ServiceClassUuid(enum.Enum): ServiceDiscoveryServer = ... # type: QBluetoothUuid.ServiceClassUuid BrowseGroupDescriptor = ... # type: QBluetoothUuid.ServiceClassUuid @@ -717,6 +762,7 @@ class QBluetoothUuid(QtCore.QUuid): WeightScale = ... # type: QBluetoothUuid.ServiceClassUuid BondManagement = ... # type: QBluetoothUuid.ServiceClassUuid ContinuousGlucoseMonitoring = ... # type: QBluetoothUuid.ServiceClassUuid + class ProtocolUuid(enum.Enum): Sdp = ... # type: QBluetoothUuid.ProtocolUuid Udp = ... # type: QBluetoothUuid.ProtocolUuid @@ -763,6 +809,8 @@ class QBluetoothUuid(QtCore.QUuid): def __init__(self, uuid: "QBluetoothUuid") -> None: ... @typing.overload def __init__(self, uuid: QtCore.QUuid) -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... @staticmethod def descriptorToString(uuid: "QBluetoothUuid.DescriptorType") -> str: ... @staticmethod @@ -785,6 +833,8 @@ class QLowEnergyAdvertisingData(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QLowEnergyAdvertisingData") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def swap(self, other: "QLowEnergyAdvertisingData") -> None: ... def rawData(self) -> QtCore.QByteArray: ... def setRawData(self, data: QtCore.QByteArray) -> None: ... @@ -808,24 +858,32 @@ class QLowEnergyAdvertisingParameters(PyQt6.sip.simplewrapper): UseWhiteListForScanning = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy UseWhiteListForConnecting = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy UseWhiteListForScanningAndConnecting = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy + class Mode(enum.Enum): AdvInd = ... # type: QLowEnergyAdvertisingParameters.Mode AdvScanInd = ... # type: QLowEnergyAdvertisingParameters.Mode AdvNonConnInd = ... # type: QLowEnergyAdvertisingParameters.Mode + class AddressInfo(PyQt6.sip.simplewrapper): address = ... # type: QBluetoothAddress type = ... # type: 'QLowEnergyController.RemoteAddressType' + @typing.overload def __init__(self, addr: QBluetoothAddress, t: "QLowEnergyController.RemoteAddressType") -> None: ... @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QLowEnergyAdvertisingParameters.AddressInfo") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QLowEnergyAdvertisingParameters") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def swap(self, other: "QLowEnergyAdvertisingParameters") -> None: ... def maximumInterval(self) -> int: ... def minimumInterval(self) -> int: ... @@ -850,10 +908,13 @@ class QLowEnergyCharacteristic(PyQt6.sip.simplewrapper): CCCDDisable = ... # type: QtCore.QByteArray CCCDEnableIndication = ... # type: QtCore.QByteArray CCCDEnableNotification = ... # type: QtCore.QByteArray + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QLowEnergyCharacteristic") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def clientCharacteristicConfiguration(self) -> "QLowEnergyDescriptor": ... def isValid(self) -> bool: ... def descriptors(self) -> typing.List["QLowEnergyDescriptor"]: ... @@ -868,6 +929,8 @@ class QLowEnergyCharacteristicData(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QLowEnergyCharacteristicData") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def swap(self, other: "QLowEnergyCharacteristicData") -> None: ... def isValid(self) -> bool: ... def maximumValueLength(self) -> int: ... @@ -892,6 +955,8 @@ class QLowEnergyConnectionParameters(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QLowEnergyConnectionParameters") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def swap(self, other: "QLowEnergyConnectionParameters") -> None: ... def supervisionTimeout(self) -> int: ... def setSupervisionTimeout(self, timeout: int) -> None: ... @@ -905,9 +970,11 @@ class QLowEnergyController(QtCore.QObject): class Role(enum.Enum): CentralRole = ... # type: QLowEnergyController.Role PeripheralRole = ... # type: QLowEnergyController.Role + class RemoteAddressType(enum.Enum): PublicAddress = ... # type: QLowEnergyController.RemoteAddressType RandomAddress = ... # type: QLowEnergyController.RemoteAddressType + class ControllerState(enum.Enum): UnconnectedState = ... # type: QLowEnergyController.ControllerState ConnectingState = ... # type: QLowEnergyController.ControllerState @@ -916,6 +983,7 @@ class QLowEnergyController(QtCore.QObject): DiscoveredState = ... # type: QLowEnergyController.ControllerState ClosingState = ... # type: QLowEnergyController.ControllerState AdvertisingState = ... # type: QLowEnergyController.ControllerState + class Error(enum.Enum): NoError = ... # type: QLowEnergyController.Error UnknownError = ... # type: QLowEnergyController.Error @@ -926,6 +994,7 @@ class QLowEnergyController(QtCore.QObject): AdvertisingError = ... # type: QLowEnergyController.Error RemoteHostClosedError = ... # type: QLowEnergyController.Error AuthorizationError = ... # type: QLowEnergyController.Error + MissingPermissionsError = ... # type: QLowEnergyController.Error def remoteDeviceUuid(self) -> QBluetoothUuid: ... def role(self) -> "QLowEnergyController.Role": ... def requestConnectionUpdate(self, parameters: QLowEnergyConnectionParameters) -> None: ... @@ -972,6 +1041,8 @@ class QLowEnergyDescriptor(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QLowEnergyDescriptor") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def type(self) -> QBluetoothUuid.DescriptorType: ... def name(self) -> str: ... def uuid(self) -> QBluetoothUuid: ... @@ -985,6 +1056,8 @@ class QLowEnergyDescriptorData(PyQt6.sip.simplewrapper): def __init__(self, uuid: QBluetoothUuid, value: QtCore.QByteArray) -> None: ... @typing.overload def __init__(self, other: "QLowEnergyDescriptorData") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def swap(self, other: "QLowEnergyDescriptorData") -> None: ... def writeConstraints(self) -> QBluetooth.AttAccessConstraint: ... def isWritable(self) -> bool: ... @@ -1003,6 +1076,7 @@ class QLowEnergyService(QtCore.QObject): WriteWithResponse = ... # type: QLowEnergyService.WriteMode WriteWithoutResponse = ... # type: QLowEnergyService.WriteMode WriteSigned = ... # type: QLowEnergyService.WriteMode + class ServiceState(enum.Enum): InvalidService = ... # type: QLowEnergyService.ServiceState DiscoveryRequired = ... # type: QLowEnergyService.ServiceState @@ -1012,6 +1086,7 @@ class QLowEnergyService(QtCore.QObject): RemoteServiceDiscovering = ... # type: QLowEnergyService.ServiceState RemoteServiceDiscovered = ... # type: QLowEnergyService.ServiceState DiscoveringService = ... # type: QLowEnergyService.ServiceState + class ServiceError(enum.Enum): NoError = ... # type: QLowEnergyService.ServiceError OperationError = ... # type: QLowEnergyService.ServiceError @@ -1020,9 +1095,11 @@ class QLowEnergyService(QtCore.QObject): CharacteristicReadError = ... # type: QLowEnergyService.ServiceError DescriptorReadError = ... # type: QLowEnergyService.ServiceError UnknownError = ... # type: QLowEnergyService.ServiceError + class ServiceType(enum.Flag): PrimaryService = ... # type: QLowEnergyService.ServiceType IncludedService = ... # type: QLowEnergyService.ServiceType + class DiscoveryMode(enum.Enum): FullDiscovery = ... # type: QLowEnergyService.DiscoveryMode SkipValueDiscovery = ... # type: QLowEnergyService.DiscoveryMode @@ -1059,6 +1136,8 @@ class QLowEnergyServiceData(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QLowEnergyServiceData") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def swap(self, other: "QLowEnergyServiceData") -> None: ... def isValid(self) -> bool: ... def addCharacteristic(self, characteristic: QLowEnergyCharacteristicData) -> None: ... diff --git a/PyQt6-stubs/QtCore.pyi b/PyQt6-stubs/QtCore.pyi index 037e1b9..99a7596 100644 --- a/PyQt6-stubs/QtCore.pyi +++ b/PyQt6-stubs/QtCore.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtCore module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -30,6 +30,7 @@ import PyQt6.sip class pyqtSignal: signatures = ... # type: typing.Tuple[str, ...] + def __init__(self, *types: typing.Any, name: str = ...) -> None: ... @typing.overload def __get__(self, instance: None, owner: typing.Type["QObject"]) -> "pyqtSignal": ... @@ -39,6 +40,7 @@ class pyqtSignal: class pyqtBoundSignal: signal = ... # type: str + def __getitem__(self, key: object) -> "pyqtBoundSignal": ... def connect(self, slot: "PYQT_SLOT") -> "QMetaObject.Connection": ... @typing.overload @@ -98,9 +100,11 @@ class Qt(PyQt6.sip.simplewrapper): Floor = ... # type: Qt.HighDpiScaleFactorRoundingPolicy RoundPreferFloor = ... # type: Qt.HighDpiScaleFactorRoundingPolicy PassThrough = ... # type: Qt.HighDpiScaleFactorRoundingPolicy + class ChecksumType(enum.Enum): ChecksumIso3309 = ... # type: Qt.ChecksumType ChecksumItuV41 = ... # type: Qt.ChecksumType + class EnterKeyType(enum.Enum): EnterKeyDefault = ... # type: Qt.EnterKeyType EnterKeyReturn = ... # type: Qt.EnterKeyType @@ -110,27 +114,33 @@ class Qt(PyQt6.sip.simplewrapper): EnterKeySearch = ... # type: Qt.EnterKeyType EnterKeyNext = ... # type: Qt.EnterKeyType EnterKeyPrevious = ... # type: Qt.EnterKeyType + class ItemSelectionOperation(enum.Enum): ReplaceSelection = ... # type: Qt.ItemSelectionOperation AddToSelection = ... # type: Qt.ItemSelectionOperation + class TabFocusBehavior(enum.Enum): NoTabFocus = ... # type: Qt.TabFocusBehavior TabFocusTextControls = ... # type: Qt.TabFocusBehavior TabFocusListControls = ... # type: Qt.TabFocusBehavior TabFocusAllControls = ... # type: Qt.TabFocusBehavior + class MouseEventFlag(enum.Flag): MouseEventCreatedDoubleClick = ... # type: Qt.MouseEventFlag + class MouseEventSource(enum.Enum): MouseEventNotSynthesized = ... # type: Qt.MouseEventSource MouseEventSynthesizedBySystem = ... # type: Qt.MouseEventSource MouseEventSynthesizedByQt = ... # type: Qt.MouseEventSource MouseEventSynthesizedByApplication = ... # type: Qt.MouseEventSource + class ScrollPhase(enum.Enum): ScrollBegin = ... # type: Qt.ScrollPhase ScrollUpdate = ... # type: Qt.ScrollPhase ScrollEnd = ... # type: Qt.ScrollPhase NoScrollPhase = ... # type: Qt.ScrollPhase ScrollMomentum = ... # type: Qt.ScrollPhase + class NativeGestureType(enum.Enum): BeginNativeGesture = ... # type: Qt.NativeGestureType EndNativeGesture = ... # type: Qt.NativeGestureType @@ -139,46 +149,56 @@ class Qt(PyQt6.sip.simplewrapper): SmartZoomNativeGesture = ... # type: Qt.NativeGestureType RotateNativeGesture = ... # type: Qt.NativeGestureType SwipeNativeGesture = ... # type: Qt.NativeGestureType + class Edge(enum.Flag): TopEdge = ... # type: Qt.Edge LeftEdge = ... # type: Qt.Edge RightEdge = ... # type: Qt.Edge BottomEdge = ... # type: Qt.Edge + class ApplicationState(enum.Flag): ApplicationSuspended = ... # type: Qt.ApplicationState ApplicationHidden = ... # type: Qt.ApplicationState ApplicationInactive = ... # type: Qt.ApplicationState ApplicationActive = ... # type: Qt.ApplicationState + class HitTestAccuracy(enum.Enum): ExactHit = ... # type: Qt.HitTestAccuracy FuzzyHit = ... # type: Qt.HitTestAccuracy + class WhiteSpaceMode(enum.Enum): WhiteSpaceNormal = ... # type: Qt.WhiteSpaceMode WhiteSpacePre = ... # type: Qt.WhiteSpaceMode WhiteSpaceNoWrap = ... # type: Qt.WhiteSpaceMode WhiteSpaceModeUndefined = ... # type: Qt.WhiteSpaceMode + class FindChildOption(enum.Flag): FindDirectChildrenOnly = ... # type: Qt.FindChildOption FindChildrenRecursively = ... # type: Qt.FindChildOption + class ScreenOrientation(enum.Flag): PrimaryOrientation = ... # type: Qt.ScreenOrientation PortraitOrientation = ... # type: Qt.ScreenOrientation LandscapeOrientation = ... # type: Qt.ScreenOrientation InvertedPortraitOrientation = ... # type: Qt.ScreenOrientation InvertedLandscapeOrientation = ... # type: Qt.ScreenOrientation + class CursorMoveStyle(enum.Enum): LogicalMoveStyle = ... # type: Qt.CursorMoveStyle VisualMoveStyle = ... # type: Qt.CursorMoveStyle + class NavigationMode(enum.Enum): NavigationModeNone = ... # type: Qt.NavigationMode NavigationModeKeypadTabOrder = ... # type: Qt.NavigationMode NavigationModeKeypadDirectional = ... # type: Qt.NavigationMode NavigationModeCursorAuto = ... # type: Qt.NavigationMode NavigationModeCursorForceVisible = ... # type: Qt.NavigationMode + class GestureFlag(enum.Flag): DontStartGestureOnChildren = ... # type: Qt.GestureFlag ReceivePartialGestures = ... # type: Qt.GestureFlag IgnoredGesturesPropagateToParent = ... # type: Qt.GestureFlag + class GestureType(enum.IntEnum): TapGesture = ... # type: Qt.GestureType TapAndHoldGesture = ... # type: Qt.GestureType @@ -186,20 +206,24 @@ class Qt(PyQt6.sip.simplewrapper): PinchGesture = ... # type: Qt.GestureType SwipeGesture = ... # type: Qt.GestureType CustomGesture = ... # type: Qt.GestureType + class GestureState(enum.Enum): GestureStarted = ... # type: Qt.GestureState GestureUpdated = ... # type: Qt.GestureState GestureFinished = ... # type: Qt.GestureState GestureCanceled = ... # type: Qt.GestureState + class TouchPointState(enum.Flag): TouchPointUnknownState = ... # type: Qt.TouchPointState TouchPointPressed = ... # type: Qt.TouchPointState TouchPointMoved = ... # type: Qt.TouchPointState TouchPointStationary = ... # type: Qt.TouchPointState TouchPointReleased = ... # type: Qt.TouchPointState + class CoordinateSystem(enum.Enum): DeviceCoordinates = ... # type: Qt.CoordinateSystem LogicalCoordinates = ... # type: Qt.CoordinateSystem + class AnchorPoint(enum.Enum): AnchorLeft = ... # type: Qt.AnchorPoint AnchorHorizontalCenter = ... # type: Qt.AnchorPoint @@ -207,6 +231,7 @@ class Qt(PyQt6.sip.simplewrapper): AnchorTop = ... # type: Qt.AnchorPoint AnchorVerticalCenter = ... # type: Qt.AnchorPoint AnchorBottom = ... # type: Qt.AnchorPoint + class InputMethodHint(enum.Flag): ImhNone = ... # type: Qt.InputMethodHint ImhHiddenText = ... # type: Qt.InputMethodHint @@ -231,10 +256,12 @@ class Qt(PyQt6.sip.simplewrapper): ImhMultiLine = ... # type: Qt.InputMethodHint ImhNoEditMenu = ... # type: Qt.InputMethodHint ImhNoTextHandles = ... # type: Qt.InputMethodHint + class TileRule(enum.Enum): StretchTile = ... # type: Qt.TileRule RepeatTile = ... # type: Qt.TileRule RoundTile = ... # type: Qt.TileRule + class WindowFrameSection(enum.Enum): NoSection = ... # type: Qt.WindowFrameSection LeftSection = ... # type: Qt.WindowFrameSection @@ -246,25 +273,31 @@ class Qt(PyQt6.sip.simplewrapper): BottomSection = ... # type: Qt.WindowFrameSection BottomLeftSection = ... # type: Qt.WindowFrameSection TitleBarArea = ... # type: Qt.WindowFrameSection + class SizeHint(enum.Enum): MinimumSize = ... # type: Qt.SizeHint PreferredSize = ... # type: Qt.SizeHint MaximumSize = ... # type: Qt.SizeHint MinimumDescent = ... # type: Qt.SizeHint + class SizeMode(enum.Enum): AbsoluteSize = ... # type: Qt.SizeMode RelativeSize = ... # type: Qt.SizeMode + class EventPriority(enum.Enum): HighEventPriority = ... # type: Qt.EventPriority NormalEventPriority = ... # type: Qt.EventPriority LowEventPriority = ... # type: Qt.EventPriority + class Axis(enum.Enum): XAxis = ... # type: Qt.Axis YAxis = ... # type: Qt.Axis ZAxis = ... # type: Qt.Axis + class MaskMode(enum.Enum): MaskInColor = ... # type: Qt.MaskMode MaskOutColor = ... # type: Qt.MaskMode + class TextInteractionFlag(enum.Flag): NoTextInteraction = ... # type: Qt.TextInteractionFlag TextSelectableByMouse = ... # type: Qt.TextInteractionFlag @@ -274,11 +307,13 @@ class Qt(PyQt6.sip.simplewrapper): TextEditable = ... # type: Qt.TextInteractionFlag TextEditorInteraction = ... # type: Qt.TextInteractionFlag TextBrowserInteraction = ... # type: Qt.TextInteractionFlag + class ItemSelectionMode(enum.Enum): ContainsItemShape = ... # type: Qt.ItemSelectionMode IntersectsItemShape = ... # type: Qt.ItemSelectionMode ContainsItemBoundingRect = ... # type: Qt.ItemSelectionMode IntersectsItemBoundingRect = ... # type: Qt.ItemSelectionMode + class ApplicationAttribute(enum.Enum): AA_DontShowIconsInMenus = ... # type: Qt.ApplicationAttribute AA_NativeWindows = ... # type: Qt.ApplicationAttribute @@ -305,10 +340,12 @@ class Qt(PyQt6.sip.simplewrapper): AA_CompressTabletEvents = ... # type: Qt.ApplicationAttribute AA_DisableSessionManager = ... # type: Qt.ApplicationAttribute AA_DisableNativeVirtualKeyboard = ... # type: Qt.ApplicationAttribute + class WindowModality(enum.Enum): NonModal = ... # type: Qt.WindowModality WindowModal = ... # type: Qt.WindowModality ApplicationModal = ... # type: Qt.WindowModality + class MatchFlag(enum.Flag): MatchExactly = ... # type: Qt.MatchFlag MatchFixedString = ... # type: Qt.MatchFlag @@ -320,6 +357,7 @@ class Qt(PyQt6.sip.simplewrapper): MatchWrap = ... # type: Qt.MatchFlag MatchRecursive = ... # type: Qt.MatchFlag MatchRegularExpression = ... # type: Qt.MatchFlag + class ItemFlag(enum.Flag): NoItemFlags = ... # type: Qt.ItemFlag ItemIsSelectable = ... # type: Qt.ItemFlag @@ -331,6 +369,7 @@ class Qt(PyQt6.sip.simplewrapper): ItemNeverHasChildren = ... # type: Qt.ItemFlag ItemIsUserTristate = ... # type: Qt.ItemFlag ItemIsAutoTristate = ... # type: Qt.ItemFlag + class ItemDataRole(enum.IntEnum): DisplayRole = ... # type: Qt.ItemDataRole DecorationRole = ... # type: Qt.ItemDataRole @@ -348,10 +387,12 @@ class Qt(PyQt6.sip.simplewrapper): SizeHintRole = ... # type: Qt.ItemDataRole InitialSortOrderRole = ... # type: Qt.ItemDataRole UserRole = ... # type: Qt.ItemDataRole + class CheckState(enum.Enum): Unchecked = ... # type: Qt.CheckState PartiallyChecked = ... # type: Qt.CheckState Checked = ... # type: Qt.CheckState + class DropAction(enum.Flag): CopyAction = ... # type: Qt.DropAction MoveAction = ... # type: Qt.DropAction @@ -359,16 +400,19 @@ class Qt(PyQt6.sip.simplewrapper): ActionMask = ... # type: Qt.DropAction TargetMoveAction = ... # type: Qt.DropAction IgnoreAction = ... # type: Qt.DropAction + class LayoutDirection(enum.Enum): LeftToRight = ... # type: Qt.LayoutDirection RightToLeft = ... # type: Qt.LayoutDirection LayoutDirectionAuto = ... # type: Qt.LayoutDirection + class ToolButtonStyle(enum.Enum): ToolButtonIconOnly = ... # type: Qt.ToolButtonStyle ToolButtonTextOnly = ... # type: Qt.ToolButtonStyle ToolButtonTextBesideIcon = ... # type: Qt.ToolButtonStyle ToolButtonTextUnderIcon = ... # type: Qt.ToolButtonStyle ToolButtonFollowStyle = ... # type: Qt.ToolButtonStyle + class InputMethodQuery(enum.Flag): ImFont = ... # type: Qt.InputMethodQuery ImCursorPosition = ... # type: Qt.InputMethodQuery @@ -390,12 +434,14 @@ class Qt(PyQt6.sip.simplewrapper): ImAnchorRectangle = ... # type: Qt.InputMethodQuery ImInputItemClipRectangle = ... # type: Qt.InputMethodQuery ImReadOnly = ... # type: Qt.InputMethodQuery + class ContextMenuPolicy(enum.Enum): NoContextMenu = ... # type: Qt.ContextMenuPolicy PreventContextMenu = ... # type: Qt.ContextMenuPolicy DefaultContextMenu = ... # type: Qt.ContextMenuPolicy ActionsContextMenu = ... # type: Qt.ContextMenuPolicy CustomContextMenu = ... # type: Qt.ContextMenuPolicy + class FocusReason(enum.Enum): MouseFocusReason = ... # type: Qt.FocusReason TabFocusReason = ... # type: Qt.FocusReason @@ -406,21 +452,26 @@ class Qt(PyQt6.sip.simplewrapper): MenuBarFocusReason = ... # type: Qt.FocusReason OtherFocusReason = ... # type: Qt.FocusReason NoFocusReason = ... # type: Qt.FocusReason + class TransformationMode(enum.Enum): FastTransformation = ... # type: Qt.TransformationMode SmoothTransformation = ... # type: Qt.TransformationMode + class ClipOperation(enum.Enum): NoClip = ... # type: Qt.ClipOperation ReplaceClip = ... # type: Qt.ClipOperation IntersectClip = ... # type: Qt.ClipOperation + class FillRule(enum.Enum): OddEvenFill = ... # type: Qt.FillRule WindingFill = ... # type: Qt.FillRule + class ShortcutContext(enum.Enum): WidgetShortcut = ... # type: Qt.ShortcutContext WindowShortcut = ... # type: Qt.ShortcutContext ApplicationShortcut = ... # type: Qt.ShortcutContext WidgetWithChildrenShortcut = ... # type: Qt.ShortcutContext + class ConnectionType(enum.Enum): AutoConnection = ... # type: Qt.ConnectionType DirectConnection = ... # type: Qt.ConnectionType @@ -428,18 +479,22 @@ class Qt(PyQt6.sip.simplewrapper): BlockingQueuedConnection = ... # type: Qt.ConnectionType UniqueConnection = ... # type: Qt.ConnectionType SingleShotConnection = ... # type: Qt.ConnectionType + class Corner(enum.Enum): TopLeftCorner = ... # type: Qt.Corner TopRightCorner = ... # type: Qt.Corner BottomLeftCorner = ... # type: Qt.Corner BottomRightCorner = ... # type: Qt.Corner + class CaseSensitivity(enum.Enum): CaseInsensitive = ... # type: Qt.CaseSensitivity CaseSensitive = ... # type: Qt.CaseSensitivity + class ScrollBarPolicy(enum.Enum): ScrollBarAsNeeded = ... # type: Qt.ScrollBarPolicy ScrollBarAlwaysOff = ... # type: Qt.ScrollBarPolicy ScrollBarAlwaysOn = ... # type: Qt.ScrollBarPolicy + class DayOfWeek(enum.Enum): Monday = ... # type: Qt.DayOfWeek Tuesday = ... # type: Qt.DayOfWeek @@ -448,16 +503,19 @@ class Qt(PyQt6.sip.simplewrapper): Friday = ... # type: Qt.DayOfWeek Saturday = ... # type: Qt.DayOfWeek Sunday = ... # type: Qt.DayOfWeek + class TimeSpec(enum.Enum): LocalTime = ... # type: Qt.TimeSpec UTC = ... # type: Qt.TimeSpec OffsetFromUTC = ... # type: Qt.TimeSpec TimeZone = ... # type: Qt.TimeSpec + class DateFormat(enum.Enum): TextDate = ... # type: Qt.DateFormat ISODate = ... # type: Qt.DateFormat ISODateWithMs = ... # type: Qt.DateFormat RFC2822Date = ... # type: Qt.DateFormat + class ToolBarArea(enum.Flag): LeftToolBarArea = ... # type: Qt.ToolBarArea RightToolBarArea = ... # type: Qt.ToolBarArea @@ -465,10 +523,12 @@ class Qt(PyQt6.sip.simplewrapper): BottomToolBarArea = ... # type: Qt.ToolBarArea AllToolBarAreas = ... # type: Qt.ToolBarArea NoToolBarArea = ... # type: Qt.ToolBarArea + class TimerType(enum.Enum): PreciseTimer = ... # type: Qt.TimerType CoarseTimer = ... # type: Qt.TimerType VeryCoarseTimer = ... # type: Qt.TimerType + class DockWidgetArea(enum.Flag): LeftDockWidgetArea = ... # type: Qt.DockWidgetArea RightDockWidgetArea = ... # type: Qt.DockWidgetArea @@ -476,15 +536,18 @@ class Qt(PyQt6.sip.simplewrapper): BottomDockWidgetArea = ... # type: Qt.DockWidgetArea AllDockWidgetAreas = ... # type: Qt.DockWidgetArea NoDockWidgetArea = ... # type: Qt.DockWidgetArea + class AspectRatioMode(enum.Enum): IgnoreAspectRatio = ... # type: Qt.AspectRatioMode KeepAspectRatio = ... # type: Qt.AspectRatioMode KeepAspectRatioByExpanding = ... # type: Qt.AspectRatioMode + class TextFormat(enum.Enum): PlainText = ... # type: Qt.TextFormat RichText = ... # type: Qt.TextFormat AutoText = ... # type: Qt.TextFormat MarkdownText = ... # type: Qt.TextFormat + class CursorShape(enum.Enum): ArrowCursor = ... # type: Qt.CursorShape UpArrowCursor = ... # type: Qt.CursorShape @@ -511,6 +574,7 @@ class Qt(PyQt6.sip.simplewrapper): DragCopyCursor = ... # type: Qt.CursorShape DragMoveCursor = ... # type: Qt.CursorShape DragLinkCursor = ... # type: Qt.CursorShape + class UIEffect(enum.Enum): UI_General = ... # type: Qt.UIEffect UI_AnimateMenu = ... # type: Qt.UIEffect @@ -519,6 +583,7 @@ class Qt(PyQt6.sip.simplewrapper): UI_AnimateTooltip = ... # type: Qt.UIEffect UI_FadeTooltip = ... # type: Qt.UIEffect UI_AnimateToolBox = ... # type: Qt.UIEffect + class BrushStyle(enum.Enum): NoBrush = ... # type: Qt.BrushStyle SolidPattern = ... # type: Qt.BrushStyle @@ -539,16 +604,19 @@ class Qt(PyQt6.sip.simplewrapper): RadialGradientPattern = ... # type: Qt.BrushStyle ConicalGradientPattern = ... # type: Qt.BrushStyle TexturePattern = ... # type: Qt.BrushStyle + class PenJoinStyle(enum.Enum): MiterJoin = ... # type: Qt.PenJoinStyle BevelJoin = ... # type: Qt.PenJoinStyle RoundJoin = ... # type: Qt.PenJoinStyle MPenJoinStyle = ... # type: Qt.PenJoinStyle SvgMiterJoin = ... # type: Qt.PenJoinStyle + class PenCapStyle(enum.Enum): FlatCap = ... # type: Qt.PenCapStyle SquareCap = ... # type: Qt.PenCapStyle RoundCap = ... # type: Qt.PenCapStyle + class PenStyle(enum.Enum): NoPen = ... # type: Qt.PenStyle SolidLine = ... # type: Qt.PenStyle @@ -557,12 +625,14 @@ class Qt(PyQt6.sip.simplewrapper): DashDotLine = ... # type: Qt.PenStyle DashDotDotLine = ... # type: Qt.PenStyle CustomDashLine = ... # type: Qt.PenStyle + class ArrowType(enum.Enum): NoArrow = ... # type: Qt.ArrowType UpArrow = ... # type: Qt.ArrowType DownArrow = ... # type: Qt.ArrowType LeftArrow = ... # type: Qt.ArrowType RightArrow = ... # type: Qt.ArrowType + class Key(enum.IntEnum): Key_Escape = ... # type: Qt.Key Key_Tab = ... # type: Qt.Key @@ -1033,9 +1103,11 @@ class Qt(PyQt6.sip.simplewrapper): Key_Dead_Aboveverticalline = ... # type: Qt.Key Key_Dead_Belowverticalline = ... # type: Qt.Key Key_Dead_Longsolidusoverlay = ... # type: Qt.Key + class BGMode(enum.Enum): TransparentMode = ... # type: Qt.BGMode OpaqueMode = ... # type: Qt.BGMode + class ImageConversionFlag(enum.Flag): AutoColor = ... # type: Qt.ImageConversionFlag ColorOnly = ... # type: Qt.ImageConversionFlag @@ -1051,6 +1123,7 @@ class Qt(PyQt6.sip.simplewrapper): AvoidDither = ... # type: Qt.ImageConversionFlag NoOpaqueDetection = ... # type: Qt.ImageConversionFlag NoFormatConversion = ... # type: Qt.ImageConversionFlag + class WidgetAttribute(enum.Enum): WA_Disabled = ... # type: Qt.WidgetAttribute WA_UnderMouse = ... # type: Qt.WidgetAttribute @@ -1148,12 +1221,14 @@ class Qt(PyQt6.sip.simplewrapper): WA_TabletTracking = ... # type: Qt.WidgetAttribute WA_ContentsMarginsRespectsSafeArea = ... # type: Qt.WidgetAttribute WA_StyleSheetTarget = ... # type: Qt.WidgetAttribute + class WindowState(enum.Flag): WindowNoState = ... # type: Qt.WindowState WindowMinimized = ... # type: Qt.WindowState WindowMaximized = ... # type: Qt.WindowState WindowFullScreen = ... # type: Qt.WindowState WindowActive = ... # type: Qt.WindowState + class WindowType(enum.IntFlag): Widget = ... # type: Qt.WindowType Window = ... # type: Qt.WindowType @@ -1193,11 +1268,13 @@ class Qt(PyQt6.sip.simplewrapper): BypassWindowManagerHint = ... # type: Qt.WindowType CoverWindow = ... # type: Qt.WindowType MaximizeUsingFullscreenGeometryHint = ... # type: Qt.WindowType + class TextElideMode(enum.Enum): ElideLeft = ... # type: Qt.TextElideMode ElideRight = ... # type: Qt.TextElideMode ElideMiddle = ... # type: Qt.TextElideMode ElideNone = ... # type: Qt.TextElideMode + class TextFlag(enum.IntFlag): TextSingleLine = ... # type: Qt.TextFlag TextDontClip = ... # type: Qt.TextFlag @@ -1209,6 +1286,7 @@ class Qt(PyQt6.sip.simplewrapper): TextIncludeTrailingSpaces = ... # type: Qt.TextFlag TextHideMnemonic = ... # type: Qt.TextFlag TextJustificationForced = ... # type: Qt.TextFlag + class AlignmentFlag(enum.IntFlag): AlignLeft = ... # type: Qt.AlignmentFlag AlignLeading = ... # type: Qt.AlignmentFlag @@ -1224,18 +1302,22 @@ class Qt(PyQt6.sip.simplewrapper): AlignVertical_Mask = ... # type: Qt.AlignmentFlag AlignCenter = ... # type: Qt.AlignmentFlag AlignBaseline = ... # type: Qt.AlignmentFlag + class SortOrder(enum.Enum): AscendingOrder = ... # type: Qt.SortOrder DescendingOrder = ... # type: Qt.SortOrder - class FocusPolicy(enum.Flag): + + class FocusPolicy(enum.IntFlag): NoFocus = ... # type: Qt.FocusPolicy TabFocus = ... # type: Qt.FocusPolicy ClickFocus = ... # type: Qt.FocusPolicy StrongFocus = ... # type: Qt.FocusPolicy WheelFocus = ... # type: Qt.FocusPolicy + class Orientation(enum.Flag): Horizontal = ... # type: Qt.Orientation Vertical = ... # type: Qt.Orientation + class MouseButton(enum.Flag): NoButton = ... # type: Qt.MouseButton AllButtons = ... # type: Qt.MouseButton @@ -1271,12 +1353,14 @@ class Qt(PyQt6.sip.simplewrapper): ExtraButton22 = ... # type: Qt.MouseButton ExtraButton23 = ... # type: Qt.MouseButton ExtraButton24 = ... # type: Qt.MouseButton + class Modifier(enum.Flag): META = ... # type: Qt.Modifier SHIFT = ... # type: Qt.Modifier CTRL = ... # type: Qt.Modifier ALT = ... # type: Qt.Modifier MODIFIER_MASK = ... # type: Qt.Modifier + class KeyboardModifier(enum.Flag): NoModifier = ... # type: Qt.KeyboardModifier ShiftModifier = ... # type: Qt.KeyboardModifier @@ -1286,6 +1370,7 @@ class Qt(PyQt6.sip.simplewrapper): KeypadModifier = ... # type: Qt.KeyboardModifier GroupSwitchModifier = ... # type: Qt.KeyboardModifier KeyboardModifierMask = ... # type: Qt.KeyboardModifier + class GlobalColor(enum.Enum): color0 = ... # type: Qt.GlobalColor color1 = ... # type: Qt.GlobalColor @@ -1341,6 +1426,8 @@ class QKeyCombination(PyQt6.sip.simplewrapper): def __init__(self, modifiers: Qt.KeyboardModifier, key: Qt.Key = ...) -> None: ... @typing.overload def __init__(self, a0: "QKeyCombination") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def toCombined(self) -> int: ... @staticmethod @@ -1351,7 +1438,9 @@ class QKeyCombination(PyQt6.sip.simplewrapper): class QObject(PyQt6.sip.wrapper): staticMetaObject = ... # type: 'QMetaObject' + def __init__(self, parent: typing.Optional["QObject"] = ...) -> None: ... + def isQuickItemType(self) -> bool: ... @typing.overload # type: ignore[misc] @staticmethod def disconnect(a0: "QMetaObject.Connection") -> bool: ... @@ -1388,7 +1477,7 @@ class QObject(PyQt6.sip.wrapper): def signalsBlocked(self) -> bool: ... def isWindowType(self) -> bool: ... def isWidgetType(self) -> bool: ... - def setObjectName(self, name: str) -> None: ... + def setObjectName(self, name: typing.Union["QByteArray", str]) -> None: ... def objectName(self) -> str: ... @typing.overload def findChildren(self, type: typing.Type[QObjectT], name: str = ..., options: Qt.FindChildOption = ...) -> typing.List["QObjectT"]: ... @@ -1413,10 +1502,12 @@ class QAbstractAnimation(QObject): class DeletionPolicy(enum.Enum): KeepWhenStopped = ... # type: QAbstractAnimation.DeletionPolicy DeleteWhenStopped = ... # type: QAbstractAnimation.DeletionPolicy + class State(enum.Enum): Stopped = ... # type: QAbstractAnimation.State Paused = ... # type: QAbstractAnimation.State Running = ... # type: QAbstractAnimation.State + class Direction(enum.Enum): Forward = ... # type: QAbstractAnimation.Direction Backward = ... # type: QAbstractAnimation.Direction @@ -1453,14 +1544,17 @@ class QAbstractEventDispatcher(QObject): interval = ... # type: int timerId = ... # type: int timerType = ... # type: Qt.TimerType + @typing.overload def __init__(self, id: int, i: int, t: Qt.TimerType) -> None: ... @typing.overload def __init__(self, a0: "QAbstractEventDispatcher.TimerInfo") -> None: ... + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + awake: typing.ClassVar[pyqtSignal] aboutToBlock: typing.ClassVar[pyqtSignal] - def filterNativeEvent(self, eventType: "QByteArray", message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ... + def filterNativeEvent(self, eventType: typing.Union["QByteArray", bytes, bytearray], message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ... def removeNativeEventFilter(self, filterObj: "QAbstractNativeEventFilter") -> None: ... def installNativeEventFilter(self, filterObj: "QAbstractNativeEventFilter") -> None: ... def remainingTime(self, timerId: int) -> int: ... @@ -1486,7 +1580,11 @@ class QModelIndex(PyQt6.sip.simplewrapper): def __init__(self, a0: "QModelIndex") -> None: ... @typing.overload def __init__(self, a0: "QPersistentModelIndex") -> None: ... + def __ge__(self, other: "QModelIndex") -> bool: ... def __hash__(self) -> int: ... + def __ne__(self, other: object): ... + def __lt__(self, other: "QModelIndex") -> bool: ... + def __eq__(self, other: object): ... def siblingAtRow(self, row: int) -> "QModelIndex": ... def siblingAtColumn(self, column: int) -> "QModelIndex": ... def sibling(self, arow: int, acolumn: int) -> "QModelIndex": ... @@ -1507,7 +1605,11 @@ class QPersistentModelIndex(PyQt6.sip.simplewrapper): def __init__(self, index: QModelIndex) -> None: ... @typing.overload def __init__(self, other: "QPersistentModelIndex") -> None: ... + def __ge__(self, other: "QPersistentModelIndex") -> bool: ... def __hash__(self) -> int: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __lt__(self, other: "QPersistentModelIndex") -> bool: ... def swap(self, other: "QPersistentModelIndex") -> None: ... def isValid(self) -> bool: ... def model(self) -> "QAbstractItemModel": ... @@ -1524,6 +1626,7 @@ class QAbstractItemModel(QObject): IndexIsValid = ... # type: QAbstractItemModel.CheckIndexOption DoNotUseParent = ... # type: QAbstractItemModel.CheckIndexOption ParentIsInvalid = ... # type: QAbstractItemModel.CheckIndexOption + class LayoutChangeHint(enum.Enum): NoLayoutChangeHint = ... # type: QAbstractItemModel.LayoutChangeHint VerticalSortHint = ... # type: QAbstractItemModel.LayoutChangeHint @@ -1596,7 +1699,7 @@ class QAbstractItemModel(QObject): def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... def supportedDropActions(self) -> Qt.DropAction: ... def dropMimeData(self, data: "QMimeData", action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... - def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> "QMimeData": ... + def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> "QMimeData" | None: ... def mimeTypes(self) -> typing.List[str]: ... def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... def itemData(self, index: QModelIndex) -> typing.Dict[int, typing.Any]: ... @@ -1643,7 +1746,7 @@ class QModelRoleData(PyQt6.sip.simplewrapper): class QAbstractNativeEventFilter(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... - def nativeEventFilter(self, eventType: "QByteArray", message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ... + def nativeEventFilter(self, eventType: typing.Union["QByteArray", bytes, bytearray], message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ... class QAbstractProxyModel(QAbstractItemModel): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... @@ -1656,7 +1759,7 @@ class QAbstractProxyModel(QAbstractItemModel): def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... def supportedDropActions(self) -> Qt.DropAction: ... def mimeTypes(self) -> typing.List[str]: ... - def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> "QMimeData": ... + def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> "QMimeData" | None: ... def hasChildren(self, parent: QModelIndex = ...) -> bool: ... def span(self, index: QModelIndex) -> "QSize": ... def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... @@ -1709,6 +1812,9 @@ class QBitArray(PyQt6.sip.simplewrapper): def __init__(self, size: int, value: bool = ...) -> None: ... @typing.overload def __init__(self, other: "QBitArray") -> None: ... + def __or__(self, a0: "QBitArray", a1: "QBitArray") -> "QBitArray": ... + def __and__(self, a0: "QBitArray", a1: "QBitArray") -> "QBitArray": ... + def __xor__(self, a0: "QBitArray", a1: "QBitArray") -> "QBitArray": ... def toUInt32(self, endianness: "QSysInfo.Endian") -> typing.Tuple[int, bool]: ... @staticmethod def fromBits(data: bytes, len: int) -> "QBitArray": ... @@ -1729,7 +1835,12 @@ class QBitArray(PyQt6.sip.simplewrapper): def fill(self, val: bool, first: int, last: int) -> None: ... @typing.overload def fill(self, val: bool, size: int = ...) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def __invert__(self) -> "QBitArray": ... + def __ixor__(self, a0: "QBitArray") -> "QBitArray": ... + def __ior__(self, a0: "QBitArray") -> "QBitArray": ... + def __iand__(self, a0: "QBitArray") -> "QBitArray": ... def clear(self) -> None: ... def isDetached(self) -> bool: ... def detach(self) -> None: ... @@ -1835,9 +1946,9 @@ class QBuffer(QIODevice): def close(self) -> None: ... def open(self, openMode: QIODeviceBase.OpenModeFlag) -> bool: ... @typing.overload - def setData(self, data: "QByteArray") -> None: ... + def setData(self, data: typing.Union["QByteArray", bytes, bytearray]) -> None: ... @typing.overload - def setData(self, adata: bytes) -> None: ... + def setData(self, adata: PyQt6.sip.array[bytes]) -> None: ... def setBuffer(self, a: "QByteArray") -> None: ... def data(self) -> "QByteArray": ... def buffer(self) -> "QByteArray": ... @@ -1848,6 +1959,7 @@ class QByteArray(PyQt6.sip.simplewrapper): IllegalInputLength = ... # type: QByteArray.Base64DecodingStatus IllegalCharacter = ... # type: QByteArray.Base64DecodingStatus IllegalPadding = ... # type: QByteArray.Base64DecodingStatus + class Base64Option(enum.Flag): Base64Encoding = ... # type: QByteArray.Base64Option Base64UrlEncoding = ... # type: QByteArray.Base64Option @@ -1855,29 +1967,37 @@ class QByteArray(PyQt6.sip.simplewrapper): OmitTrailingEquals = ... # type: QByteArray.Base64Option IgnoreBase64DecodingErrors = ... # type: QByteArray.Base64Option AbortOnBase64DecodingErrors = ... # type: QByteArray.Base64Option + class FromBase64Result(PyQt6.sip.simplewrapper): decoded = ... # type: 'QByteArray' decodingStatus = ... # type: 'QByteArray.Base64DecodingStatus' + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QByteArray.FromBase64Result") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def __int__(self) -> bool: ... def swap(self, other: "QByteArray.FromBase64Result") -> None: ... + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, size: int, c: bytes) -> None: ... @typing.overload - def __init__(self, a: "QByteArray") -> None: ... + def __init__(self, a: typing.Union["QByteArray", bytes, bytearray]) -> None: ... + def __add__(self, a1: "QByteArray", a2: "QByteArray") -> "QByteArray": ... + def percentDecoded(self, percent: str = ...) -> "QByteArray": ... + def isValidUtf8(self) -> bool: ... @typing.overload def sliced(self, pos: int) -> "QByteArray": ... @typing.overload def sliced(self, pos: int, n: int) -> "QByteArray": ... @staticmethod - def fromBase64Encoding(base64: "QByteArray", options: "QByteArray.Base64Option" = ...) -> "QByteArray.FromBase64Result": ... + def fromBase64Encoding(base64: typing.Union["QByteArray", bytes, bytearray], options: "QByteArray.Base64Option" = ...) -> "QByteArray.FromBase64Result": ... def isLower(self) -> bool: ... def isUpper(self) -> bool: ... def compare(self, a: typing.Union["QByteArray", bytes, bytearray, memoryview], cs: Qt.CaseSensitivity = ...) -> int: ... @@ -1885,8 +2005,8 @@ class QByteArray(PyQt6.sip.simplewrapper): def swap(self, other: "QByteArray") -> None: ... def repeated(self, times: int) -> "QByteArray": ... @staticmethod - def fromPercentEncoding(input: "QByteArray", percent: str = ...) -> "QByteArray": ... - def toPercentEncoding(self, exclude: "QByteArray" = ..., include: "QByteArray" = ..., percent: str = ...) -> "QByteArray": ... + def fromPercentEncoding(input: typing.Union["QByteArray", bytes, bytearray], percent: str = ...) -> "QByteArray": ... + def toPercentEncoding(self, exclude: typing.Union["QByteArray", bytes, bytearray] = ..., include: typing.Union["QByteArray", bytes, bytearray] = ..., percent: str = ...) -> "QByteArray": ... def toHex(self, separator: bytes = ...) -> "QByteArray": ... def contains(self, bv: typing.Union["QByteArray", bytes, bytearray, memoryview]) -> bool: ... def push_front(self, a: typing.Union["QByteArray", bytes, bytearray, memoryview]) -> None: ... @@ -1896,6 +2016,8 @@ class QByteArray(PyQt6.sip.simplewrapper): def capacity(self) -> int: ... def data(self) -> bytes: ... def isEmpty(self) -> bool: ... + def __imul__(self, m: int) -> "QByteArray": ... + def __mul__(self, m: int) -> "QByteArray": ... def __repr__(self) -> str: ... def __str__(self) -> str: ... def __hash__(self) -> int: ... @@ -1910,7 +2032,7 @@ class QByteArray(PyQt6.sip.simplewrapper): def isNull(self) -> bool: ... def length(self) -> int: ... @staticmethod - def fromHex(hexEncoded: "QByteArray") -> "QByteArray": ... + def fromHex(hexEncoded: typing.Union["QByteArray", bytes, bytearray]) -> "QByteArray": ... @staticmethod def fromBase64(base64: "QByteArray", options: "QByteArray.Base64Option" = ...) -> "QByteArray": ... @typing.overload @@ -1934,6 +2056,25 @@ class QByteArray(PyQt6.sip.simplewrapper): def toInt(self, base: int = ...) -> typing.Tuple[int, bool]: ... def toUShort(self, base: int = ...) -> typing.Tuple[int, bool]: ... def toShort(self, base: int = ...) -> typing.Tuple[int, bool]: ... + @typing.overload + def __ge__(self, s2: str) -> bool: ... + @typing.overload + def __ge__(self, a2: "QByteArray") -> bool: ... + @typing.overload + def __le__(self, s2: str) -> bool: ... + @typing.overload + def __le__(self, a2: "QByteArray") -> bool: ... + @typing.overload + def __gt__(self, s2: str) -> bool: ... + @typing.overload + def __gt__(self, a2: "QByteArray") -> bool: ... + @typing.overload + def __lt__(self, s2: str) -> bool: ... + @typing.overload + def __lt__(self, a2: "QByteArray") -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __iadd__(self, a: typing.Union["QByteArray", bytes, bytearray, memoryview]) -> "QByteArray": ... def split(self, sep: bytes) -> typing.List["QByteArray"]: ... @typing.overload def replace(self, before: typing.Union["QByteArray", bytes, bytearray, memoryview], after: typing.Union["QByteArray", bytes, bytearray, memoryview]) -> "QByteArray": ... @@ -1975,23 +2116,26 @@ class QByteArray(PyQt6.sip.simplewrapper): def indexOf(self, bv: typing.Union["QByteArray", bytes, bytearray, memoryview], from_: int = ...) -> int: ... def clear(self) -> None: ... def fill(self, c: bytes, size: int = ...) -> "QByteArray": ... + @typing.overload def resize(self, size: int) -> None: ... + @typing.overload + def resize(self, size: int, c: str) -> None: ... class QByteArrayMatcher(PyQt6.sip.simplewrapper): @typing.overload - def __init__(self) -> None: ... + def __init__(self, pattern: bytes, length: int = ...) -> None: ... @typing.overload - def __init__(self, pattern: bytes, length: int) -> None: ... + def __init__(self, pattern: typing.Union[QByteArray, bytes, bytearray, memoryview]) -> None: ... @typing.overload - def __init__(self, pattern: QByteArray) -> None: ... + def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QByteArrayMatcher") -> None: ... def pattern(self) -> QByteArray: ... @typing.overload - def indexIn(self, str: bytes, len: int, from_: int = ...) -> int: ... + def indexIn(self, data: typing.Union[QByteArray, bytes, bytearray, memoryview], from_: int = ...) -> int: ... @typing.overload - def indexIn(self, ba: QByteArray, from_: int = ...) -> int: ... - def setPattern(self, pattern: QByteArray) -> None: ... + def indexIn(self, str: bytes, len: int, from_: int = ...) -> int: ... + def setPattern(self, pattern: typing.Union[QByteArray, bytes, bytearray]) -> None: ... class QCalendar(PyQt6.sip.simplewrapper): class System(enum.Enum): @@ -2001,11 +2145,13 @@ class QCalendar(PyQt6.sip.simplewrapper): Jalali = ... # type: QCalendar.System IslamicCivil = ... # type: QCalendar.System Unspecified = ... # type: int + class YearMonthDay(PyQt6.sip.simplewrapper): day = ... # type: int month = ... # type: int year = ... # type: int + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -2013,12 +2159,13 @@ class QCalendar(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, a0: "QCalendar.YearMonthDay") -> None: ... def isValid(self) -> bool: ... + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, system: "QCalendar.System") -> None: ... @typing.overload - def __init__(self, name: str) -> None: ... + def __init__(self, name: typing.Union[QByteArray, str]) -> None: ... @typing.overload def __init__(self, a0: "QCalendar") -> None: ... @staticmethod @@ -2079,6 +2226,7 @@ class QCborStreamReader(PyQt6.sip.simplewrapper): EndOfString = ... # type: QCborStreamReader.StringResultCode Ok = ... # type: QCborStreamReader.StringResultCode Error = ... # type: QCborStreamReader.StringResultCode + class Type(enum.Enum): UnsignedInteger = ... # type: QCborStreamReader.Type NegativeInteger = ... # type: QCborStreamReader.Type @@ -2098,7 +2246,7 @@ class QCborStreamReader(PyQt6.sip.simplewrapper): @typing.overload def __init__(self) -> None: ... @typing.overload - def __init__(self, data: QByteArray) -> None: ... + def __init__(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... @typing.overload def __init__(self, device: QIODevice) -> None: ... def toInteger(self) -> int: ... @@ -2146,7 +2294,7 @@ class QCborStreamReader(PyQt6.sip.simplewrapper): def reset(self) -> None: ... def clear(self) -> None: ... def reparse(self) -> None: ... - def addData(self, data: QByteArray) -> None: ... + def addData(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... def device(self) -> QIODevice: ... def setDevice(self, device: QIODevice) -> None: ... @@ -2186,6 +2334,8 @@ class QCborStreamWriter(PyQt6.sip.simplewrapper): class QCollatorSortKey(PyQt6.sip.simplewrapper): def __init__(self, other: "QCollatorSortKey") -> None: ... + def __ge__(self, rhs: "QCollatorSortKey") -> bool: ... + def __lt__(self, rhs: "QCollatorSortKey") -> bool: ... def compare(self, key: "QCollatorSortKey") -> int: ... def swap(self, other: "QCollatorSortKey") -> None: ... @@ -2196,6 +2346,10 @@ class QCollator(PyQt6.sip.simplewrapper): def __init__(self, locale: "QLocale") -> None: ... @typing.overload def __init__(self, a0: "QCollator") -> None: ... + @staticmethod + def defaultSortKey(key: str) -> QCollatorSortKey: ... + @staticmethod + def defaultCompare(s1: str, s2: str) -> int: ... def sortKey(self, string: str) -> QCollatorSortKey: ... def compare(self, s1: str, s2: str) -> int: ... def ignorePunctuation(self) -> bool: ... @@ -2238,6 +2392,7 @@ class QCommandLineParser(PyQt6.sip.simplewrapper): class OptionsAfterPositionalArgumentsMode(enum.Enum): ParseAsOptions = ... # type: QCommandLineParser.OptionsAfterPositionalArgumentsMode ParseAsPositionalArguments = ... # type: QCommandLineParser.OptionsAfterPositionalArgumentsMode + class SingleDashWordOptionMode(enum.Enum): ParseAsCompactedShortOptions = ... # type: QCommandLineParser.SingleDashWordOptionMode ParseAsLongOptions = ... # type: QCommandLineParser.SingleDashWordOptionMode @@ -2283,7 +2438,7 @@ class QConcatenateTablesProxyModel(QAbstractItemModel): def span(self, index: QModelIndex) -> "QSize": ... def dropMimeData(self, data: "QMimeData", action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... def canDropMimeData(self, data: "QMimeData", action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... - def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> "QMimeData": ... + def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> "QMimeData" | None: ... def mimeTypes(self) -> typing.List[str]: ... def columnCount(self, parent: QModelIndex = ...) -> int: ... def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... @@ -2560,7 +2715,7 @@ class QEvent(PyQt6.sip.wrapper): def isAccepted(self) -> bool: ... def setAccepted(self, accepted: bool) -> None: ... def spontaneous(self) -> bool: ... - def type(self) -> int: ... + def type(self) -> "QEvent.Type": ... class QTimerEvent(QEvent): def __init__(self, timerId: int) -> None: ... @@ -2579,7 +2734,7 @@ class QChildEvent(QEvent): def child(self) -> QObject: ... class QDynamicPropertyChangeEvent(QEvent): - def __init__(self, name: QByteArray) -> None: ... + def __init__(self, name: typing.Union[QByteArray, bytes, bytearray]) -> None: ... def clone(self) -> "QDynamicPropertyChangeEvent": ... def propertyName(self) -> QByteArray: ... @@ -2612,12 +2767,13 @@ class QCryptographicHash(PyQt6.sip.simplewrapper): @staticmethod def hashLength(method: "QCryptographicHash.Algorithm") -> int: ... @staticmethod - def hash(data: QByteArray, method: "QCryptographicHash.Algorithm") -> QByteArray: ... + def hash(data: typing.Union[QByteArray, bytes, bytearray, memoryview], method: "QCryptographicHash.Algorithm") -> QByteArray: ... + def resultView(self) -> typing.Union[QByteArray, bytes, bytearray, memoryview]: ... def result(self) -> QByteArray: ... @typing.overload - def addData(self, data: bytes) -> None: ... + def addData(self, data: typing.Union[QByteArray, bytes, bytearray, memoryview]) -> None: ... @typing.overload - def addData(self, data: QByteArray) -> None: ... + def addData(self, data: PyQt6.sip.array[bytes]) -> None: ... @typing.overload def addData(self, device: QIODevice) -> bool: ... def reset(self) -> None: ... @@ -2626,14 +2782,17 @@ class QDataStream(QIODeviceBase): class FloatingPointPrecision(enum.Enum): SinglePrecision = ... # type: QDataStream.FloatingPointPrecision DoublePrecision = ... # type: QDataStream.FloatingPointPrecision + class Status(enum.Enum): Ok = ... # type: QDataStream.Status ReadPastEnd = ... # type: QDataStream.Status ReadCorruptData = ... # type: QDataStream.Status WriteFailed = ... # type: QDataStream.Status + class ByteOrder(enum.Enum): BigEndian = ... # type: QDataStream.ByteOrder LittleEndian = ... # type: QDataStream.ByteOrder + class Version(enum.IntEnum): Qt_1_0 = ... # type: QDataStream.Version Qt_2_0 = ... # type: QDataStream.Version @@ -2670,6 +2829,8 @@ class QDataStream(QIODeviceBase): Qt_6_0 = ... # type: QDataStream.Version Qt_6_1 = ... # type: QDataStream.Version Qt_6_2 = ... # type: QDataStream.Version + Qt_6_3 = ... # type: QDataStream.Version + Qt_6_4 = ... # type: QDataStream.Version @typing.overload def __init__(self) -> None: ... @typing.overload @@ -2678,6 +2839,114 @@ class QDataStream(QIODeviceBase): def __init__(self, a0: QByteArray, flags: QIODeviceBase.OpenModeFlag) -> None: ... @typing.overload def __init__(self, a0: QByteArray) -> None: ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: QBitArray) -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: QByteArray) -> "QDataStream": ... + @typing.overload + def __lshift__(self, s: "QDataStream", combination: QKeyCombination) -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: typing.Union["QDate", datetime.date]) -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: typing.Union["QTime", datetime.time]) -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: typing.Union["QDateTime", datetime.datetime]) -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QEasingCurve") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QJsonDocument") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QJsonValue") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QLine") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QLineF") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QLocale") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QMargins") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QMarginsF") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QPoint") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QPointF") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QRect") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QRectF") -> "QDataStream": ... + @typing.overload + def __lshift__(self, out: "QDataStream", re: "QRegularExpression") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QSize") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QSizeF") -> "QDataStream": ... + @typing.overload + def __lshift__(self, ds: "QDataStream", tz: "QTimeZone") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QUrl") -> "QDataStream": ... + @typing.overload + def __lshift__(self, a0: "QDataStream", a1: "QUuid") -> "QDataStream": ... + @typing.overload + def __lshift__(self, s: "QDataStream", p: "QVariant") -> "QDataStream": ... + @typing.overload + def __lshift__(self, out: "QDataStream", revision: "QTypeRevision") -> "QDataStream": ... + @typing.overload + def __lshift__(self, out: "QDataStream", version: "QVersionNumber") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: QBitArray) -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: QByteArray) -> "QDataStream": ... + @typing.overload + def __rshift__(self, s: "QDataStream", combination: QKeyCombination) -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QDate") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QTime") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QDateTime") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QEasingCurve") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QJsonDocument") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QJsonValue") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QLine") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QLineF") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QLocale") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QMargins") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QMarginsF") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QPoint") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QPointF") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QRect") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QRectF") -> "QDataStream": ... + @typing.overload + def __rshift__(self, in_: "QDataStream", re: "QRegularExpression") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QSize") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QSizeF") -> "QDataStream": ... + @typing.overload + def __rshift__(self, ds: "QDataStream", tz: "QTimeZone") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QUrl") -> "QDataStream": ... + @typing.overload + def __rshift__(self, a0: "QDataStream", a1: "QUuid") -> "QDataStream": ... + @typing.overload + def __rshift__(self, s: "QDataStream", p: "QVariant") -> "QDataStream": ... + @typing.overload + def __rshift__(self, in_: "QDataStream", revision: "QTypeRevision") -> "QDataStream": ... + @typing.overload + def __rshift__(self, in_: "QDataStream", version: "QVersionNumber") -> "QDataStream": ... def writeQVariantHash(self, qvarhash: typing.Dict[str, typing.Any]) -> None: ... def readQVariantHash(self) -> typing.Dict[str, typing.Any]: ... def writeQVariantMap(self, qvarmap: typing.Dict[str, typing.Any]) -> None: ... @@ -2747,6 +3016,12 @@ class QDate(PyQt6.sip.simplewrapper): def __init__(self, y: int, m: int, d: int, cal: QCalendar) -> None: ... @typing.overload def __init__(self, a0: "QDate") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: typing.Union["QDate", datetime.date]) -> bool: ... + def __le__(self, rhs: typing.Union["QDate", datetime.date]) -> bool: ... + def __gt__(self, rhs: typing.Union["QDate", datetime.date]) -> bool: ... + def __ge__(self, rhs: typing.Union["QDate", datetime.date]) -> bool: ... def daysTo(self, d: typing.Union["QDate", datetime.date]) -> int: ... @typing.overload def endOfDay(self, spec: Qt.TimeSpec = ..., offsetSeconds: int = ...) -> "QDateTime": ... @@ -2834,6 +3109,12 @@ class QTime(PyQt6.sip.simplewrapper): def __init__(self, h: int, m: int, second: int = ..., msec: int = ...) -> None: ... @typing.overload def __init__(self, a0: "QTime") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: typing.Union["QTime", datetime.time]) -> bool: ... + def __le__(self, rhs: typing.Union["QTime", datetime.time]) -> bool: ... + def __gt__(self, rhs: typing.Union["QTime", datetime.time]) -> bool: ... + def __ge__(self, rhs: typing.Union["QTime", datetime.time]) -> bool: ... def msecsTo(self, t: typing.Union["QTime", datetime.time]) -> int: ... def secsTo(self, t: typing.Union["QTime", datetime.time]) -> int: ... def msecsSinceStartOfDay(self) -> int: ... @@ -2883,6 +3164,12 @@ class QDateTime(PyQt6.sip.simplewrapper): def __init__(self, date: typing.Union[QDate, datetime.date], time: typing.Union[QTime, datetime.time], spec: Qt.TimeSpec = ..., offsetSeconds: int = ...) -> None: ... @typing.overload def __init__(self, date: typing.Union[QDate, datetime.date], time: typing.Union[QTime, datetime.time], timeZone: "QTimeZone") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: typing.Union["QDateTime", datetime.datetime]) -> bool: ... + def __le__(self, rhs: typing.Union["QDateTime", datetime.datetime]) -> bool: ... + def __gt__(self, rhs: typing.Union["QDateTime", datetime.datetime]) -> bool: ... + def __ge__(self, rhs: typing.Union["QDateTime", datetime.datetime]) -> bool: ... def setTime(self, time: typing.Union[QTime, datetime.time]) -> None: ... def setDate(self, date: typing.Union[QDate, datetime.date]) -> None: ... @staticmethod @@ -2961,6 +3248,22 @@ class QDeadlineTimer(PyQt6.sip.simplewrapper): def __init__(self, msecs: int, type: Qt.TimerType = ...) -> None: ... @typing.overload def __init__(self, a0: "QDeadlineTimer") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, d2: "QDeadlineTimer") -> bool: ... + def __le__(self, d2: "QDeadlineTimer") -> bool: ... + def __gt__(self, d2: "QDeadlineTimer") -> bool: ... + def __ge__(self, d2: "QDeadlineTimer") -> bool: ... + @typing.overload + def __add__(self, dt: "QDeadlineTimer", msecs: int) -> "QDeadlineTimer": ... + @typing.overload + def __add__(self, msecs: int, dt: "QDeadlineTimer") -> "QDeadlineTimer": ... + @typing.overload + def __sub__(self, dt: "QDeadlineTimer", msecs: int) -> "QDeadlineTimer": ... + @typing.overload + def __sub__(self, dt1: "QDeadlineTimer", dt2: "QDeadlineTimer") -> int: ... + def __isub__(self, msecs: int) -> "QDeadlineTimer": ... + def __iadd__(self, msecs: int) -> "QDeadlineTimer": ... @staticmethod def current(type: Qt.TimerType = ...) -> "QDeadlineTimer": ... @staticmethod @@ -2993,6 +3296,7 @@ class QDir(PyQt6.sip.simplewrapper): LocaleAware = ... # type: QDir.SortFlag Type = ... # type: QDir.SortFlag NoSort = ... # type: QDir.SortFlag + class Filter(enum.Flag): Dirs = ... # type: QDir.Filter Files = ... # type: QDir.Filter @@ -3068,6 +3372,8 @@ class QDir(PyQt6.sip.simplewrapper): def refresh(self) -> None: ... def rename(self, oldName: str, newName: str) -> bool: ... def remove(self, fileName: str) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def makeAbsolute(self) -> bool: ... def isAbsolute(self) -> bool: ... def isRelative(self) -> bool: ... @@ -3084,6 +3390,9 @@ class QDir(PyQt6.sip.simplewrapper): def rmpath(self, dirPath: str) -> bool: ... def mkpath(self, dirPath: str) -> bool: ... def rmdir(self, dirName: str) -> bool: ... + @typing.overload + def mkdir(self, dirName: str, permissions: "QFileDevice.Permission") -> bool: ... + @typing.overload def mkdir(self, dirName: str) -> bool: ... @typing.overload def entryInfoList(self, filters: "QDir.Filter" = ..., sort: "QDir.SortFlag" = ...) -> typing.List["QFileInfo"]: ... @@ -3137,6 +3446,7 @@ class QDirIterator(PyQt6.sip.simplewrapper): def filePath(self) -> str: ... def fileName(self) -> str: ... def hasNext(self) -> bool: ... + def nextFileInfo(self) -> "QFileInfo": ... def next(self) -> str: ... class QEasingCurve(PyQt6.sip.simplewrapper): @@ -3208,6 +3518,8 @@ class QEasingCurve(PyQt6.sip.simplewrapper): def period(self) -> float: ... def setAmplitude(self, amplitude: float) -> None: ... def amplitude(self) -> float: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QElapsedTimer(PyQt6.sip.simplewrapper): class ClockType(enum.Enum): @@ -3220,6 +3532,10 @@ class QElapsedTimer(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QElapsedTimer") -> None: ... + def __ge__(self, v2: "QElapsedTimer") -> bool: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, v2: "QElapsedTimer") -> bool: ... def nsecsElapsed(self) -> int: ... def secsTo(self, other: "QElapsedTimer") -> int: ... def msecsTo(self, other: "QElapsedTimer") -> int: ... @@ -3241,7 +3557,6 @@ class QEventLoop(QObject): ExcludeUserInputEvents = ... # type: QEventLoop.ProcessEventsFlag ExcludeSocketNotifiers = ... # type: QEventLoop.ProcessEventsFlag WaitForMoreEvents = ... # type: QEventLoop.ProcessEventsFlag - X11ExcludeTimers = ... # type: QEventLoop.ProcessEventsFlag def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... def event(self, event: QEvent) -> bool: ... def quit(self) -> None: ... @@ -3266,14 +3581,17 @@ class QFileDevice(QIODevice): class MemoryMapFlag(enum.Flag): NoOptions = ... # type: QFileDevice.MemoryMapFlag MapPrivateOption = ... # type: QFileDevice.MemoryMapFlag + class FileTime(enum.Enum): FileAccessTime = ... # type: QFileDevice.FileTime FileBirthTime = ... # type: QFileDevice.FileTime FileMetadataChangeTime = ... # type: QFileDevice.FileTime FileModificationTime = ... # type: QFileDevice.FileTime + class FileHandleFlag(enum.Flag): AutoCloseHandle = ... # type: QFileDevice.FileHandleFlag DontCloseHandle = ... # type: QFileDevice.FileHandleFlag + class Permission(enum.Flag): ReadOwner = ... # type: QFileDevice.Permission WriteOwner = ... # type: QFileDevice.Permission @@ -3287,6 +3605,7 @@ class QFileDevice(QIODevice): ReadOther = ... # type: QFileDevice.Permission WriteOther = ... # type: QFileDevice.Permission ExeOther = ... # type: QFileDevice.Permission + class FileError(enum.Enum): NoError = ... # type: QFileDevice.FileError ReadError = ... # type: QFileDevice.FileError @@ -3356,6 +3675,8 @@ class QFile(QFileDevice): def resize(filename: str, sz: int) -> bool: ... def size(self) -> int: ... @typing.overload + def open(self, flags: QIODeviceBase.OpenModeFlag, permissions: QFileDevice.Permission) -> bool: ... + @typing.overload def open(self, flags: QIODeviceBase.OpenModeFlag) -> bool: ... @typing.overload def open(self, fd: int, ioFlags: QIODeviceBase.OpenModeFlag, handleFlags: QFileDevice.FileHandleFlag = ...) -> bool: ... @@ -3391,7 +3712,7 @@ class QFile(QFileDevice): def exists(fileName: str) -> bool: ... @typing.overload @staticmethod - def decodeName(localFileName: QByteArray) -> str: ... + def decodeName(localFileName: typing.Union[QByteArray, bytes, bytearray]) -> str: ... @typing.overload @staticmethod def decodeName(localFileName: str) -> str: ... @@ -3411,6 +3732,7 @@ class QFileInfo(PyQt6.sip.simplewrapper): def __init__(self, dir: QDir, file: str) -> None: ... @typing.overload def __init__(self, fileinfo: "QFileInfo") -> None: ... + def isAlias(self) -> bool: ... def junctionTarget(self) -> str: ... def stat(self) -> None: ... def isJunction(self) -> bool: ... @@ -3472,6 +3794,8 @@ class QFileInfo(PyQt6.sip.simplewrapper): def setFile(self, file: QFileDevice) -> None: ... @typing.overload def setFile(self, dir: QDir, file: str) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QFileSelector(QObject): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... @@ -3488,6 +3812,7 @@ class QFileSystemWatcher(QObject): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... @typing.overload def __init__(self, paths: typing.Iterable[str], parent: typing.Optional[QObject] = ...) -> None: ... + fileChanged: typing.ClassVar[pyqtSignal] directoryChanged: typing.ClassVar[pyqtSignal] def removePaths(self, files: typing.Iterable[str]) -> typing.List[str]: ... @@ -3533,6 +3858,8 @@ class QItemSelectionRange(PyQt6.sip.simplewrapper): def intersected(self, other: "QItemSelectionRange") -> "QItemSelectionRange": ... def indexes(self) -> typing.List[QModelIndex]: ... def isValid(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def intersects(self, other: "QItemSelectionRange") -> bool: ... @typing.overload def contains(self, index: QModelIndex) -> bool: ... @@ -3566,6 +3893,7 @@ class QItemSelectionModel(QObject): def __init__(self, model: typing.Optional[QAbstractItemModel] = ...) -> None: ... @typing.overload def __init__(self, model: QAbstractItemModel, parent: QObject) -> None: ... + modelChanged: typing.ClassVar[pyqtSignal] def setModel(self, model: QAbstractItemModel) -> None: ... def selectedColumns(self, row: int = ...) -> typing.List[QModelIndex]: ... @@ -3602,6 +3930,10 @@ class QItemSelection(PyQt6.sip.simplewrapper): def __init__(self, topLeft: QModelIndex, bottomRight: QModelIndex) -> None: ... @typing.overload def __init__(self, a0: "QItemSelection") -> None: ... + @typing.overload + def __iadd__(self, other: "QItemSelection") -> "QItemSelection": ... + @typing.overload + def __iadd__(self, value: QItemSelectionRange) -> "QItemSelection": ... def lastIndexOf(self, value: QItemSelectionRange, from_: int = ...) -> int: ... def indexOf(self, value: QItemSelectionRange, from_: int = ...) -> int: ... def last(self) -> QItemSelectionRange: ... @@ -3623,6 +3955,8 @@ class QItemSelection(PyQt6.sip.simplewrapper): def append(self, range: QItemSelectionRange) -> None: ... def isEmpty(self) -> bool: ... def clear(self) -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... @typing.overload def __getitem__(self, i: int) -> QItemSelectionRange: ... @typing.overload @@ -3662,6 +3996,7 @@ class QJsonParseError(PyQt6.sip.simplewrapper): GarbageAtEnd = ... # type: QJsonParseError.ParseError error = ... # type: 'QJsonParseError.ParseError' offset = ... # type: int + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -3686,16 +4021,18 @@ class QJsonDocument(PyQt6.sip.simplewrapper): def __getitem__(self, key: str) -> "QJsonValue": ... def swap(self, other: "QJsonDocument") -> None: ... def isNull(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def setArray(self, array: typing.Iterable[typing.Union["QJsonValue", "QJsonValue.Type", typing.Dict[str, "QJsonValue"], bool, int, float, str]]) -> None: ... def setObject(self, object: typing.Dict[str, typing.Union["QJsonValue", "QJsonValue.Type", typing.Iterable["QJsonValue"], bool, int, float, None, str]]) -> None: ... def array(self) -> typing.List["QJsonValue"]: ... - def object(self) -> typing.Dict[str, typing.Union["QJsonValue", "QJsonValue.Type", typing.Iterable["QJsonValue"], bool, int, float, None, str]]: ... + def object(self) -> typing.Dict[str, "QJsonValue"]: ... def isObject(self) -> bool: ... def isArray(self) -> bool: ... def isEmpty(self) -> bool: ... def toJson(self, format: "QJsonDocument.JsonFormat" = ...) -> QByteArray: ... @staticmethod - def fromJson(json: QByteArray, error: typing.Optional[QJsonParseError] = ...) -> "QJsonDocument": ... + def fromJson(json: typing.Union[QByteArray, bytes, bytearray], error: typing.Optional[QJsonParseError] = ...) -> "QJsonDocument": ... def toVariant(self) -> typing.Any: ... @staticmethod def fromVariant(variant: typing.Any) -> "QJsonDocument": ... @@ -3723,10 +4060,12 @@ class QJsonValue(PyQt6.sip.simplewrapper): def toString(self) -> str: ... @typing.overload def toString(self, defaultValue: str) -> str: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... @typing.overload - def toObject(self) -> typing.Dict[str, typing.Union["QJsonValue", "QJsonValue.Type", typing.Iterable["QJsonValue"], bool, int, float, None, str]]: ... + def toObject(self) -> typing.Dict[str, "QJsonValue"]: ... @typing.overload - def toObject(self, defaultValue: typing.Dict[str, typing.Union["QJsonValue", "QJsonValue.Type", typing.Iterable["QJsonValue"], bool, int, float, None, str]]) -> typing.Dict[str, typing.Union["QJsonValue", "QJsonValue.Type", typing.Iterable["QJsonValue"], bool, int, float, None, str]]: ... + def toObject(self, defaultValue: typing.Dict[str, typing.Union["QJsonValue", "QJsonValue.Type", typing.Iterable["QJsonValue"], bool, int, float, None, str]]) -> typing.Dict[str, "QJsonValue"]: ... @typing.overload def toArray(self) -> typing.List["QJsonValue"]: ... @typing.overload @@ -3822,6 +4161,7 @@ class QLine(PyQt6.sip.simplewrapper): def __init__(self, x1pos: int, y1pos: int, x2pos: int, y2pos: int) -> None: ... @typing.overload def __init__(self, a0: "QLine") -> None: ... + def toLineF(self) -> "QLineF": ... def center(self) -> "QPoint": ... def setLine(self, aX1: int, aY1: int, aX2: int, aY2: int) -> None: ... def setPoints(self, aP1: "QPoint", aP2: "QPoint") -> None: ... @@ -3831,6 +4171,7 @@ class QLine(PyQt6.sip.simplewrapper): def translated(self, p: "QPoint") -> "QLine": ... @typing.overload def translated(self, adx: int, ady: int) -> "QLine": ... + def __eq__(self, other: object): ... @typing.overload def translate(self, point: "QPoint") -> None: ... @typing.overload @@ -3846,6 +4187,7 @@ class QLine(PyQt6.sip.simplewrapper): def __bool__(self) -> int: ... def isNull(self) -> bool: ... def __repr__(self) -> str: ... + def __ne__(self, other: object): ... class QLineF(PyQt6.sip.simplewrapper): class IntersectionType(enum.Enum): @@ -3876,6 +4218,7 @@ class QLineF(PyQt6.sip.simplewrapper): def angle(self) -> float: ... @staticmethod def fromPolar(length: float, angle: float) -> "QLineF": ... + def __eq__(self, other: object): ... def toLine(self) -> QLine: ... def pointAt(self, t: float) -> "QPointF": ... def setLength(self, len: float) -> None: ... @@ -3893,6 +4236,7 @@ class QLineF(PyQt6.sip.simplewrapper): def y1(self) -> float: ... def x1(self) -> float: ... def __repr__(self) -> str: ... + def __ne__(self, other: object): ... def intersects(self, l: "QLineF") -> typing.Tuple["QLineF.IntersectionType", "QPointF"]: ... def unitVector(self) -> "QLineF": ... def length(self) -> float: ... @@ -3900,19 +4244,35 @@ class QLineF(PyQt6.sip.simplewrapper): def isNull(self) -> bool: ... class QLocale(PyQt6.sip.simplewrapper): + class LanguageCodeType(enum.IntFlag): + ISO639Part1 = ... # type: QLocale.LanguageCodeType + ISO639Part2B = ... # type: QLocale.LanguageCodeType + ISO639Part2T = ... # type: QLocale.LanguageCodeType + ISO639Part3 = ... # type: QLocale.LanguageCodeType + LegacyLanguageCode = ... # type: QLocale.LanguageCodeType + ISO639Part2 = ... # type: QLocale.LanguageCodeType + ISO639Alpha2 = ... # type: QLocale.LanguageCodeType + ISO639Alpha3 = ... # type: QLocale.LanguageCodeType + ISO639 = ... # type: QLocale.LanguageCodeType + AnyLanguageCode = ... # type: QLocale.LanguageCodeType + class DataSizeFormat(enum.Flag): DataSizeIecFormat = ... # type: QLocale.DataSizeFormat DataSizeTraditionalFormat = ... # type: QLocale.DataSizeFormat DataSizeSIFormat = ... # type: QLocale.DataSizeFormat + class FloatingPointPrecisionOption(enum.IntEnum): FloatingPointShortest = ... # type: QLocale.FloatingPointPrecisionOption + class QuotationStyle(enum.Enum): StandardQuotation = ... # type: QLocale.QuotationStyle AlternateQuotation = ... # type: QLocale.QuotationStyle + class CurrencySymbolFormat(enum.Enum): CurrencyIsoCode = ... # type: QLocale.CurrencySymbolFormat CurrencySymbol = ... # type: QLocale.CurrencySymbolFormat CurrencyDisplayName = ... # type: QLocale.CurrencySymbolFormat + class Script(enum.Enum): AnyScript = ... # type: QLocale.Script ArabicScript = ... # type: QLocale.Script @@ -4061,15 +4421,18 @@ class QLocale(PyQt6.sip.simplewrapper): BanglaScript = ... # type: QLocale.Script MendeScript = ... # type: QLocale.Script OdiaScript = ... # type: QLocale.Script + class MeasurementSystem(enum.Enum): MetricSystem = ... # type: QLocale.MeasurementSystem ImperialSystem = ... # type: QLocale.MeasurementSystem ImperialUSSystem = ... # type: QLocale.MeasurementSystem ImperialUKSystem = ... # type: QLocale.MeasurementSystem + class FormatType(enum.Enum): LongFormat = ... # type: QLocale.FormatType ShortFormat = ... # type: QLocale.FormatType NarrowFormat = ... # type: QLocale.FormatType + class NumberOption(enum.Flag): OmitGroupSeparator = ... # type: QLocale.NumberOption RejectGroupSeparator = ... # type: QLocale.NumberOption @@ -4078,6 +4441,7 @@ class QLocale(PyQt6.sip.simplewrapper): RejectLeadingZeroInExponent = ... # type: QLocale.NumberOption IncludeTrailingZeroesAfterDot = ... # type: QLocale.NumberOption RejectTrailingZeroesAfterDot = ... # type: QLocale.NumberOption + class Country(enum.Enum): AnyCountry = ... # type: QLocale.Country AnyTerritory = ... # type: QLocale.Country @@ -4366,6 +4730,7 @@ class QLocale(PyQt6.sip.simplewrapper): NauruTerritory = ... # type: QLocale.Country TokelauTerritory = ... # type: QLocale.Country TuvaluTerritory = ... # type: QLocale.Country + class Language(enum.Enum): C = ... # type: QLocale.Language Abkhazian = ... # type: QLocale.Language @@ -4715,6 +5080,8 @@ class QLocale(PyQt6.sip.simplewrapper): Odia = ... # type: QLocale.Language Uyghur = ... # type: QLocale.Language Wolaytta = ... # type: QLocale.Language + Kaingang = ... # type: QLocale.Language + Nheengatu = ... # type: QLocale.Language @typing.overload def __init__(self) -> None: ... @typing.overload @@ -4725,6 +5092,8 @@ class QLocale(PyQt6.sip.simplewrapper): def __init__(self, language: "QLocale.Language", script: "QLocale.Script", country: "QLocale.Country") -> None: ... @typing.overload def __init__(self, other: "QLocale") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... @staticmethod def territoryToString(territory: "QLocale.Country") -> str: ... @staticmethod @@ -4742,9 +5111,9 @@ class QLocale(PyQt6.sip.simplewrapper): @staticmethod def countryToCode(country: "QLocale.Country") -> str: ... @staticmethod - def codeToLanguage(languageCode: str) -> "QLocale.Language": ... + def codeToLanguage(languageCode: str, codeTypes: "QLocale.LanguageCodeType" = ...) -> "QLocale.Language": ... @staticmethod - def languageToCode(language: "QLocale.Language") -> str: ... + def languageToCode(language: "QLocale.Language", codeTypes: "QLocale.LanguageCodeType" = ...) -> str: ... def collation(self) -> "QLocale": ... def toULong(self, s: str) -> typing.Tuple[int, bool]: ... def toLong(self, s: str) -> typing.Tuple[int, bool]: ... @@ -4915,8 +5284,48 @@ class QMargins(PyQt6.sip.simplewrapper): def __init__(self, aleft: int, atop: int, aright: int, abottom: int) -> None: ... @typing.overload def __init__(self, a0: "QMargins") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __or__(self, m1: "QMargins", m2: "QMargins") -> "QMargins": ... + @typing.overload + def __add__(self, m1: "QMargins", m2: "QMargins") -> "QMargins": ... + @typing.overload + def __add__(self, lhs: "QMargins", rhs: int) -> "QMargins": ... + @typing.overload + def __add__(self, lhs: int, rhs: "QMargins") -> "QMargins": ... + @typing.overload + def __add__(self, margins: "QMargins", rectangle: "QRect") -> "QRect": ... + @typing.overload + def __sub__(self, m1: "QMargins", m2: "QMargins") -> "QMargins": ... + @typing.overload + def __sub__(self, lhs: "QMargins", rhs: int) -> "QMargins": ... + @typing.overload + def __mul__(self, margins: "QMargins", factor: int) -> "QMargins": ... + @typing.overload + def __mul__(self, margins: "QMargins", factor: float) -> "QMargins": ... + @typing.overload + def __truediv__(self, margins: "QMargins", divisor: int) -> "QMargins": ... + @typing.overload + def __truediv__(self, margins: "QMargins", divisor: float) -> "QMargins": ... def __pos__(self) -> "QMargins": ... def __neg__(self) -> "QMargins": ... + def toMarginsF(self) -> "QMarginsF": ... + @typing.overload + def __itruediv__(self, divisor: int) -> "QMargins": ... + @typing.overload + def __itruediv__(self, divisor: float) -> "QMargins": ... + @typing.overload + def __imul__(self, factor: int) -> "QMargins": ... + @typing.overload + def __imul__(self, factor: float) -> "QMargins": ... + @typing.overload + def __isub__(self, margins: "QMargins") -> "QMargins": ... + @typing.overload + def __isub__(self, margin: int) -> "QMargins": ... + @typing.overload + def __iadd__(self, margins: "QMargins") -> "QMargins": ... + @typing.overload + def __iadd__(self, margin: int) -> "QMargins": ... def setBottom(self, abottom: int) -> None: ... def setRight(self, aright: int) -> None: ... def setTop(self, atop: int) -> None: ... @@ -4936,9 +5345,39 @@ class QMarginsF(PyQt6.sip.simplewrapper): def __init__(self, margins: QMargins) -> None: ... @typing.overload def __init__(self, a0: "QMarginsF") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __or__(self, m1: "QMarginsF", m2: "QMarginsF") -> "QMarginsF": ... + @typing.overload + def __add__(self, lhs: "QMarginsF", rhs: "QMarginsF") -> "QMarginsF": ... + @typing.overload + def __add__(self, lhs: "QMarginsF", rhs: float) -> "QMarginsF": ... + @typing.overload + def __add__(self, lhs: float, rhs: "QMarginsF") -> "QMarginsF": ... + @typing.overload + def __add__(self, lhs: "QMarginsF", rhs: "QRectF") -> "QRectF": ... + @typing.overload + def __sub__(self, lhs: "QMarginsF", rhs: "QMarginsF") -> "QMarginsF": ... + @typing.overload + def __sub__(self, lhs: "QMarginsF", rhs: float) -> "QMarginsF": ... + @typing.overload + def __mul__(self, lhs: "QMarginsF", rhs: float) -> "QMarginsF": ... + @typing.overload + def __mul__(self, lhs: float, rhs: "QMarginsF") -> "QMarginsF": ... + def __truediv__(self, lhs: "QMarginsF", divisor: float) -> "QMarginsF": ... def __pos__(self) -> "QMarginsF": ... def __neg__(self) -> "QMarginsF": ... def toMargins(self) -> QMargins: ... + def __itruediv__(self, divisor: float) -> "QMarginsF": ... + def __imul__(self, factor: float) -> "QMarginsF": ... + @typing.overload + def __isub__(self, margins: "QMarginsF") -> "QMarginsF": ... + @typing.overload + def __isub__(self, subtrahend: float) -> "QMarginsF": ... + @typing.overload + def __iadd__(self, margins: "QMarginsF") -> "QMarginsF": ... + @typing.overload + def __iadd__(self, addend: float) -> "QMarginsF": ... def setBottom(self, abottom: float) -> None: ... def setRight(self, aright: float) -> None: ... def setTop(self, atop: float) -> None: ... @@ -4950,9 +5389,9 @@ class QMarginsF(PyQt6.sip.simplewrapper): def isNull(self) -> bool: ... class QMessageAuthenticationCode(PyQt6.sip.simplewrapper): - def __init__(self, method: QCryptographicHash.Algorithm, key: QByteArray = ...) -> None: ... + def __init__(self, method: QCryptographicHash.Algorithm, key: typing.Union[QByteArray, bytes, bytearray] = ...) -> None: ... @staticmethod - def hash(message: QByteArray, key: QByteArray, method: QCryptographicHash.Algorithm) -> QByteArray: ... + def hash(message: typing.Union[QByteArray, bytes, bytearray], key: typing.Union[QByteArray, bytes, bytearray], method: QCryptographicHash.Algorithm) -> QByteArray: ... def result(self) -> QByteArray: ... @typing.overload def addData(self, a0: PyQt6.sip.Buffer) -> None: ... @@ -4967,6 +5406,7 @@ class QMetaMethod(PyQt6.sip.simplewrapper): Signal = ... # type: QMetaMethod.MethodType Slot = ... # type: QMetaMethod.MethodType Constructor = ... # type: QMetaMethod.MethodType + class Access(enum.Enum): Private = ... # type: QMetaMethod.Access Protected = ... # type: QMetaMethod.Access @@ -4975,6 +5415,8 @@ class QMetaMethod(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QMetaMethod") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def isConst(self) -> bool: ... def relativeMethodIndex(self) -> int: ... def parameterTypeName(self, index: int) -> QByteArray: ... @@ -5075,6 +5517,7 @@ class QMetaType(PyQt6.sip.simplewrapper): RelocatableType = ... # type: QMetaType.TypeFlag IsQmlList = ... # type: QMetaType.TypeFlag IsConst = ... # type: QMetaType.TypeFlag + class Type(enum.Enum): UnknownType = ... # type: QMetaType.Type Void = ... # type: QMetaType.Type @@ -5164,6 +5607,9 @@ class QMetaType(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, type: int) -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... @staticmethod def canView(fromType: "QMetaType", toType: "QMetaType") -> bool: ... @staticmethod @@ -5193,7 +5639,7 @@ class QMimeData(QObject): def clear(self) -> None: ... def formats(self) -> typing.List[str]: ... def hasFormat(self, mimetype: str) -> bool: ... - def setData(self, mimetype: str, data: QByteArray) -> None: ... + def setData(self, mimetype: str, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... def data(self, mimetype: str) -> QByteArray: ... def hasColor(self) -> bool: ... def setColorData(self, color: typing.Any) -> None: ... @@ -5222,10 +5668,10 @@ class QMimeDatabase(PyQt6.sip.simplewrapper): @typing.overload def mimeTypeForFileNameAndData(self, fileName: str, device: QIODevice) -> "QMimeType": ... @typing.overload - def mimeTypeForFileNameAndData(self, fileName: str, data: QByteArray) -> "QMimeType": ... + def mimeTypeForFileNameAndData(self, fileName: str, data: typing.Union[QByteArray, bytes, bytearray]) -> "QMimeType": ... def mimeTypeForUrl(self, url: "QUrl") -> "QMimeType": ... @typing.overload - def mimeTypeForData(self, data: QByteArray) -> "QMimeType": ... + def mimeTypeForData(self, data: typing.Union[QByteArray, bytes, bytearray]) -> "QMimeType": ... @typing.overload def mimeTypeForData(self, device: QIODevice) -> "QMimeType": ... def mimeTypesForFileName(self, fileName: str) -> typing.List["QMimeType"]: ... @@ -5255,6 +5701,8 @@ class QMimeType(PyQt6.sip.simplewrapper): def name(self) -> str: ... def isDefault(self) -> bool: ... def isValid(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def swap(self, other: "QMimeType") -> None: ... class QMutex(PyQt6.sip.simplewrapper): @@ -5293,6 +5741,7 @@ class QMetaObject(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, other: "QMetaObject.Connection") -> None: ... def swap(self, o: "QMetaObject.Connection") -> None: ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -5351,7 +5800,17 @@ class QMetaObject(PyQt6.sip.simplewrapper): class QGenericArgument(PyQt6.sip.simplewrapper): ... class QGenericReturnArgument(PyQt6.sip.simplewrapper): ... -class QOperatingSystemVersion(PyQt6.sip.simplewrapper): +class QOperatingSystemVersionBase(PyQt6.sip.simplewrapper): + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: "QOperatingSystemVersionBase") -> None: ... + def __lt__(self, rhs: "QOperatingSystemVersionBase") -> bool: ... + def __le__(self, rhs: "QOperatingSystemVersionBase") -> bool: ... + def __gt__(self, rhs: "QOperatingSystemVersionBase") -> bool: ... + def __ge__(self, rhs: "QOperatingSystemVersionBase") -> bool: ... + +class QOperatingSystemVersion(QOperatingSystemVersionBase): class OSType(enum.Enum): Unknown = ... # type: QOperatingSystemVersion.OSType Windows = ... # type: QOperatingSystemVersion.OSType @@ -5378,14 +5837,26 @@ class QOperatingSystemVersion(PyQt6.sip.simplewrapper): MacOSCatalina = ... # type: 'QOperatingSystemVersion' MacOSHighSierra = ... # type: 'QOperatingSystemVersion' MacOSMojave = ... # type: 'QOperatingSystemVersion' + MacOSMonterey = ... # type: 'QOperatingSystemVersion' MacOSSierra = ... # type: 'QOperatingSystemVersion' OSXElCapitan = ... # type: 'QOperatingSystemVersion' OSXMavericks = ... # type: 'QOperatingSystemVersion' OSXYosemite = ... # type: 'QOperatingSystemVersion' Windows10 = ... # type: 'QOperatingSystemVersion' + Windows10_1809 = ... # type: QOperatingSystemVersionBase + Windows10_1903 = ... # type: QOperatingSystemVersionBase + Windows10_1909 = ... # type: QOperatingSystemVersionBase + Windows10_2004 = ... # type: QOperatingSystemVersionBase + Windows10_20H2 = ... # type: QOperatingSystemVersionBase + Windows10_21H1 = ... # type: QOperatingSystemVersionBase + Windows10_21H2 = ... # type: QOperatingSystemVersionBase + Windows11 = ... # type: QOperatingSystemVersionBase + Windows11_21H2 = ... # type: QOperatingSystemVersionBase + Windows11_22H2 = ... # type: QOperatingSystemVersionBase Windows7 = ... # type: 'QOperatingSystemVersion' Windows8 = ... # type: 'QOperatingSystemVersion' Windows8_1 = ... # type: 'QOperatingSystemVersion' + @typing.overload def __init__(self, osType: "QOperatingSystemVersion.OSType", vmajor: int, vminor: int = ..., vmicro: int = ...) -> None: ... @typing.overload @@ -5446,11 +5917,11 @@ class QPropertyAnimation(QVariantAnimation): @typing.overload def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... @typing.overload - def __init__(self, target: QObject, propertyName: QByteArray, parent: typing.Optional[QObject] = ...) -> None: ... + def __init__(self, target: QObject, propertyName: typing.Union[QByteArray, bytes, bytearray], parent: typing.Optional[QObject] = ...) -> None: ... def updateState(self, newState: QAbstractAnimation.State, oldState: QAbstractAnimation.State) -> None: ... def updateCurrentValue(self, value: typing.Any) -> None: ... def event(self, event: QEvent) -> bool: ... - def setPropertyName(self, propertyName: QByteArray) -> None: ... + def setPropertyName(self, propertyName: typing.Union[QByteArray, bytes, bytearray]) -> None: ... def propertyName(self) -> QByteArray: ... def setTargetObject(self, target: QObject) -> None: ... def targetObject(self) -> QObject: ... @@ -5479,11 +5950,32 @@ class QPoint(PyQt6.sip.simplewrapper): def __init__(self, xpos: int, ypos: int) -> None: ... @typing.overload def __init__(self, a0: "QPoint") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, p1: "QPoint", p2: "QPoint") -> "QPoint": ... + def __sub__(self, p1: "QPoint", p2: "QPoint") -> "QPoint": ... + @typing.overload + def __mul__(self, p: "QPoint", factor: int) -> "QPoint": ... + @typing.overload + def __mul__(self, factor: int, p: "QPoint") -> "QPoint": ... + @typing.overload + def __mul__(self, p: "QPoint", factor: float) -> "QPoint": ... + @typing.overload + def __mul__(self, factor: float, p: "QPoint") -> "QPoint": ... + def __truediv__(self, p: "QPoint", c: float) -> "QPoint": ... def __pos__(self) -> "QPoint": ... def __neg__(self) -> "QPoint": ... + def toPointF(self) -> "QPointF": ... def transposed(self) -> "QPoint": ... @staticmethod def dotProduct(p1: "QPoint", p2: "QPoint") -> int: ... + def __itruediv__(self, c: float) -> "QPoint": ... + @typing.overload + def __imul__(self, c: int) -> "QPoint": ... + @typing.overload + def __imul__(self, c: float) -> "QPoint": ... + def __isub__(self, p: "QPoint") -> "QPoint": ... + def __iadd__(self, p: "QPoint") -> "QPoint": ... def setY(self, ypos: int) -> None: ... def setX(self, xpos: int) -> None: ... def y(self) -> int: ... @@ -5507,6 +5999,15 @@ class QPointF(PyQt6.sip.simplewrapper): def __init__(self, p: QPoint) -> None: ... @typing.overload def __init__(self, a0: "QPointF") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, p1: "QPointF", p2: "QPointF") -> "QPointF": ... + def __sub__(self, p1: "QPointF", p2: "QPointF") -> "QPointF": ... + @typing.overload + def __mul__(self, p: "QPointF", c: float) -> "QPointF": ... + @typing.overload + def __mul__(self, c: float, p: "QPointF") -> "QPointF": ... + def __truediv__(self, p: "QPointF", divisor: float) -> "QPointF": ... def __pos__(self) -> "QPointF": ... def __neg__(self) -> "QPointF": ... def transposed(self) -> "QPointF": ... @@ -5514,6 +6015,10 @@ class QPointF(PyQt6.sip.simplewrapper): def dotProduct(p1: "QPointF", p2: "QPointF") -> float: ... def manhattanLength(self) -> float: ... def toPoint(self) -> QPoint: ... + def __itruediv__(self, c: float) -> "QPointF": ... + def __imul__(self, c: float) -> "QPointF": ... + def __isub__(self, p: "QPointF") -> "QPointF": ... + def __iadd__(self, p: "QPointF") -> "QPointF": ... def setY(self, ypos: float) -> None: ... def setX(self, xpos: float) -> None: ... def y(self) -> float: ... @@ -5530,19 +6035,23 @@ class QProcess(QIODevice): class InputChannelMode(enum.Enum): ManagedInputChannel = ... # type: QProcess.InputChannelMode ForwardedInputChannel = ... # type: QProcess.InputChannelMode + class ProcessChannelMode(enum.Enum): SeparateChannels = ... # type: QProcess.ProcessChannelMode MergedChannels = ... # type: QProcess.ProcessChannelMode ForwardedChannels = ... # type: QProcess.ProcessChannelMode ForwardedOutputChannel = ... # type: QProcess.ProcessChannelMode ForwardedErrorChannel = ... # type: QProcess.ProcessChannelMode + class ProcessChannel(enum.Enum): StandardOutput = ... # type: QProcess.ProcessChannel StandardError = ... # type: QProcess.ProcessChannel + class ProcessState(enum.Enum): NotRunning = ... # type: QProcess.ProcessState Starting = ... # type: QProcess.ProcessState Running = ... # type: QProcess.ProcessState + class ProcessError(enum.Enum): FailedToStart = ... # type: QProcess.ProcessError Crashed = ... # type: QProcess.ProcessError @@ -5550,6 +6059,7 @@ class QProcess(QIODevice): ReadError = ... # type: QProcess.ProcessError WriteError = ... # type: QProcess.ProcessError UnknownError = ... # type: QProcess.ProcessError + class ExitStatus(enum.Enum): NormalExit = ... # type: QProcess.ExitStatus CrashExit = ... # type: QProcess.ExitStatus @@ -5618,10 +6128,15 @@ class QProcess(QIODevice): def start(self, mode: QIODeviceBase.OpenModeFlag = ...) -> None: ... class QProcessEnvironment(PyQt6.sip.simplewrapper): + class Initialization(enum.Enum): + InheritFromParent = ... # type: QProcessEnvironment.Initialization + @typing.overload + def __init__(self, a0: "QProcessEnvironment.Initialization") -> None: ... @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QProcessEnvironment") -> None: ... + def inheritsFromParent(self) -> bool: ... def swap(self, other: "QProcessEnvironment") -> None: ... def keys(self) -> typing.List[str]: ... @staticmethod @@ -5636,12 +6151,16 @@ class QProcessEnvironment(PyQt6.sip.simplewrapper): def contains(self, name: str) -> bool: ... def clear(self) -> None: ... def isEmpty(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QRandomGenerator(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, seed: int = ...) -> None: ... @typing.overload def __init__(self, other: "QRandomGenerator") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... @staticmethod def securelySeeded() -> "QRandomGenerator": ... @staticmethod @@ -5707,13 +6226,22 @@ class QRect(PyQt6.sip.simplewrapper): def __init__(self, atopLeft: QPoint, asize: "QSize") -> None: ... @typing.overload def __init__(self, a0: "QRect") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, rectangle: "QRect", margins: QMargins) -> "QRect": ... + def __sub__(self, lhs: "QRect", rhs: QMargins) -> "QRect": ... + def toRectF(self) -> "QRectF": ... @staticmethod def span(p1: QPoint, p2: QPoint) -> "QRect": ... def transposed(self) -> "QRect": ... + def __isub__(self, margins: QMargins) -> "QRect": ... + def __iadd__(self, margins: QMargins) -> "QRect": ... def marginsRemoved(self, margins: QMargins) -> "QRect": ... def marginsAdded(self, margins: QMargins) -> "QRect": ... def united(self, r: "QRect") -> "QRect": ... def intersected(self, other: "QRect") -> "QRect": ... + def __iand__(self, r: "QRect") -> "QRect": ... + def __ior__(self, r: "QRect") -> "QRect": ... def setSize(self, s: "QSize") -> None: ... def setHeight(self, h: int) -> None: ... def setWidth(self, w: int) -> None: ... @@ -5786,6 +6314,8 @@ class QRect(PyQt6.sip.simplewrapper): def contains(self, ax: int, ay: int, aproper: bool) -> bool: ... @typing.overload def contains(self, ax: int, ay: int) -> bool: ... + def __and__(self, r: "QRect") -> "QRect": ... + def __or__(self, r: "QRect") -> "QRect": ... def moveCenter(self, p: QPoint) -> None: ... def normalized(self) -> "QRect": ... @@ -5802,13 +6332,21 @@ class QRectF(PyQt6.sip.simplewrapper): def __init__(self, r: QRect) -> None: ... @typing.overload def __init__(self, a0: "QRectF") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, lhs: "QRectF", rhs: QMarginsF) -> "QRectF": ... + def __sub__(self, lhs: "QRectF", rhs: QMarginsF) -> "QRectF": ... def transposed(self) -> "QRectF": ... + def __isub__(self, margins: QMarginsF) -> "QRectF": ... + def __iadd__(self, margins: QMarginsF) -> "QRectF": ... def marginsRemoved(self, margins: QMarginsF) -> "QRectF": ... def marginsAdded(self, margins: QMarginsF) -> "QRectF": ... def toRect(self) -> QRect: ... def toAlignedRect(self) -> QRect: ... def united(self, r: "QRectF") -> "QRectF": ... def intersected(self, r: "QRectF") -> "QRectF": ... + def __iand__(self, r: "QRectF") -> "QRectF": ... + def __ior__(self, r: "QRectF") -> "QRectF": ... def setSize(self, s: "QSizeF") -> None: ... def setHeight(self, ah: float) -> None: ... def setWidth(self, aw: float) -> None: ... @@ -5868,6 +6406,8 @@ class QRectF(PyQt6.sip.simplewrapper): def contains(self, r: "QRectF") -> bool: ... @typing.overload def contains(self, ax: float, ay: float) -> bool: ... + def __and__(self, r: "QRectF") -> "QRectF": ... + def __or__(self, r: "QRectF") -> "QRectF": ... def bottomLeft(self) -> QPointF: ... def topRight(self) -> QPointF: ... def bottomRight(self) -> QPointF: ... @@ -5885,15 +6425,18 @@ class QRegularExpression(PyQt6.sip.simplewrapper): class WildcardConversionOption(enum.Flag): DefaultWildcardConversion = ... # type: QRegularExpression.WildcardConversionOption UnanchoredWildcardConversion = ... # type: QRegularExpression.WildcardConversionOption + class MatchOption(enum.Flag): NoMatchOption = ... # type: QRegularExpression.MatchOption AnchorAtOffsetMatchOption = ... # type: QRegularExpression.MatchOption DontCheckSubjectStringMatchOption = ... # type: QRegularExpression.MatchOption + class MatchType(enum.Enum): NormalMatch = ... # type: QRegularExpression.MatchType PartialPreferCompleteMatch = ... # type: QRegularExpression.MatchType PartialPreferFirstMatch = ... # type: QRegularExpression.MatchType NoMatch = ... # type: QRegularExpression.MatchType + class PatternOption(enum.Flag): NoPatternOption = ... # type: QRegularExpression.PatternOption CaseInsensitiveOption = ... # type: QRegularExpression.PatternOption @@ -5917,6 +6460,8 @@ class QRegularExpression(PyQt6.sip.simplewrapper): def wildcardToRegularExpression(str: str, options: "QRegularExpression.WildcardConversionOption" = ...) -> str: ... def __hash__(self) -> int: ... def optimize(self) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def namedCaptureGroups(self) -> typing.List[str]: ... @staticmethod def escape(str: str) -> str: ... @@ -5939,6 +6484,10 @@ class QRegularExpressionMatch(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, match: "QRegularExpressionMatch") -> None: ... @typing.overload + def hasCaptured(self, nth: int) -> bool: ... + @typing.overload + def hasCaptured(self, name: str) -> bool: ... + @typing.overload def capturedEnd(self, name: str) -> int: ... @typing.overload def capturedEnd(self, nth: int = ...) -> int: ... @@ -6067,10 +6616,12 @@ class QSettings(QObject): class Scope(enum.Enum): UserScope = ... # type: QSettings.Scope SystemScope = ... # type: QSettings.Scope + class Format(enum.Enum): NativeFormat = ... # type: QSettings.Format IniFormat = ... # type: QSettings.Format InvalidFormat = ... # type: QSettings.Format + class Status(enum.Enum): NoError = ... # type: QSettings.Status AccessError = ... # type: QSettings.Status @@ -6103,21 +6654,21 @@ class QSettings(QObject): def fileName(self) -> str: ... def fallbacksEnabled(self) -> bool: ... def setFallbacksEnabled(self, b: bool) -> None: ... - def contains(self, key: str) -> bool: ... - def remove(self, key: str) -> None: ... - def value(self, key: str, defaultValue: typing.Any = ..., type: type = ...) -> typing.Any: ... - def setValue(self, key: str, value: typing.Any) -> None: ... + def contains(self, key: typing.Union[QByteArray, str]) -> bool: ... + def remove(self, key: typing.Union[QByteArray, str]) -> None: ... + def value(self, key: typing.Union[QByteArray, str], defaultValue: typing.Any = ..., type: type = ...) -> typing.Any: ... + def setValue(self, key: typing.Union[QByteArray, str], value: typing.Any) -> None: ... def isWritable(self) -> bool: ... def childGroups(self) -> typing.List[str]: ... def childKeys(self) -> typing.List[str]: ... def allKeys(self) -> typing.List[str]: ... def setArrayIndex(self, i: int) -> None: ... def endArray(self) -> None: ... - def beginWriteArray(self, prefix: str, size: int = ...) -> None: ... - def beginReadArray(self, prefix: str) -> int: ... + def beginWriteArray(self, prefix: typing.Union[QByteArray, str], size: int = ...) -> None: ... + def beginReadArray(self, prefix: typing.Union[QByteArray, str]) -> int: ... def group(self) -> str: ... def endGroup(self) -> None: ... - def beginGroup(self, prefix: str) -> None: ... + def beginGroup(self, prefix: typing.Union[QByteArray, str]) -> None: ... def status(self) -> "QSettings.Status": ... def sync(self) -> None: ... def clear(self) -> None: ... @@ -6133,6 +6684,7 @@ class QSharedMemory(QObject): LockError = ... # type: QSharedMemory.SharedMemoryError OutOfResources = ... # type: QSharedMemory.SharedMemoryError UnknownError = ... # type: QSharedMemory.SharedMemoryError + class AccessMode(enum.Enum): ReadOnly = ... # type: QSharedMemory.AccessMode ReadWrite = ... # type: QSharedMemory.AccessMode @@ -6186,6 +6738,16 @@ class QSize(PyQt6.sip.simplewrapper): def __init__(self, w: int, h: int) -> None: ... @typing.overload def __init__(self, a0: "QSize") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, s1: "QSize", s2: "QSize") -> "QSize": ... + def __sub__(self, s1: "QSize", s2: "QSize") -> "QSize": ... + @typing.overload + def __mul__(self, s: "QSize", c: float) -> "QSize": ... + @typing.overload + def __mul__(self, c: float, s: "QSize") -> "QSize": ... + def __truediv__(self, s: "QSize", c: float) -> "QSize": ... + def toSizeF(self) -> "QSizeF": ... def shrunkBy(self, m: QMargins) -> "QSize": ... def grownBy(self, m: QMargins) -> "QSize": ... def transposed(self) -> "QSize": ... @@ -6195,6 +6757,10 @@ class QSize(PyQt6.sip.simplewrapper): def scaled(self, w: int, h: int, mode: Qt.AspectRatioMode) -> "QSize": ... def boundedTo(self, otherSize: "QSize") -> "QSize": ... def expandedTo(self, otherSize: "QSize") -> "QSize": ... + def __itruediv__(self, c: float) -> "QSize": ... + def __imul__(self, c: float) -> "QSize": ... + def __isub__(self, s: "QSize") -> "QSize": ... + def __iadd__(self, s: "QSize") -> "QSize": ... def setHeight(self, h: int) -> None: ... def setWidth(self, w: int) -> None: ... def height(self) -> int: ... @@ -6231,6 +6797,15 @@ class QSizeF(PyQt6.sip.simplewrapper): def __init__(self, w: float, h: float) -> None: ... @typing.overload def __init__(self, a0: "QSizeF") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, s1: "QSizeF", s2: "QSizeF") -> "QSizeF": ... + def __sub__(self, s1: "QSizeF", s2: "QSizeF") -> "QSizeF": ... + @typing.overload + def __mul__(self, s: "QSizeF", c: float) -> "QSizeF": ... + @typing.overload + def __mul__(self, c: float, s: "QSizeF") -> "QSizeF": ... + def __truediv__(self, s: "QSizeF", c: float) -> "QSizeF": ... def shrunkBy(self, m: QMarginsF) -> "QSizeF": ... def grownBy(self, m: QMarginsF) -> "QSizeF": ... def transposed(self) -> "QSizeF": ... @@ -6241,6 +6816,10 @@ class QSizeF(PyQt6.sip.simplewrapper): def toSize(self) -> QSize: ... def boundedTo(self, otherSize: "QSizeF") -> "QSizeF": ... def expandedTo(self, otherSize: "QSizeF") -> "QSizeF": ... + def __itruediv__(self, c: float) -> "QSizeF": ... + def __imul__(self, c: float) -> "QSizeF": ... + def __isub__(self, s: "QSizeF") -> "QSizeF": ... + def __iadd__(self, s: "QSizeF") -> "QSizeF": ... def setHeight(self, h: float) -> None: ... def setWidth(self, w: float) -> None: ... def height(self) -> float: ... @@ -6287,6 +6866,7 @@ class QSocketNotifier(QObject): class QSortFilterProxyModel(QAbstractProxyModel): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + autoAcceptChildRowsChanged: typing.ClassVar[pyqtSignal] def invalidateColumnsFilter(self) -> None: ... def invalidateRowsFilter(self) -> None: ... @@ -6329,7 +6909,7 @@ class QSortFilterProxyModel(QAbstractProxyModel): def insertColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... def dropMimeData(self, data: QMimeData, action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... - def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> QMimeData: ... + def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> "QMimeData" | None: ... def setHeaderData(self, section: int, orientation: Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ... def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... def setData(self, index: QModelIndex, value: typing.Any, role: int = ...) -> bool: ... @@ -6367,6 +6947,7 @@ class QStandardPaths(PyQt6.sip.simplewrapper): class LocateOption(enum.Flag): LocateFile = ... # type: QStandardPaths.LocateOption LocateDirectory = ... # type: QStandardPaths.LocateOption + class StandardLocation(enum.Enum): DesktopLocation = ... # type: QStandardPaths.StandardLocation DocumentsLocation = ... # type: QStandardPaths.StandardLocation @@ -6387,6 +6968,8 @@ class QStandardPaths(PyQt6.sip.simplewrapper): AppDataLocation = ... # type: QStandardPaths.StandardLocation AppLocalDataLocation = ... # type: QStandardPaths.StandardLocation AppConfigLocation = ... # type: QStandardPaths.StandardLocation + PublicShareLocation = ... # type: QStandardPaths.StandardLocation + TemplatesLocation = ... # type: QStandardPaths.StandardLocation def __init__(self, a0: "QStandardPaths") -> None: ... @staticmethod def setTestModeEnabled(testMode: bool) -> None: ... @@ -6412,6 +6995,8 @@ class QStorageInfo(PyQt6.sip.simplewrapper): def __init__(self, dir: QDir) -> None: ... @typing.overload def __init__(self, other: "QStorageInfo") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def subvolume(self) -> QByteArray: ... def blockSize(self) -> int: ... def isRoot(self) -> bool: ... @@ -6441,6 +7026,7 @@ class QStringConverterBase(PyQt6.sip.simplewrapper): ConvertInvalidToNull = ... # type: QStringConverterBase.Flag WriteBom = ... # type: QStringConverterBase.Flag ConvertInitialBom = ... # type: QStringConverterBase.Flag + UsesIcu = ... # type: QStringConverterBase.Flag @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6463,6 +7049,8 @@ class QStringConverter(QStringConverterBase): def __init__(self, encoding: "QStringConverter.Encoding", f: QStringConverterBase.Flag) -> None: ... @typing.overload def __init__(self, name: str, f: QStringConverterBase.Flag) -> None: ... + @staticmethod + def nameForEncoding(e: "QStringConverter.Encoding") -> str: ... def name(self) -> str: ... def hasError(self) -> bool: ... def resetState(self) -> None: ... @@ -6485,6 +7073,8 @@ class QStringDecoder(QStringConverter): def __init__(self) -> None: ... @typing.overload def __init__(self, name: str, flags: QStringConverterBase.Flag = ...) -> None: ... + @staticmethod + def decoderForHtml(data: typing.Union[QByteArray, bytes, bytearray, memoryview]) -> "QStringDecoder": ... def decode(self, ba: typing.Union[QByteArray, bytes, bytearray, memoryview]) -> str: ... def __call__(self, ba: typing.Union[QByteArray, bytes, bytearray, memoryview]) -> str: ... @@ -6514,6 +7104,7 @@ class QSysInfo(PyQt6.sip.simplewrapper): BigEndian = ... # type: QSysInfo.Endian LittleEndian = ... # type: QSysInfo.Endian ByteOrder = ... # type: QSysInfo.Endian + class Sizes(enum.Enum): WordSize = ... # type: QSysInfo.Sizes @typing.overload @@ -6552,6 +7143,7 @@ class QSystemSemaphore(PyQt6.sip.simplewrapper): NotFound = ... # type: QSystemSemaphore.SystemSemaphoreError OutOfResources = ... # type: QSystemSemaphore.SystemSemaphoreError UnknownError = ... # type: QSystemSemaphore.SystemSemaphoreError + class AccessMode(enum.Enum): Open = ... # type: QSystemSemaphore.AccessMode Create = ... # type: QSystemSemaphore.AccessMode @@ -6568,6 +7160,7 @@ class QTemporaryDir(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, templateName: str) -> None: ... + def swap(self, other: "QTemporaryDir") -> None: ... def filePath(self, fileName: str) -> str: ... def errorString(self) -> str: ... def path(self) -> str: ... @@ -6608,6 +7201,7 @@ class QTextBoundaryFinder(PyQt6.sip.simplewrapper): Word = ... # type: QTextBoundaryFinder.BoundaryType Line = ... # type: QTextBoundaryFinder.BoundaryType Sentence = ... # type: QTextBoundaryFinder.BoundaryType + class BoundaryReason(enum.Flag): NotAtBoundary = ... # type: QTextBoundaryFinder.BoundaryReason SoftHyphen = ... # type: QTextBoundaryFinder.BoundaryReason @@ -6640,16 +7234,19 @@ class QTextStream(QIODeviceBase): ForceSign = ... # type: QTextStream.NumberFlag UppercaseBase = ... # type: QTextStream.NumberFlag UppercaseDigits = ... # type: QTextStream.NumberFlag + class Status(enum.Enum): Ok = ... # type: QTextStream.Status ReadPastEnd = ... # type: QTextStream.Status ReadCorruptData = ... # type: QTextStream.Status WriteFailed = ... # type: QTextStream.Status + class FieldAlignment(enum.Enum): AlignLeft = ... # type: QTextStream.FieldAlignment AlignRight = ... # type: QTextStream.FieldAlignment AlignCenter = ... # type: QTextStream.FieldAlignment AlignAccountingStyle = ... # type: QTextStream.FieldAlignment + class RealNumberNotation(enum.Enum): SmartNotation = ... # type: QTextStream.RealNumberNotation FixedNotation = ... # type: QTextStream.RealNumberNotation @@ -6660,6 +7257,15 @@ class QTextStream(QIODeviceBase): def __init__(self, device: QIODevice) -> None: ... @typing.overload def __init__(self, array: QByteArray, mode: QIODeviceBase.OpenModeFlag = ...) -> None: ... + @typing.overload + def __lshift__(self, s: str) -> "QTextStream": ... + @typing.overload + def __lshift__(self, array: QByteArray) -> "QTextStream": ... + @typing.overload + def __lshift__(self, f: float) -> "QTextStream": ... + @typing.overload + def __lshift__(self, s: "QTextStream", m: "QTextStreamManipulator") -> "QTextStream": ... + def __rshift__(self, array: QByteArray) -> "QTextStream": ... def realNumberPrecision(self) -> int: ... def setRealNumberPrecision(self, precision: int) -> None: ... def realNumberNotation(self) -> "QTextStream.RealNumberNotation": ... @@ -6753,6 +7359,10 @@ class QThread(QObject): class QThreadPool(QObject): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def startOnReservedThread(self, runnable: QRunnable) -> None: ... + @typing.overload + def startOnReservedThread(self, functionToRun: typing.Callable[[], None]) -> None: ... def threadPriority(self) -> QThread.Priority: ... def setThreadPriority(self, priority: QThread.Priority) -> None: ... def contains(self, thread: QThread) -> bool: ... @@ -6784,6 +7394,7 @@ class QTimeLine(QObject): NotRunning = ... # type: QTimeLine.State Paused = ... # type: QTimeLine.State Running = ... # type: QTimeLine.State + class Direction(enum.Enum): Forward = ... # type: QTimeLine.Direction Backward = ... # type: QTimeLine.Direction @@ -6852,10 +7463,12 @@ class QTimeZone(PyQt6.sip.simplewrapper): LongName = ... # type: QTimeZone.NameType ShortName = ... # type: QTimeZone.NameType OffsetName = ... # type: QTimeZone.NameType + class TimeType(enum.Enum): StandardTime = ... # type: QTimeZone.TimeType DaylightTime = ... # type: QTimeZone.TimeType GenericTime = ... # type: QTimeZone.TimeType + class OffsetData(PyQt6.sip.simplewrapper): abbreviation = ... # type: str @@ -6863,14 +7476,16 @@ class QTimeZone(PyQt6.sip.simplewrapper): daylightTimeOffset = ... # type: int offsetFromUtc = ... # type: int standardTimeOffset = ... # type: int + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QTimeZone.OffsetData") -> None: ... + @typing.overload - def __init__(self, zoneId: QByteArray, offsetSeconds: int, name: str, abbreviation: str, territory: QLocale.Country = ..., comment: str = ...) -> None: ... + def __init__(self, zoneId: typing.Union[QByteArray, bytes, bytearray], offsetSeconds: int, name: str, abbreviation: str, territory: QLocale.Country = ..., comment: str = ...) -> None: ... @typing.overload - def __init__(self, ianaId: QByteArray) -> None: ... + def __init__(self, ianaId: typing.Union[QByteArray, bytes, bytearray]) -> None: ... @typing.overload def __init__(self, offsetSeconds: int) -> None: ... @typing.overload @@ -6883,18 +7498,18 @@ class QTimeZone(PyQt6.sip.simplewrapper): def systemTimeZone() -> "QTimeZone": ... @typing.overload @staticmethod - def windowsIdToIanaIds(windowsId: QByteArray) -> typing.List[QByteArray]: ... + def windowsIdToIanaIds(windowsId: typing.Union[QByteArray, bytes, bytearray]) -> typing.List[QByteArray]: ... @typing.overload @staticmethod def windowsIdToIanaIds(windowsId: QByteArray, territory: QLocale.Country) -> typing.List[QByteArray]: ... @typing.overload @staticmethod - def windowsIdToDefaultIanaId(windowsId: QByteArray) -> QByteArray: ... + def windowsIdToDefaultIanaId(windowsId: typing.Union[QByteArray, bytes, bytearray]) -> QByteArray: ... @typing.overload @staticmethod - def windowsIdToDefaultIanaId(windowsId: QByteArray, territory: QLocale.Country) -> QByteArray: ... + def windowsIdToDefaultIanaId(windowsId: typing.Union[QByteArray, bytes, bytearray], territory: QLocale.Country) -> QByteArray: ... @staticmethod - def ianaIdToWindowsId(ianaId: QByteArray) -> QByteArray: ... + def ianaIdToWindowsId(ianaId: typing.Union[QByteArray, bytes, bytearray]) -> QByteArray: ... @typing.overload @staticmethod def availableTimeZoneIds(territory: QLocale.Country) -> typing.List[QByteArray]: ... @@ -6905,7 +7520,7 @@ class QTimeZone(PyQt6.sip.simplewrapper): @staticmethod def availableTimeZoneIds() -> typing.List[QByteArray]: ... @staticmethod - def isTimeZoneIdAvailable(ianaId: QByteArray) -> bool: ... + def isTimeZoneIdAvailable(ianaId: typing.Union[QByteArray, bytes, bytearray]) -> bool: ... @staticmethod def systemTimeZoneId() -> QByteArray: ... def transitions(self, fromDateTime: typing.Union[QDateTime, datetime.datetime], toDateTime: typing.Union[QDateTime, datetime.datetime]) -> typing.List["QTimeZone.OffsetData"]: ... @@ -6928,13 +7543,15 @@ class QTimeZone(PyQt6.sip.simplewrapper): def country(self) -> QLocale.Country: ... def id(self) -> QByteArray: ... def isValid(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def swap(self, other: "QTimeZone") -> None: ... class QTranslator(QObject): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... def filePath(self) -> str: ... def language(self) -> str: ... - def loadFromData(self, data: bytes, directory: str = ...) -> bool: ... + def loadFromData(self, data: PyQt6.sip.array[bytes], directory: str = ...) -> bool: ... @typing.overload def load(self, fileName: str, directory: str = ..., searchDelimiters: str = ..., suffix: str = ...) -> bool: ... @typing.overload @@ -6965,9 +7582,14 @@ class QTransposeProxyModel(QAbstractProxyModel): def setSourceModel(self, newSourceModel: QAbstractItemModel) -> None: ... class QUrl(PyQt6.sip.simplewrapper): + class AceProcessingOption(enum.Flag): + IgnoreIDNWhitelist = ... # type: QUrl.AceProcessingOption + AceTransitionalProcessing = ... # type: QUrl.AceProcessingOption + class UserInputResolutionOption(enum.Flag): DefaultResolution = ... # type: QUrl.UserInputResolutionOption AssumeLocalFile = ... # type: QUrl.UserInputResolutionOption + class ComponentFormattingOption(enum.IntFlag): PrettyDecoded = ... # type: QUrl.ComponentFormattingOption EncodeSpaces = ... # type: QUrl.ComponentFormattingOption @@ -6977,6 +7599,7 @@ class QUrl(PyQt6.sip.simplewrapper): DecodeReserved = ... # type: QUrl.ComponentFormattingOption FullyEncoded = ... # type: QUrl.ComponentFormattingOption FullyDecoded = ... # type: QUrl.ComponentFormattingOption + class UrlFormattingOption(enum.IntFlag): None_ = ... # type: QUrl.UrlFormattingOption RemoveScheme = ... # type: QUrl.UrlFormattingOption @@ -6991,6 +7614,7 @@ class QUrl(PyQt6.sip.simplewrapper): StripTrailingSlash = ... # type: QUrl.UrlFormattingOption RemoveFilename = ... # type: QUrl.UrlFormattingOption NormalizePathSegments = ... # type: QUrl.UrlFormattingOption + class ParsingMode(enum.Enum): TolerantMode = ... # type: QUrl.ParsingMode StrictMode = ... # type: QUrl.ParsingMode @@ -7001,6 +7625,7 @@ class QUrl(PyQt6.sip.simplewrapper): def __init__(self, url: str, mode: "QUrl.ParsingMode" = ...) -> None: ... @typing.overload def __init__(self, copy: "QUrl") -> None: ... + def __ge__(self, url: "QUrl") -> bool: ... def matches(self, url: "QUrl", options: "QUrl.UrlFormattingOption") -> bool: ... def fileName(self, options: "QUrl.ComponentFormattingOption" = ...) -> str: ... def adjusted(self, options: "QUrl.UrlFormattingOption") -> "QUrl": ... @@ -7026,20 +7651,23 @@ class QUrl(PyQt6.sip.simplewrapper): @staticmethod def idnWhitelist() -> typing.List[str]: ... @staticmethod - def toAce(a0: str) -> QByteArray: ... + def toAce(domain: str, options: "QUrl.AceProcessingOption" = ...) -> QByteArray: ... @staticmethod - def fromAce(a0: QByteArray) -> str: ... + def fromAce(domain: typing.Union[QByteArray, bytes, bytearray], options: "QUrl.AceProcessingOption" = ...) -> str: ... def errorString(self) -> str: ... def hasFragment(self) -> bool: ... def hasQuery(self) -> bool: ... @staticmethod - def toPercentEncoding(input: str, exclude: QByteArray = ..., include: QByteArray = ...) -> QByteArray: ... + def toPercentEncoding(input: str, exclude: typing.Union[QByteArray, bytes, bytearray] = ..., include: typing.Union[QByteArray, bytes, bytearray] = ...) -> QByteArray: ... @staticmethod - def fromPercentEncoding(a0: QByteArray) -> str: ... + def fromPercentEncoding(a0: typing.Union[QByteArray, bytes, bytearray]) -> str: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __lt__(self, url: "QUrl") -> bool: ... def isDetached(self) -> bool: ... def detach(self) -> None: ... @staticmethod - def fromEncoded(u: QByteArray, mode: "QUrl.ParsingMode" = ...) -> "QUrl": ... + def fromEncoded(u: typing.Union[QByteArray, bytes, bytearray], mode: "QUrl.ParsingMode" = ...) -> "QUrl": ... @typing.overload def toEncoded(self, options: "QUrl.UrlFormattingOption" = ...) -> QByteArray: ... @typing.overload @@ -7112,12 +7740,15 @@ class QUrlQuery(PyQt6.sip.simplewrapper): def isDetached(self) -> bool: ... def isEmpty(self) -> bool: ... def swap(self, other: "QUrlQuery") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QUuid(PyQt6.sip.simplewrapper): class StringFormat(enum.Enum): WithBraces = ... # type: QUuid.StringFormat WithoutBraces = ... # type: QUuid.StringFormat Id128 = ... # type: QUuid.StringFormat + class Version(enum.Enum): VerUnknown = ... # type: QUuid.Version Time = ... # type: QUuid.Version @@ -7126,6 +7757,7 @@ class QUuid(PyQt6.sip.simplewrapper): Name = ... # type: QUuid.Version Random = ... # type: QUuid.Version Sha1 = ... # type: QUuid.Version + class Variant(enum.Enum): VarUnknown = ... # type: QUuid.Variant NCS = ... # type: QUuid.Variant @@ -7137,31 +7769,37 @@ class QUuid(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, l: int, w1: int, w2: int, b1: int, b2: int, b3: int, b4: int, b5: int, b6: int, b7: int, b8: int) -> None: ... @typing.overload - def __init__(self, a0: str) -> None: ... - @typing.overload - def __init__(self, a0: QByteArray) -> None: ... + def __init__(self, string: typing.Union[QByteArray, str, bytes, bytearray]) -> None: ... @typing.overload def __init__(self, a0: "QUuid") -> None: ... + def __le__(self, rhs: "QUuid") -> bool: ... + def __ge__(self, rhs: "QUuid") -> bool: ... + @staticmethod + def fromString(string: typing.Union[QByteArray, str]) -> "QUuid": ... @staticmethod - def fromRfc4122(a0: QByteArray) -> "QUuid": ... + def fromRfc4122(a0: typing.Union[QByteArray, bytes, bytearray, memoryview]) -> "QUuid": ... def toRfc4122(self) -> QByteArray: ... def toByteArray(self, mode: "QUuid.StringFormat" = ...) -> QByteArray: ... def version(self) -> "QUuid.Version": ... def variant(self) -> "QUuid.Variant": ... @typing.overload @staticmethod - def createUuidV5(ns: "QUuid", baseData: QByteArray) -> "QUuid": ... + def createUuidV5(ns: "QUuid", baseData: typing.Union[QByteArray, bytes, bytearray]) -> "QUuid": ... @typing.overload @staticmethod def createUuidV5(ns: "QUuid", baseData: str) -> "QUuid": ... @typing.overload @staticmethod - def createUuidV3(ns: "QUuid", baseData: QByteArray) -> "QUuid": ... + def createUuidV3(ns: "QUuid", baseData: typing.Union[QByteArray, bytes, bytearray]) -> "QUuid": ... @typing.overload @staticmethod def createUuidV3(ns: "QUuid", baseData: str) -> "QUuid": ... @staticmethod def createUuid() -> "QUuid": ... + def __gt__(self, other: "QUuid") -> bool: ... + def __lt__(self, other: "QUuid") -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isNull(self) -> bool: ... def toString(self, mode: "QUuid.StringFormat" = ...) -> str: ... def __repr__(self) -> str: ... @@ -7174,6 +7812,8 @@ class QVariant(PyQt6.sip.simplewrapper): def __init__(self, obj: typing.Any) -> None: ... @typing.overload def __init__(self, a0: "QVariant") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def typeId(self) -> int: ... def canView(self, targetType: QMetaType) -> bool: ... def metaType(self) -> QMetaType: ... @@ -7202,9 +7842,15 @@ class QVersionNumber(PyQt6.sip.simplewrapper): def __init__(self, maj: int, min: int, mic: int) -> None: ... @typing.overload def __init__(self, a0: "QVersionNumber") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: "QVersionNumber") -> bool: ... + def __le__(self, rhs: "QVersionNumber") -> bool: ... + def __gt__(self, rhs: "QVersionNumber") -> bool: ... + def __ge__(self, rhs: "QVersionNumber") -> bool: ... def __hash__(self) -> int: ... @staticmethod - def fromString(string: str) -> typing.Tuple["QVersionNumber", int]: ... + def fromString(string: typing.Union[QByteArray, str]) -> typing.Tuple["QVersionNumber", int]: ... def toString(self) -> str: ... @staticmethod def commonPrefix(v1: "QVersionNumber", v2: "QVersionNumber") -> "QVersionNumber": ... @@ -7226,6 +7872,12 @@ class QTypeRevision(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QTypeRevision") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: "QTypeRevision") -> bool: ... + def __le__(self, rhs: "QTypeRevision") -> bool: ... + def __gt__(self, rhs: "QTypeRevision") -> bool: ... + def __ge__(self, rhs: "QTypeRevision") -> bool: ... def __hash__(self) -> int: ... def toEncodedVersion(self) -> int: ... def isValid(self) -> bool: ... @@ -7258,6 +7910,8 @@ class QXmlStreamAttribute(PyQt6.sip.simplewrapper): def __init__(self, namespaceUri: str, name: str, value: str) -> None: ... @typing.overload def __init__(self, a0: "QXmlStreamAttribute") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isDefault(self) -> bool: ... def value(self) -> str: ... def prefix(self) -> str: ... @@ -7272,6 +7926,8 @@ class QXmlStreamNamespaceDeclaration(PyQt6.sip.simplewrapper): def __init__(self, prefix: str, namespaceUri: str) -> None: ... @typing.overload def __init__(self, a0: "QXmlStreamNamespaceDeclaration") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def namespaceUri(self) -> str: ... def prefix(self) -> str: ... @@ -7280,6 +7936,8 @@ class QXmlStreamNotationDeclaration(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QXmlStreamNotationDeclaration") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def publicId(self) -> str: ... def systemId(self) -> str: ... def name(self) -> str: ... @@ -7289,6 +7947,8 @@ class QXmlStreamEntityDeclaration(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QXmlStreamEntityDeclaration") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def value(self) -> str: ... def publicId(self) -> str: ... def systemId(self) -> str: ... @@ -7309,10 +7969,12 @@ class QXmlStreamReader(PyQt6.sip.simplewrapper): CustomError = ... # type: QXmlStreamReader.Error NotWellFormedError = ... # type: QXmlStreamReader.Error PrematureEndOfDocumentError = ... # type: QXmlStreamReader.Error + class ReadElementTextBehaviour(enum.Enum): ErrorOnUnexpectedElement = ... # type: QXmlStreamReader.ReadElementTextBehaviour IncludeChildElements = ... # type: QXmlStreamReader.ReadElementTextBehaviour SkipChildElements = ... # type: QXmlStreamReader.ReadElementTextBehaviour + class TokenType(enum.Enum): NoToken = ... # type: QXmlStreamReader.TokenType Invalid = ... # type: QXmlStreamReader.TokenType @@ -7330,7 +7992,7 @@ class QXmlStreamReader(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, device: QIODevice) -> None: ... @typing.overload - def __init__(self, data: QByteArray) -> None: ... + def __init__(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... @typing.overload def __init__(self, data: str) -> None: ... def setEntityExpansionLimit(self, limit: int) -> None: ... @@ -7385,7 +8047,7 @@ class QXmlStreamReader(PyQt6.sip.simplewrapper): def atEnd(self) -> bool: ... def clear(self) -> None: ... @typing.overload - def addData(self, data: QByteArray) -> None: ... + def addData(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... @typing.overload def addData(self, data: str) -> None: ... def device(self) -> QIODevice: ... @@ -7397,7 +8059,7 @@ class QXmlStreamWriter(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, device: QIODevice) -> None: ... @typing.overload - def __init__(self, array: QByteArray) -> None: ... + def __init__(self, array: typing.Union[QByteArray, bytes, bytearray]) -> None: ... def hasError(self) -> bool: ... def writeCurrentToken(self, reader: QXmlStreamReader) -> None: ... @typing.overload @@ -7460,8 +8122,15 @@ class QXmlStreamAttributes(PyQt6.sip.simplewrapper): def __getitem__(self, i: int) -> QXmlStreamAttribute: ... @typing.overload def __getitem__(self, slice: slice) -> "QXmlStreamAttributes": ... + def __eq__(self, other: object): ... + @typing.overload + def __iadd__(self, other: "QXmlStreamAttributes") -> "QXmlStreamAttributes": ... + @typing.overload + def __iadd__(self, value: QXmlStreamAttribute) -> "QXmlStreamAttributes": ... + def __ne__(self, other: object): ... def size(self) -> int: ... def replace(self, i: int, value: QXmlStreamAttribute) -> None: ... + def resize(self, size: int) -> None: ... @typing.overload def remove(self, i: int) -> None: ... @typing.overload @@ -7585,11 +8254,11 @@ def qRemovePostRoutine(a0: typing.Callable[..., None]) -> None: ... def qAddPostRoutine(a0: typing.Callable[..., None]) -> None: ... def qChecksum(data: typing.Union[QByteArray, bytes, bytearray, memoryview], standard: Qt.ChecksumType = ...) -> int: ... @typing.overload -def qUncompress(data: bytes) -> QByteArray: ... +def qUncompress(data: PyQt6.sip.array[bytes]) -> QByteArray: ... @typing.overload def qUncompress(data: QByteArray) -> QByteArray: ... @typing.overload -def qCompress(data: bytes, compressionLevel: int = ...) -> QByteArray: ... +def qCompress(data: PyQt6.sip.array[bytes], compressionLevel: int = ...) -> QByteArray: ... @typing.overload def qCompress(data: QByteArray, compressionLevel: int = ...) -> QByteArray: ... def qEnvironmentVariableIntValue(varName: str) -> typing.Tuple[int, bool]: ... @@ -7602,6 +8271,8 @@ def qEnvironmentVariableIsEmpty(varName: str) -> bool: ... def pyqtPickleProtocol() -> typing.Optional[int]: ... def pyqtSetPickleProtocol(a0: typing.Optional[int]) -> None: ... def qFuzzyCompare(p1: float, p2: float) -> bool: ... +def qUnregisterResourceData(a0: int, a1: bytes, a2: bytes, a3: bytes) -> bool: ... +def qRegisterResourceData(a0: int, a1: bytes, a2: bytes, a3: bytes) -> bool: ... def qVersion() -> str: ... def qRound64(d: float) -> int: ... def qRound(d: float) -> int: ... diff --git a/PyQt6-stubs/QtDBus.pyi b/PyQt6-stubs/QtDBus.pyi index 60e541f..2fe247d 100644 --- a/PyQt6-stubs/QtDBus.pyi +++ b/PyQt6-stubs/QtDBus.pyi @@ -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 # @@ -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 @@ -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 @@ -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 @@ -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: ... @@ -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: ... @@ -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: ... @@ -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: ... @@ -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: ... @@ -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] diff --git a/PyQt6-stubs/QtDesigner.pyi b/PyQt6-stubs/QtDesigner.pyi index 1d712f8..bcb30ab 100644 --- a/PyQt6-stubs/QtDesigner.pyi +++ b/PyQt6-stubs/QtDesigner.pyi @@ -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 # @@ -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 @@ -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 diff --git a/PyQt6-stubs/QtGui.pyi b/PyQt6-stubs/QtGui.pyi index c050458..439ee56 100644 --- a/PyQt6-stubs/QtGui.pyi +++ b/PyQt6-stubs/QtGui.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtGui module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -34,6 +34,7 @@ PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] class QAbstractFileIconProvider(PyQt6.sip.simplewrapper): class Option(enum.Flag): DontUseCustomDirectoryIcons = ... # type: QAbstractFileIconProvider.Option + class IconType(enum.Enum): Computer = ... # type: QAbstractFileIconProvider.IconType Desktop = ... # type: QAbstractFileIconProvider.IconType @@ -56,20 +57,24 @@ class QAbstractTextDocumentLayout(QtCore.QObject): cursor = ... # type: 'QTextCursor' format = ... # type: 'QTextCharFormat' + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QAbstractTextDocumentLayout.Selection") -> None: ... + class PaintContext(PyQt6.sip.simplewrapper): clip = ... # type: QtCore.QRectF cursorPosition = ... # type: int palette = ... # type: 'QPalette' selections = ... # type: typing.Iterable['QAbstractTextDocumentLayout.Selection'] + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QAbstractTextDocumentLayout.PaintContext") -> None: ... + def __init__(self, doc: "QTextDocument") -> None: ... def blockWithMarkerAt(self, pos: QtCore.QPointF) -> "QTextBlock": ... def formatAt(self, pos: QtCore.QPointF) -> "QTextFormat": ... @@ -110,6 +115,7 @@ class QAction(QtCore.QObject): LowPriority = ... # type: QAction.Priority NormalPriority = ... # type: QAction.Priority HighPriority = ... # type: QAction.Priority + class MenuRole(enum.Enum): NoRole = ... # type: QAction.MenuRole TextHeuristicRole = ... # type: QAction.MenuRole @@ -118,6 +124,7 @@ class QAction(QtCore.QObject): AboutRole = ... # type: QAction.MenuRole PreferencesRole = ... # type: QAction.MenuRole QuitRole = ... # type: QAction.MenuRole + class ActionEvent(enum.Enum): Trigger = ... # type: QAction.ActionEvent Hover = ... # type: QAction.ActionEvent @@ -127,6 +134,7 @@ class QAction(QtCore.QObject): def __init__(self, text: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, icon: "QIcon", text: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + visibleChanged: typing.ClassVar[QtCore.pyqtSignal] checkableChanged: typing.ClassVar[QtCore.pyqtSignal] enabledChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -138,6 +146,8 @@ class QAction(QtCore.QObject): def setPriority(self, priority: "QAction.Priority") -> None: ... def isIconVisibleInMenu(self) -> bool: ... def setIconVisibleInMenu(self, visible: bool) -> None: ... + def setMenu(self, menu: QMenu) -> None: ... + def menu(self) -> QMenu: ... def menuRole(self) -> "QAction.MenuRole": ... def setMenuRole(self, menuRole: "QAction.MenuRole") -> None: ... def autoRepeat(self) -> bool: ... @@ -197,6 +207,7 @@ class QActionGroup(QtCore.QObject): Exclusive = ... # type: QActionGroup.ExclusionPolicy ExclusiveOptional = ... # type: QActionGroup.ExclusionPolicy def __init__(self, parent: QtCore.QObject) -> None: ... + hovered: typing.ClassVar[QtCore.pyqtSignal] triggered: typing.ClassVar[QtCore.pyqtSignal] def setExclusionPolicy(self, policy: "QActionGroup.ExclusionPolicy") -> None: ... @@ -305,9 +316,9 @@ class QPixmap(QPaintDevice): @typing.overload def save(self, device: QtCore.QIODevice, format: typing.Optional[str] = ..., quality: int = ...) -> bool: ... @typing.overload - def loadFromData(self, buf: bytes, format: typing.Optional[str] = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... + def loadFromData(self, buf: PyQt6.sip.array[bytes], format: typing.Optional[str] = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... @typing.overload - def loadFromData(self, buf: QtCore.QByteArray, format: typing.Optional[str] = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... + def loadFromData(self, buf: typing.Union[QtCore.QByteArray, bytes, bytearray], format: typing.Optional[str] = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... def load(self, fileName: str, format: typing.Optional[str] = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... def convertFromImage(self, img: "QImage", flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... @staticmethod @@ -365,6 +376,7 @@ class QColor(PyQt6.sip.simplewrapper): class NameFormat(enum.Enum): HexRgb = ... # type: QColor.NameFormat HexArgb = ... # type: QColor.NameFormat + class Spec(enum.Enum): Invalid = ... # type: QColor.Spec Rgb = ... # type: QColor.Spec @@ -388,6 +400,10 @@ class QColor(PyQt6.sip.simplewrapper): def __init__(self, name: str) -> None: ... @typing.overload def __init__(self, a0: "QColor") -> None: ... + @staticmethod + def isValidColorName(a0: typing.Union[QtCore.QByteArray, bytes, bytearray, str]) -> bool: ... + @staticmethod + def fromString(name: typing.Union[QtCore.QByteArray, bytes, bytearray, str]) -> "QColor": ... def toExtendedRgb(self) -> "QColor": ... @typing.overload @staticmethod @@ -421,6 +437,8 @@ class QColor(PyQt6.sip.simplewrapper): def darker(self, factor: int = ...) -> "QColor": ... def lighter(self, factor: int = ...) -> "QColor": ... def isValid(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... @staticmethod def fromCmykF(c: float, m: float, y: float, k: float, alpha: float = ...) -> "QColor": ... @staticmethod @@ -692,6 +710,8 @@ class QBrush(PyQt6.sip.simplewrapper): def setTextureImage(self, image: "QImage") -> None: ... def color(self) -> QColor: ... def style(self) -> QtCore.Qt.BrushStyle: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isOpaque(self) -> bool: ... def gradient(self) -> "QGradient": ... @typing.overload @@ -873,15 +893,18 @@ class QGradient(PyQt6.sip.simplewrapper): FabledSunset = ... # type: QGradient.Preset PerfectBlue = ... # type: QGradient.Preset NumPresets = ... # type: QGradient.Preset + class Spread(enum.Enum): PadSpread = ... # type: QGradient.Spread ReflectSpread = ... # type: QGradient.Spread RepeatSpread = ... # type: QGradient.Spread + class Type(enum.Enum): LinearGradient = ... # type: QGradient.Type RadialGradient = ... # type: QGradient.Type ConicalGradient = ... # type: QGradient.Type NoGradient = ... # type: QGradient.Type + class CoordinateMode(enum.Enum): LogicalMode = ... # type: QGradient.CoordinateMode StretchToDeviceMode = ... # type: QGradient.CoordinateMode @@ -896,6 +919,8 @@ class QGradient(PyQt6.sip.simplewrapper): def setCoordinateMode(self, mode: "QGradient.CoordinateMode") -> None: ... def coordinateMode(self) -> "QGradient.CoordinateMode": ... def setSpread(self, aspread: "QGradient.Spread") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def stops(self) -> typing.List[typing.Tuple[float, QColor]]: ... def setStops(self, stops: typing.Iterable[typing.Tuple[float, typing.Union[QColor, QtCore.Qt.GlobalColor, int, "QGradient"]]]) -> None: ... def setColorAt(self, pos: float, color: typing.Union[QColor, QtCore.Qt.GlobalColor, int, "QGradient"]) -> None: ... @@ -1007,12 +1032,14 @@ class QColorSpace(PyQt6.sip.simplewrapper): Gamma = ... # type: QColorSpace.TransferFunction SRgb = ... # type: QColorSpace.TransferFunction ProPhotoRgb = ... # type: QColorSpace.TransferFunction + class Primaries(enum.Enum): Custom = ... # type: QColorSpace.Primaries SRgb = ... # type: QColorSpace.Primaries AdobeRgb = ... # type: QColorSpace.Primaries DciP3D65 = ... # type: QColorSpace.Primaries ProPhotoRgb = ... # type: QColorSpace.Primaries + class NamedColorSpace(enum.Enum): SRgb = ... # type: QColorSpace.NamedColorSpace SRgbLinear = ... # type: QColorSpace.NamedColorSpace @@ -1037,12 +1064,14 @@ class QColorSpace(PyQt6.sip.simplewrapper): def __init__(self, whitePoint: QtCore.QPointF, redPoint: QtCore.QPointF, greenPoint: QtCore.QPointF, bluePoint: QtCore.QPointF, transferFunctionTable: typing.Iterable[int]) -> None: ... @typing.overload def __init__(self, colorSpace: "QColorSpace") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def setDescription(self, description: str) -> None: ... def description(self) -> str: ... def transformationToColorSpace(self, colorspace: "QColorSpace") -> "QColorTransform": ... def iccProfile(self) -> QtCore.QByteArray: ... @staticmethod - def fromIccProfile(iccProfile: QtCore.QByteArray) -> "QColorSpace": ... + def fromIccProfile(iccProfile: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> "QColorSpace": ... def isValid(self) -> bool: ... @typing.overload def setPrimaries(self, primariesId: "QColorSpace.Primaries") -> None: ... @@ -1068,6 +1097,9 @@ class QColorTransform(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, colorTransform: "QColorTransform") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def isIdentity(self) -> bool: ... @typing.overload def map(self, argb: int) -> int: ... @typing.overload @@ -1087,6 +1119,8 @@ class QCursor(PyQt6.sip.simplewrapper): def __init__(self, cursor: typing.Union["QCursor", QtCore.Qt.CursorShape]) -> None: ... @typing.overload def __init__(self, variant: typing.Any) -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def swap(self, other: typing.Union["QCursor", QtCore.Qt.CursorShape]) -> None: ... @typing.overload @staticmethod @@ -1164,6 +1198,8 @@ class QKeyEvent(QInputEvent): def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: QtCore.Qt.KeyboardModifier, nativeScanCode: int, nativeVirtualKey: int, nativeModifiers: int, text: str = ..., autorep: bool = ..., count: int = ..., device: typing.Optional["QInputDevice"] = ...) -> None: ... @typing.overload def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: QtCore.Qt.KeyboardModifier, text: str = ..., autorep: bool = ..., count: int = ...) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def clone(self) -> "QKeyEvent": ... def keyCombination(self) -> QtCore.QKeyCombination: ... def nativeVirtualKey(self) -> int: ... @@ -1207,15 +1243,19 @@ class QResizeEvent(QtCore.QEvent): class QCloseEvent(QtCore.QEvent): def __init__(self) -> None: ... + def clone(self) -> "QCloseEvent": ... class QIconDragEvent(QtCore.QEvent): def __init__(self) -> None: ... + def clone(self) -> "QIconDragEvent": ... class QShowEvent(QtCore.QEvent): def __init__(self) -> None: ... + def clone(self) -> "QShowEvent": ... class QHideEvent(QtCore.QEvent): def __init__(self) -> None: ... + def clone(self) -> "QHideEvent": ... class QContextMenuEvent(QInputEvent): class Reason(enum.Enum): @@ -1242,18 +1282,23 @@ class QInputMethodEvent(QtCore.QEvent): Language = ... # type: QInputMethodEvent.AttributeType Ruby = ... # type: QInputMethodEvent.AttributeType Selection = ... # type: QInputMethodEvent.AttributeType + class Attribute(PyQt6.sip.simplewrapper): length = ... # type: int start = ... # type: int type = ... # type: 'QInputMethodEvent.AttributeType' value = ... # type: typing.Any + @typing.overload def __init__(self, t: "QInputMethodEvent.AttributeType", s: int, l: int, val: typing.Any) -> None: ... @typing.overload def __init__(self, typ: "QInputMethodEvent.AttributeType", s: int, l: int) -> None: ... @typing.overload def __init__(self, a0: "QInputMethodEvent.Attribute") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -1302,9 +1347,11 @@ class QDragMoveEvent(QDropEvent): class QDragEnterEvent(QDragMoveEvent): def __init__(self, pos: QtCore.QPoint, actions: QtCore.Qt.DropAction, data: QtCore.QMimeData, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier) -> None: ... + def clone(self) -> "QDragEnterEvent": ... class QDragLeaveEvent(QtCore.QEvent): def __init__(self) -> None: ... + def clone(self) -> "QDragLeaveEvent": ... class QHelpEvent(QtCore.QEvent): def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPoint, globalPos: QtCore.QPoint) -> None: ... @@ -1426,6 +1473,9 @@ class QMouseEvent(QSinglePointEvent): def pos(self) -> QtCore.QPoint: ... class QHoverEvent(QSinglePointEvent): + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPointF, globalPos: QtCore.QPointF, oldPos: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier = ..., device: typing.Optional["QPointingDevice"] = ...) -> None: ... + @typing.overload def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPointF, oldPos: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier = ..., device: typing.Optional["QPointingDevice"] = ...) -> None: ... def clone(self) -> "QHoverEvent": ... def oldPosF(self) -> QtCore.QPointF: ... @@ -1512,12 +1562,15 @@ class QEventPoint(PyQt6.sip.simplewrapper): def pressPosition(self) -> QtCore.QPointF: ... def position(self) -> QtCore.QPointF: ... def swap(self, other: "QEventPoint") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QFileSystemModel(QtCore.QAbstractItemModel): class Option(enum.Flag): DontWatchForChanges = ... # type: QFileSystemModel.Option DontResolveSymlinks = ... # type: QFileSystemModel.Option DontUseCustomDirectoryIcons = ... # type: QFileSystemModel.Option + class Roles(enum.IntEnum): FileIconRole = ... # type: QFileSystemModel.Roles FilePathRole = ... # type: QFileSystemModel.Roles @@ -1564,7 +1617,7 @@ class QFileSystemModel(QtCore.QAbstractItemModel): def setRootPath(self, path: str) -> QtCore.QModelIndex: ... def supportedDropActions(self) -> QtCore.Qt.DropAction: ... def dropMimeData(self, data: QtCore.QMimeData, action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ... - def mimeData(self, indexes: typing.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData: ... + def mimeData(self, indexes: typing.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData | None: ... def mimeTypes(self) -> typing.List[str]: ... def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ... def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ... @@ -1589,15 +1642,18 @@ class QFont(PyQt6.sip.simplewrapper): PreferNoHinting = ... # type: QFont.HintingPreference PreferVerticalHinting = ... # type: QFont.HintingPreference PreferFullHinting = ... # type: QFont.HintingPreference + class SpacingType(enum.Enum): PercentageSpacing = ... # type: QFont.SpacingType AbsoluteSpacing = ... # type: QFont.SpacingType + class Capitalization(enum.Enum): MixedCase = ... # type: QFont.Capitalization AllUppercase = ... # type: QFont.Capitalization AllLowercase = ... # type: QFont.Capitalization SmallCaps = ... # type: QFont.Capitalization Capitalize = ... # type: QFont.Capitalization + class Stretch(enum.IntEnum): AnyStretch = ... # type: QFont.Stretch UltraCondensed = ... # type: QFont.Stretch @@ -1609,10 +1665,12 @@ class QFont(PyQt6.sip.simplewrapper): Expanded = ... # type: QFont.Stretch ExtraExpanded = ... # type: QFont.Stretch UltraExpanded = ... # type: QFont.Stretch + class Style(enum.Enum): StyleNormal = ... # type: QFont.Style StyleItalic = ... # type: QFont.Style StyleOblique = ... # type: QFont.Style + class Weight(enum.IntEnum): Thin = ... # type: QFont.Weight ExtraLight = ... # type: QFont.Weight @@ -1623,6 +1681,7 @@ class QFont(PyQt6.sip.simplewrapper): Bold = ... # type: QFont.Weight ExtraBold = ... # type: QFont.Weight Black = ... # type: QFont.Weight + class StyleStrategy(enum.Flag): PreferDefault = ... # type: QFont.StyleStrategy PreferBitmap = ... # type: QFont.StyleStrategy @@ -1636,6 +1695,7 @@ class QFont(PyQt6.sip.simplewrapper): NoSubpixelAntialias = ... # type: QFont.StyleStrategy NoFontMerging = ... # type: QFont.StyleStrategy PreferNoShaping = ... # type: QFont.StyleStrategy + class StyleHint(enum.Enum): Helvetica = ... # type: QFont.StyleHint SansSerif = ... # type: QFont.StyleHint @@ -1660,6 +1720,7 @@ class QFont(PyQt6.sip.simplewrapper): def __init__(self, a0: "QFont") -> None: ... @typing.overload def __init__(self, variant: typing.Any) -> None: ... + def __ge__(self, a0: "QFont") -> bool: ... def setFamilies(self, a0: typing.Iterable[str]) -> None: ... def families(self) -> typing.List[str]: ... def __hash__(self) -> int: ... @@ -1703,6 +1764,9 @@ class QFont(PyQt6.sip.simplewrapper): def toString(self) -> str: ... def key(self) -> str: ... def isCopyOf(self, a0: "QFont") -> bool: ... + def __lt__(self, a0: "QFont") -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def exactMatch(self) -> bool: ... def setStretch(self, a0: int) -> None: ... def stretch(self) -> int: ... @@ -1739,6 +1803,7 @@ class QFontDatabase(PyQt6.sip.simplewrapper): FixedFont = ... # type: QFontDatabase.SystemFont TitleFont = ... # type: QFontDatabase.SystemFont SmallestReadableFont = ... # type: QFontDatabase.SystemFont + class WritingSystem(enum.Enum): Any = ... # type: QFontDatabase.WritingSystem Latin = ... # type: QFontDatabase.WritingSystem @@ -1787,7 +1852,7 @@ class QFontDatabase(PyQt6.sip.simplewrapper): @staticmethod def applicationFontFamilies(id: int) -> typing.List[str]: ... @staticmethod - def addApplicationFontFromData(fontData: QtCore.QByteArray) -> int: ... + def addApplicationFontFromData(fontData: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> int: ... @staticmethod def addApplicationFont(fileName: str) -> int: ... @staticmethod @@ -1860,11 +1925,19 @@ class QFontMetrics(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, a0: "QFontMetrics") -> None: ... def fontDpi(self) -> float: ... + @typing.overload + def horizontalAdvance(self, a0: str, textOption: "QTextOption") -> int: ... + @typing.overload def horizontalAdvance(self, a0: str, length: int = ...) -> int: ... def capHeight(self) -> int: ... def swap(self, other: "QFontMetrics") -> None: ... def inFontUcs4(self, character: int) -> bool: ... + @typing.overload + def tightBoundingRect(self, text: str, textOption: "QTextOption") -> QtCore.QRect: ... + @typing.overload def tightBoundingRect(self, text: str) -> QtCore.QRect: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def elidedText(self, text: str, mode: QtCore.Qt.TextElideMode, width: int, flags: int = ...) -> str: ... def averageCharWidth(self) -> int: ... def lineWidth(self) -> int: ... @@ -1872,13 +1945,15 @@ class QFontMetrics(PyQt6.sip.simplewrapper): def overlinePos(self) -> int: ... def underlinePos(self) -> int: ... def size(self, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QSize: ... + def boundingRectChar(self, a0: str) -> QtCore.QRect: ... + @typing.overload + def boundingRect(self, text: str, textOption: "QTextOption") -> QtCore.QRect: ... @typing.overload def boundingRect(self, text: str) -> QtCore.QRect: ... @typing.overload def boundingRect(self, rect: QtCore.QRect, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QRect: ... @typing.overload def boundingRect(self, x: int, y: int, width: int, height: int, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QRect: ... - def boundingRectChar(self, a0: str) -> QtCore.QRect: ... def rightBearing(self, a0: str) -> int: ... def leftBearing(self, a0: str) -> int: ... def inFont(self, a0: str) -> bool: ... @@ -1902,11 +1977,19 @@ class QFontMetricsF(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, a0: "QFontMetricsF") -> None: ... def fontDpi(self) -> float: ... + @typing.overload + def horizontalAdvance(self, string: str, textOption: "QTextOption") -> float: ... + @typing.overload def horizontalAdvance(self, string: str, length: int = ...) -> float: ... def capHeight(self) -> float: ... def swap(self, other: "QFontMetricsF") -> None: ... def inFontUcs4(self, character: int) -> bool: ... + @typing.overload + def tightBoundingRect(self, text: str, textOption: "QTextOption") -> QtCore.QRectF: ... + @typing.overload def tightBoundingRect(self, text: str) -> QtCore.QRectF: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def elidedText(self, text: str, mode: QtCore.Qt.TextElideMode, width: float, flags: int = ...) -> str: ... def averageCharWidth(self) -> float: ... def lineWidth(self) -> float: ... @@ -1914,11 +1997,13 @@ class QFontMetricsF(PyQt6.sip.simplewrapper): def overlinePos(self) -> float: ... def underlinePos(self) -> float: ... def size(self, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QSizeF: ... + def boundingRectChar(self, a0: str) -> QtCore.QRectF: ... + @typing.overload + def boundingRect(self, text: str, textOption: "QTextOption") -> QtCore.QRectF: ... @typing.overload def boundingRect(self, string: str) -> QtCore.QRectF: ... @typing.overload def boundingRect(self, rect: QtCore.QRectF, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QRectF: ... - def boundingRectChar(self, a0: str) -> QtCore.QRectF: ... def rightBearing(self, a0: str) -> float: ... def leftBearing(self, a0: str) -> float: ... def inFont(self, a0: str) -> bool: ... @@ -1939,6 +2024,12 @@ class QMatrix4x3(PyQt6.sip.simplewrapper): def __init__(self, other: "QMatrix4x3") -> None: ... @typing.overload def __init__(self, values: typing.Sequence[float]) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> "QMatrix4x3": ... + def __imul__(self, a0: float) -> "QMatrix4x3": ... + def __isub__(self, a0: "QMatrix4x3") -> "QMatrix4x3": ... + def __iadd__(self, a0: "QMatrix4x3") -> "QMatrix4x3": ... def transposed(self) -> "QMatrix3x4": ... def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... @@ -1956,6 +2047,12 @@ class QMatrix4x2(PyQt6.sip.simplewrapper): def __init__(self, other: "QMatrix4x2") -> None: ... @typing.overload def __init__(self, values: typing.Sequence[float]) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> "QMatrix4x2": ... + def __imul__(self, a0: float) -> "QMatrix4x2": ... + def __isub__(self, a0: "QMatrix4x2") -> "QMatrix4x2": ... + def __iadd__(self, a0: "QMatrix4x2") -> "QMatrix4x2": ... def transposed(self) -> "QMatrix2x4": ... def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... @@ -1973,6 +2070,12 @@ class QMatrix3x4(PyQt6.sip.simplewrapper): def __init__(self, other: "QMatrix3x4") -> None: ... @typing.overload def __init__(self, values: typing.Sequence[float]) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> "QMatrix3x4": ... + def __imul__(self, a0: float) -> "QMatrix3x4": ... + def __isub__(self, a0: "QMatrix3x4") -> "QMatrix3x4": ... + def __iadd__(self, a0: "QMatrix3x4") -> "QMatrix3x4": ... def transposed(self) -> QMatrix4x3: ... def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... @@ -1990,6 +2093,12 @@ class QMatrix3x3(PyQt6.sip.simplewrapper): def __init__(self, other: "QMatrix3x3") -> None: ... @typing.overload def __init__(self, values: typing.Sequence[float]) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> "QMatrix3x3": ... + def __imul__(self, a0: float) -> "QMatrix3x3": ... + def __isub__(self, a0: "QMatrix3x3") -> "QMatrix3x3": ... + def __iadd__(self, a0: "QMatrix3x3") -> "QMatrix3x3": ... def transposed(self) -> "QMatrix3x3": ... def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... @@ -2007,6 +2116,12 @@ class QMatrix3x2(PyQt6.sip.simplewrapper): def __init__(self, other: "QMatrix3x2") -> None: ... @typing.overload def __init__(self, values: typing.Sequence[float]) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> "QMatrix3x2": ... + def __imul__(self, a0: float) -> "QMatrix3x2": ... + def __isub__(self, a0: "QMatrix3x2") -> "QMatrix3x2": ... + def __iadd__(self, a0: "QMatrix3x2") -> "QMatrix3x2": ... def transposed(self) -> "QMatrix2x3": ... def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... @@ -2024,6 +2139,12 @@ class QMatrix2x4(PyQt6.sip.simplewrapper): def __init__(self, other: "QMatrix2x4") -> None: ... @typing.overload def __init__(self, values: typing.Sequence[float]) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> "QMatrix2x4": ... + def __imul__(self, a0: float) -> "QMatrix2x4": ... + def __isub__(self, a0: "QMatrix2x4") -> "QMatrix2x4": ... + def __iadd__(self, a0: "QMatrix2x4") -> "QMatrix2x4": ... def transposed(self) -> QMatrix4x2: ... def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... @@ -2041,6 +2162,12 @@ class QMatrix2x3(PyQt6.sip.simplewrapper): def __init__(self, other: "QMatrix2x3") -> None: ... @typing.overload def __init__(self, values: typing.Sequence[float]) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> "QMatrix2x3": ... + def __imul__(self, a0: float) -> "QMatrix2x3": ... + def __isub__(self, a0: "QMatrix2x3") -> "QMatrix2x3": ... + def __iadd__(self, a0: "QMatrix2x3") -> "QMatrix2x3": ... def transposed(self) -> QMatrix3x2: ... def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... @@ -2058,6 +2185,12 @@ class QMatrix2x2(PyQt6.sip.simplewrapper): def __init__(self, other: "QMatrix2x2") -> None: ... @typing.overload def __init__(self, values: typing.Sequence[float]) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> "QMatrix2x2": ... + def __imul__(self, a0: float) -> "QMatrix2x2": ... + def __isub__(self, a0: "QMatrix2x2") -> "QMatrix2x2": ... + def __iadd__(self, a0: "QMatrix2x2") -> "QMatrix2x2": ... def transposed(self) -> "QMatrix2x2": ... def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... @@ -2094,6 +2227,8 @@ class QGlyphRun(PyQt6.sip.simplewrapper): def setUnderline(self, underline: bool) -> None: ... def overline(self) -> bool: ... def setOverline(self, overline: bool) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def clear(self) -> None: ... def setPositions(self, positions: typing.Iterable[QtCore.QPointF]) -> None: ... def positions(self) -> typing.List[QtCore.QPointF]: ... @@ -2214,6 +2349,7 @@ class QIcon(PyQt6.sip.wrapper): class State(enum.Enum): On = ... # type: QIcon.State Off = ... # type: QIcon.State + class Mode(enum.Enum): Normal = ... # type: QIcon.Mode Disabled = ... # type: QIcon.Mode @@ -2283,6 +2419,7 @@ class QIconEngine(PyQt6.sip.wrapper): class IconEngineHook(enum.Enum): IsNullHook = ... # type: QIconEngine.IconEngineHook ScaledPixmapHook = ... # type: QIconEngine.IconEngineHook + class ScaledPixmapArgument(PyQt6.sip.simplewrapper): mode = ... # type: QIcon.Mode @@ -2290,10 +2427,12 @@ class QIconEngine(PyQt6.sip.wrapper): scale = ... # type: float size = ... # type: QtCore.QSize state = ... # type: QIcon.State + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QIconEngine.ScaledPixmapArgument") -> None: ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -2350,6 +2489,7 @@ class QImage(QPaintDevice): Format_RGBX32FPx4 = ... # type: QImage.Format Format_RGBA32FPx4 = ... # type: QImage.Format Format_RGBA32FPx4_Premultiplied = ... # type: QImage.Format + class InvertMode(enum.Enum): InvertRgb = ... # type: QImage.InvertMode InvertRgba = ... # type: QImage.InvertMode @@ -2371,6 +2511,7 @@ class QImage(QPaintDevice): def __init__(self, a0: "QImage") -> None: ... @typing.overload def __init__(self, variant: typing.Any) -> None: ... + def colorTransformed(self, transform: QColorTransform) -> "QImage": ... def deviceIndependentSize(self) -> QtCore.QSizeF: ... def applyColorTransform(self, transform: QColorTransform) -> None: ... def convertToColorSpace(self, a0: QColorSpace) -> None: ... @@ -2417,7 +2558,7 @@ class QImage(QPaintDevice): def paintEngine(self) -> "QPaintEngine": ... @typing.overload @staticmethod - def fromData(data: bytes, format: typing.Optional[str] = ...) -> "QImage": ... + def fromData(data: PyQt6.sip.array[bytes], format: typing.Optional[str] = ...) -> "QImage": ... @typing.overload @staticmethod def fromData(data: QtCore.QByteArray, format: typing.Optional[str] = ...) -> "QImage": ... @@ -2426,7 +2567,7 @@ class QImage(QPaintDevice): @typing.overload def save(self, device: QtCore.QIODevice, format: typing.Optional[str] = ..., quality: int = ...) -> bool: ... @typing.overload - def loadFromData(self, data: bytes, format: typing.Optional[str] = ...) -> bool: ... + def loadFromData(self, data: PyQt6.sip.array[bytes], format: typing.Optional[str] = ...) -> bool: ... @typing.overload def loadFromData(self, data: QtCore.QByteArray, format: typing.Optional[str] = ...) -> bool: ... @typing.overload @@ -2495,6 +2636,8 @@ class QImage(QPaintDevice): def copy(self, rect: QtCore.QRect = ...) -> "QImage": ... @typing.overload def copy(self, x: int, y: int, w: int, h: int) -> "QImage": ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isNull(self) -> bool: ... class QImageIOHandler(PyQt6.sip.simplewrapper): @@ -2507,6 +2650,7 @@ class QImageIOHandler(PyQt6.sip.simplewrapper): TransformationMirrorAndRotate90 = ... # type: QImageIOHandler.Transformation TransformationFlipAndRotate90 = ... # type: QImageIOHandler.Transformation TransformationRotate270 = ... # type: QImageIOHandler.Transformation + class ImageOption(enum.Enum): Size = ... # type: QImageIOHandler.ImageOption ClipRect = ... # type: QImageIOHandler.ImageOption @@ -2541,7 +2685,7 @@ class QImageIOHandler(PyQt6.sip.simplewrapper): def read(self, image: QImage) -> bool: ... def canRead(self) -> bool: ... def format(self) -> QtCore.QByteArray: ... - def setFormat(self, format: QtCore.QByteArray) -> None: ... + def setFormat(self, format: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... def device(self) -> QtCore.QIODevice: ... def setDevice(self, device: QtCore.QIODevice) -> None: ... @@ -2555,11 +2699,11 @@ class QImageReader(PyQt6.sip.simplewrapper): @typing.overload def __init__(self) -> None: ... @typing.overload - def __init__(self, device: QtCore.QIODevice, format: QtCore.QByteArray = ...) -> None: ... + def __init__(self, device: QtCore.QIODevice, format: typing.Union[QByteArray, bytes, bytearray] = ...) -> None: ... @typing.overload - def __init__(self, fileName: str, format: QtCore.QByteArray = ...) -> None: ... + def __init__(self, fileName: str, format: typing.Union[QByteArray, bytes, bytearray] = ...) -> None: ... @staticmethod - def imageFormatsForMimeType(mimeType: QtCore.QByteArray) -> typing.List[QtCore.QByteArray]: ... + def imageFormatsForMimeType(mimeType: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[QtCore.QByteArray]: ... def autoTransform(self) -> bool: ... def setAutoTransform(self, enabled: bool) -> None: ... def transformation(self) -> QImageIOHandler.Transformation: ... @@ -2615,7 +2759,7 @@ class QImageReader(PyQt6.sip.simplewrapper): def device(self) -> QtCore.QIODevice: ... def setDevice(self, device: QtCore.QIODevice) -> None: ... def format(self) -> QtCore.QByteArray: ... - def setFormat(self, format: QtCore.QByteArray) -> None: ... + def setFormat(self, format: typing.Union[QByteArray, bytes, bytearray]) -> None: ... class QImageWriter(PyQt6.sip.simplewrapper): class ImageWriterError(enum.Enum): @@ -2626,11 +2770,11 @@ class QImageWriter(PyQt6.sip.simplewrapper): @typing.overload def __init__(self) -> None: ... @typing.overload - def __init__(self, device: QtCore.QIODevice, format: QtCore.QByteArray) -> None: ... + def __init__(self, device: QtCore.QIODevice, format: typing.Union[QByteArray, bytes, bytearray]) -> None: ... @typing.overload - def __init__(self, fileName: str, format: QtCore.QByteArray = ...) -> None: ... + def __init__(self, fileName: str, format: typing.Union[QByteArray, bytes, bytearray] = ...) -> None: ... @staticmethod - def imageFormatsForMimeType(mimeType: QtCore.QByteArray) -> typing.List[QtCore.QByteArray]: ... + def imageFormatsForMimeType(mimeType: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[QtCore.QByteArray]: ... def setTransformation(self, orientation: QImageIOHandler.Transformation) -> None: ... def transformation(self) -> QImageIOHandler.Transformation: ... def progressiveScanWrite(self) -> bool: ... @@ -2639,7 +2783,7 @@ class QImageWriter(PyQt6.sip.simplewrapper): def setOptimizedWrite(self, optimize: bool) -> None: ... def supportedSubTypes(self) -> typing.List[QtCore.QByteArray]: ... def subType(self) -> QtCore.QByteArray: ... - def setSubType(self, type: QtCore.QByteArray) -> None: ... + def setSubType(self, type: typing.Union[QByteArray, bytes, bytearray]) -> None: ... @staticmethod def supportedMimeTypes() -> typing.List[QtCore.QByteArray]: ... def compression(self) -> int: ... @@ -2659,7 +2803,7 @@ class QImageWriter(PyQt6.sip.simplewrapper): def device(self) -> QtCore.QIODevice: ... def setDevice(self, device: QtCore.QIODevice) -> None: ... def format(self) -> QtCore.QByteArray: ... - def setFormat(self, format: QtCore.QByteArray) -> None: ... + def setFormat(self, format: typing.Union[QByteArray, bytes, bytearray]) -> None: ... class QInputDevice(QtCore.QObject): class Capability(enum.Flag): @@ -2679,6 +2823,7 @@ class QInputDevice(QtCore.QObject): TangentialPressure = ... # type: QInputDevice.Capability ZPosition = ... # type: QInputDevice.Capability All = ... # type: QInputDevice.Capability + class DeviceType(enum.Flag): Unknown = ... # type: QInputDevice.DeviceType Mouse = ... # type: QInputDevice.DeviceType @@ -2693,7 +2838,11 @@ class QInputDevice(QtCore.QObject): def __init__(self, name: str, systemId: int, type: "QInputDevice.DeviceType", seatName: str = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def __ne__(self, other: object): ... + @staticmethod + def seatNames() -> typing.List[str]: ... availableVirtualGeometryChanged: typing.ClassVar[QtCore.pyqtSignal] + def __eq__(self, other: object): ... @staticmethod def primaryKeyboard(seatName: str = ...) -> "QInputDevice": ... @staticmethod @@ -2813,10 +2962,12 @@ class QKeySequence(PyQt6.sip.simplewrapper): DeleteCompleteLine = ... # type: QKeySequence.StandardKey Backspace = ... # type: QKeySequence.StandardKey Cancel = ... # type: QKeySequence.StandardKey + class SequenceMatch(enum.Enum): NoMatch = ... # type: QKeySequence.SequenceMatch PartialMatch = ... # type: QKeySequence.SequenceMatch ExactMatch = ... # type: QKeySequence.SequenceMatch + class SequenceFormat(enum.Enum): NativeText = ... # type: QKeySequence.SequenceFormat PortableText = ... # type: QKeySequence.SequenceFormat @@ -2846,6 +2997,12 @@ class QKeySequence(PyQt6.sip.simplewrapper): def toString(self, format: "QKeySequence.SequenceFormat" = ...) -> str: ... def swap(self, other: "QKeySequence") -> None: ... def isDetached(self) -> bool: ... + def __ge__(self, other: typing.Union["QKeySequence", "QKeySequence.StandardKey", str, int]) -> bool: ... + def __le__(self, other: typing.Union["QKeySequence", "QKeySequence.StandardKey", str, int]) -> bool: ... + def __gt__(self, other: typing.Union["QKeySequence", "QKeySequence.StandardKey", str, int]) -> bool: ... + def __lt__(self, ks: typing.Union["QKeySequence", "QKeySequence.StandardKey", str, int]) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def __getitem__(self, i: int) -> QtCore.QKeyCombination: ... @staticmethod def mnemonic(text: str) -> "QKeySequence": ... @@ -2865,6 +3022,24 @@ class QMatrix4x4(PyQt6.sip.simplewrapper): def __init__(self, transform: "QTransform") -> None: ... @typing.overload def __init__(self, a0: "QMatrix4x4") -> None: ... + def __truediv__(self, matrix: "QMatrix4x4", divisor: float) -> "QMatrix4x4": ... + def __add__(self, m1: "QMatrix4x4", m2: "QMatrix4x4") -> "QMatrix4x4": ... + def __sub__(self, m1: "QMatrix4x4", m2: "QMatrix4x4") -> "QMatrix4x4": ... + @typing.overload + def __mul__(self, m1: "QMatrix4x4", m2: "QMatrix4x4") -> "QMatrix4x4": ... + @typing.overload + def __mul__(self, matrix: "QMatrix4x4", point: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def __mul__(self, matrix: "QMatrix4x4", point: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def __mul__(self, factor: float, matrix: "QMatrix4x4") -> "QMatrix4x4": ... + @typing.overload + def __mul__(self, matrix: "QMatrix4x4", factor: float) -> "QMatrix4x4": ... + @typing.overload + def __mul__(self, matrix: "QMatrix4x4", vector: "QVector4D") -> "QVector4D": ... + @typing.overload + def __mul__(self, matrix: "QMatrix4x4", vector: "QVector3D") -> "QVector3D": ... + def __matmul__(self, m1: "QMatrix4x4", m2: "QMatrix4x4") -> "QMatrix4x4": ... def __neg__(self) -> "QMatrix4x4": ... def isAffine(self) -> bool: ... @typing.overload @@ -2880,6 +3055,16 @@ class QMatrix4x4(PyQt6.sip.simplewrapper): def map(self, point: "QVector3D") -> "QVector3D": ... @typing.overload def map(self, point: "QVector4D") -> "QVector4D": ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, divisor: float) -> "QMatrix4x4": ... + def __imatmul__(self, other: "QMatrix4x4") -> "QMatrix4x4": ... + @typing.overload + def __imul__(self, other: "QMatrix4x4") -> "QMatrix4x4": ... + @typing.overload + def __imul__(self, factor: float) -> "QMatrix4x4": ... + def __isub__(self, other: "QMatrix4x4") -> "QMatrix4x4": ... + def __iadd__(self, other: "QMatrix4x4") -> "QMatrix4x4": ... def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... def isIdentity(self) -> bool: ... @@ -2939,6 +3124,7 @@ class QMovie(QtCore.QObject): class CacheMode(enum.Enum): CacheNone = ... # type: QMovie.CacheMode CacheAll = ... # type: QMovie.CacheMode + class MovieState(enum.Enum): NotRunning = ... # type: QMovie.MovieState Paused = ... # type: QMovie.MovieState @@ -2946,9 +3132,9 @@ class QMovie(QtCore.QObject): @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload - def __init__(self, device: QtCore.QIODevice, format: QtCore.QByteArray = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def __init__(self, device: QtCore.QIODevice, format: typing.Union[QByteArray, bytes, bytearray] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload - def __init__(self, fileName: str, format: QtCore.QByteArray = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def __init__(self, fileName: str, format: typing.Union[QByteArray, bytes, bytearray] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def lastErrorString(self) -> str: ... def lastError(self) -> QImageReader.ImageReaderError: ... def stop(self) -> None: ... @@ -2981,7 +3167,7 @@ class QMovie(QtCore.QObject): def backgroundColor(self) -> QColor: ... def setBackgroundColor(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, int, QGradient]) -> None: ... def format(self) -> QtCore.QByteArray: ... - def setFormat(self, format: QtCore.QByteArray) -> None: ... + def setFormat(self, format: typing.Union[QByteArray, bytes, bytearray]) -> None: ... def fileName(self) -> str: ... def setFileName(self, fileName: str) -> None: ... def device(self) -> QtCore.QIODevice: ... @@ -2998,6 +3184,7 @@ class QSurface(PyQt6.sip.simplewrapper): VulkanSurface = ... # type: QSurface.SurfaceType MetalSurface = ... # type: QSurface.SurfaceType Direct3DSurface = ... # type: QSurface.SurfaceType + class SurfaceClass(enum.Enum): Window = ... # type: QSurface.SurfaceClass Offscreen = ... # type: QSurface.SurfaceClass @@ -3013,6 +3200,7 @@ class QSurface(PyQt6.sip.simplewrapper): class QOffscreenSurface(QtCore.QObject, QSurface): def __init__(self, screen: typing.Optional["QScreen"] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + screenChanged: typing.ClassVar[QtCore.pyqtSignal] def setScreen(self, screen: "QScreen") -> None: ... def screen(self) -> "QScreen": ... @@ -3043,14 +3231,14 @@ class QOpenGLContext(QtCore.QObject): @staticmethod def openGLModuleType() -> "QOpenGLContext.OpenGLModuleType": ... aboutToBeDestroyed: typing.ClassVar[QtCore.pyqtSignal] - def hasExtension(self, extension: QtCore.QByteArray) -> bool: ... + def hasExtension(self, extension: typing.Union[QByteArray, bytes, bytearray]) -> bool: ... def extensions(self) -> typing.Set[QtCore.QByteArray]: ... @staticmethod def areSharing(first: "QOpenGLContext", second: "QOpenGLContext") -> bool: ... @staticmethod def currentContext() -> "QOpenGLContext": ... def surface(self) -> QSurface: ... - def getProcAddress(self, procName: QtCore.QByteArray) -> PyQt6.sip.voidptr: ... + def getProcAddress(self, procName: typing.Union[QByteArray, bytes, bytearray]) -> PyQt6.sip.voidptr: ... def swapBuffers(self, surface: QSurface) -> None: ... def doneCurrent(self) -> None: ... def makeCurrent(self, surface: QSurface) -> bool: ... @@ -3083,9 +3271,11 @@ class QPageLayout(PyQt6.sip.simplewrapper): class Mode(enum.Enum): StandardMode = ... # type: QPageLayout.Mode FullPageMode = ... # type: QPageLayout.Mode + class Orientation(enum.Enum): Portrait = ... # type: QPageLayout.Orientation Landscape = ... # type: QPageLayout.Orientation + class Unit(enum.Enum): Millimeter = ... # type: QPageLayout.Unit Point = ... # type: QPageLayout.Unit @@ -3099,6 +3289,8 @@ class QPageLayout(PyQt6.sip.simplewrapper): def __init__(self, pageSize: "QPageSize", orientation: "QPageLayout.Orientation", margins: QtCore.QMarginsF, units: "QPageLayout.Unit" = ..., minMargins: QtCore.QMarginsF = ...) -> None: ... @typing.overload def __init__(self, other: "QPageLayout") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def paintRectPixels(self, resolution: int) -> QtCore.QRect: ... def paintRectPoints(self) -> QtCore.QRect: ... @typing.overload @@ -3142,15 +3334,23 @@ class QPageRanges(PyQt6.sip.simplewrapper): from_ = ... # type: int to = ... # type: int + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QPageRanges.Range") -> None: ... + def __ge__(self, rhs: "QPageRanges.Range") -> bool: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: "QPageRanges.Range") -> bool: ... def contains(self, pageNumber: int) -> bool: ... + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QPageRanges") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def lastPage(self) -> int: ... def firstPage(self) -> int: ... def isEmpty(self) -> bool: ... @@ -3169,6 +3369,7 @@ class QPageSize(PyQt6.sip.simplewrapper): FuzzyMatch = ... # type: QPageSize.SizeMatchPolicy FuzzyOrientationMatch = ... # type: QPageSize.SizeMatchPolicy ExactMatch = ... # type: QPageSize.SizeMatchPolicy + class Unit(enum.Enum): Millimeter = ... # type: QPageSize.Unit Point = ... # type: QPageSize.Unit @@ -3176,6 +3377,7 @@ class QPageSize(PyQt6.sip.simplewrapper): Pica = ... # type: QPageSize.Unit Didot = ... # type: QPageSize.Unit Cicero = ... # type: QPageSize.Unit + class PageSizeId(enum.Enum): A4 = ... # type: QPageSize.PageSizeId B5 = ... # type: QPageSize.PageSizeId @@ -3312,6 +3514,8 @@ class QPageSize(PyQt6.sip.simplewrapper): def __init__(self, size: QtCore.QSizeF, units: "QPageSize.Unit", name: str = ..., matchPolicy: "QPageSize.SizeMatchPolicy" = ...) -> None: ... @typing.overload def __init__(self, other: "QPageSize") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def rectPixels(self, resolution: int) -> QtCore.QRect: ... def rectPoints(self) -> QtCore.QRect: ... def rect(self, units: "QPageSize.Unit") -> QtCore.QRectF: ... @@ -3378,6 +3582,7 @@ class QWindow(QtCore.QObject, QSurface): Minimized = ... # type: QWindow.Visibility Maximized = ... # type: QWindow.Visibility FullScreen = ... # type: QWindow.Visibility + class AncestorMode(enum.Enum): ExcludeTransients = ... # type: QWindow.AncestorMode IncludeTransients = ... # type: QWindow.AncestorMode @@ -3593,11 +3798,13 @@ class QPaintEngine(PyQt6.sip.simplewrapper): Direct2D = ... # type: QPaintEngine.Type User = ... # type: QPaintEngine.Type MaxUser = ... # type: QPaintEngine.Type + class PolygonDrawMode(enum.Enum): OddEvenMode = ... # type: QPaintEngine.PolygonDrawMode WindingMode = ... # type: QPaintEngine.PolygonDrawMode ConvexMode = ... # type: QPaintEngine.PolygonDrawMode PolylineMode = ... # type: QPaintEngine.PolygonDrawMode + class DirtyFlag(enum.Flag): DirtyPen = ... # type: QPaintEngine.DirtyFlag DirtyBrush = ... # type: QPaintEngine.DirtyFlag @@ -3613,6 +3820,7 @@ class QPaintEngine(PyQt6.sip.simplewrapper): DirtyClipEnabled = ... # type: QPaintEngine.DirtyFlag DirtyOpacity = ... # type: QPaintEngine.DirtyFlag AllDirty = ... # type: QPaintEngine.DirtyFlag + class PaintEngineFeature(enum.Flag): PrimitiveTransform = ... # type: QPaintEngine.PaintEngineFeature PatternTransform = ... # type: QPaintEngine.PaintEngineFeature @@ -3645,26 +3853,26 @@ class QPaintEngine(PyQt6.sip.simplewrapper): def drawTextItem(self, p: QtCore.QPointF, textItem: QTextItem) -> None: ... def drawPixmap(self, r: QtCore.QRectF, pm: QPixmap, sr: QtCore.QRectF) -> None: ... @typing.overload - def drawPolygon(self, points: QtCore.QPointF, mode: "QPaintEngine.PolygonDrawMode") -> None: ... + def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPointF], mode: "QPaintEngine.PolygonDrawMode") -> None: ... @typing.overload - def drawPolygon(self, points: QtCore.QPoint, mode: "QPaintEngine.PolygonDrawMode") -> None: ... + def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPoint], mode: "QPaintEngine.PolygonDrawMode") -> None: ... @typing.overload - def drawPoints(self, points: QtCore.QPointF) -> None: ... + def drawPoints(self, points: PyQt6.sip.array[QtCore.QPointF]) -> None: ... @typing.overload - def drawPoints(self, points: QtCore.QPoint) -> None: ... + def drawPoints(self, points: PyQt6.sip.array[QtCore.QPoint]) -> None: ... def drawPath(self, path: "QPainterPath") -> None: ... @typing.overload def drawEllipse(self, r: QtCore.QRectF) -> None: ... @typing.overload def drawEllipse(self, r: QtCore.QRect) -> None: ... @typing.overload - def drawLines(self, lines: QtCore.QLine) -> None: ... + def drawLines(self, lines: PyQt6.sip.array[QtCore.QLine]) -> None: ... @typing.overload - def drawLines(self, lines: QtCore.QLineF) -> None: ... + def drawLines(self, lines: PyQt6.sip.array[QtCore.QLineF]) -> None: ... @typing.overload - def drawRects(self, rects: QtCore.QRect) -> None: ... + def drawRects(self, rects: PyQt6.sip.array[QtCore.QRect]) -> None: ... @typing.overload - def drawRects(self, rects: QtCore.QRectF) -> None: ... + def drawRects(self, rects: PyQt6.sip.array[QtCore.QRectF]) -> None: ... def updateState(self, state: "QPaintEngineState") -> None: ... def end(self) -> bool: ... def begin(self, pdev: QPaintDevice) -> bool: ... @@ -3698,6 +3906,7 @@ class QPaintEngineState(PyQt6.sip.simplewrapper): class QPainter(PyQt6.sip.simplewrapper): class PixmapFragmentHint(enum.Flag): OpaqueHint = ... # type: QPainter.PixmapFragmentHint + class CompositionMode(enum.Enum): CompositionMode_SourceOver = ... # type: QPainter.CompositionMode CompositionMode_DestinationOver = ... # type: QPainter.CompositionMode @@ -3737,12 +3946,15 @@ class QPainter(PyQt6.sip.simplewrapper): RasterOp_ClearDestination = ... # type: QPainter.CompositionMode RasterOp_SetDestination = ... # type: QPainter.CompositionMode RasterOp_NotDestination = ... # type: QPainter.CompositionMode + class RenderHint(enum.Flag): Antialiasing = ... # type: QPainter.RenderHint TextAntialiasing = ... # type: QPainter.RenderHint SmoothPixmapTransform = ... # type: QPainter.RenderHint LosslessImageRendering = ... # type: QPainter.RenderHint VerticalSubpixelPositioning = ... # type: QPainter.RenderHint + NonCosmeticBrushPatterns = ... # type: QPainter.RenderHint + class PixmapFragment(PyQt6.sip.simplewrapper): height = ... # type: float @@ -3755,12 +3967,14 @@ class QPainter(PyQt6.sip.simplewrapper): width = ... # type: float x = ... # type: float y = ... # type: float + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QPainter.PixmapFragment") -> None: ... @staticmethod def create(pos: QtCore.QPointF, sourceRect: QtCore.QRectF, scaleX: float = ..., scaleY: float = ..., rotation: float = ..., opacity: float = ...) -> "QPainter.PixmapFragment": ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -3773,7 +3987,7 @@ class QPainter(PyQt6.sip.simplewrapper): def drawStaticText(self, p: QtCore.QPoint, staticText: "QStaticText") -> None: ... @typing.overload def drawStaticText(self, x: int, y: int, staticText: "QStaticText") -> None: ... - def drawPixmapFragments(self, fragments: typing.List["QPainter.PixmapFragment"], pixmap: QPixmap, hints: "QPainter.PixmapFragmentHint" = ...) -> None: ... + def drawPixmapFragments(self, fragments: PyQt6.sip.array["QPainter.PixmapFragment"], pixmap: QPixmap, hints: "QPainter.PixmapFragmentHint" = ...) -> None: ... def endNativePainting(self) -> None: ... def beginNativePainting(self) -> None: ... @typing.overload @@ -3949,30 +4163,42 @@ class QPainter(PyQt6.sip.simplewrapper): @typing.overload def drawArc(self, x: int, y: int, w: int, h: int, a: int, alen: int) -> None: ... @typing.overload + def drawConvexPolygon(self, poly: "QPolygonF") -> None: ... + @typing.overload + def drawConvexPolygon(self, poly: "QPolygon") -> None: ... + @typing.overload + def drawConvexPolygon(self, points: PyQt6.sip.array[QtCore.QPointF]) -> None: ... + @typing.overload def drawConvexPolygon(self, point: QtCore.QPointF, *a1: QtCore.QPointF) -> None: ... @typing.overload - def drawConvexPolygon(self, poly: "QPolygonF") -> None: ... + def drawConvexPolygon(self, points: PyQt6.sip.array[QtCore.QPoint]) -> None: ... @typing.overload def drawConvexPolygon(self, point: QtCore.QPoint, *a1: QtCore.QPoint) -> None: ... @typing.overload - def drawConvexPolygon(self, poly: "QPolygon") -> None: ... + def drawPolygon(self, points: "QPolygonF", fillRule: QtCore.Qt.FillRule = ...) -> None: ... + @typing.overload + def drawPolygon(self, points: "QPolygon", fillRule: QtCore.Qt.FillRule = ...) -> None: ... + @typing.overload + def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPointF], fillRule: QtCore.Qt.FillRule = ...) -> None: ... @typing.overload def drawPolygon(self, point: QtCore.QPointF, *a1: QtCore.QPointF) -> None: ... @typing.overload - def drawPolygon(self, points: "QPolygonF", fillRule: QtCore.Qt.FillRule = ...) -> None: ... + def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPoint], fillRule: QtCore.Qt.FillRule = ...) -> None: ... @typing.overload def drawPolygon(self, point: QtCore.QPoint, *a1: QtCore.QPoint) -> None: ... @typing.overload - def drawPolygon(self, points: "QPolygon", fillRule: QtCore.Qt.FillRule = ...) -> None: ... + def drawPolyline(self, polyline: "QPolygonF") -> None: ... + @typing.overload + def drawPolyline(self, polyline: "QPolygon") -> None: ... + @typing.overload + def drawPolyline(self, points: PyQt6.sip.array[QtCore.QPointF]) -> None: ... @typing.overload def drawPolyline(self, point: QtCore.QPointF, *a1: QtCore.QPointF) -> None: ... @typing.overload - def drawPolyline(self, polyline: "QPolygonF") -> None: ... + def drawPolyline(self, points: PyQt6.sip.array[QtCore.QPoint]) -> None: ... @typing.overload def drawPolyline(self, point: QtCore.QPoint, *a1: QtCore.QPoint) -> None: ... @typing.overload - def drawPolyline(self, polyline: "QPolygon") -> None: ... - @typing.overload def drawEllipse(self, r: QtCore.QRectF) -> None: ... @typing.overload def drawEllipse(self, r: QtCore.QRect) -> None: ... @@ -3983,37 +4209,41 @@ class QPainter(PyQt6.sip.simplewrapper): @typing.overload def drawEllipse(self, center: QtCore.QPoint, rx: int, ry: int) -> None: ... @typing.overload + def drawRects(self, rects: PyQt6.sip.array[QtCore.QRectF]) -> None: ... + @typing.overload def drawRects(self, rect: QtCore.QRectF, *a1: QtCore.QRectF) -> None: ... @typing.overload - def drawRects(self, rectangles: typing.Iterable[QtCore.QRectF]) -> None: ... + def drawRects(self, rects: PyQt6.sip.array[QtCore.QRect]) -> None: ... @typing.overload def drawRects(self, rect: QtCore.QRect, *a1: QtCore.QRect) -> None: ... @typing.overload - def drawRects(self, rectangles: typing.Iterable[QtCore.QRect]) -> None: ... + def drawLines(self, lines: PyQt6.sip.array[QtCore.QLineF]) -> None: ... @typing.overload def drawLines(self, line: QtCore.QLineF, *a1: QtCore.QLineF) -> None: ... @typing.overload - def drawLines(self, lines: typing.Iterable[QtCore.QLineF]) -> None: ... + def drawLines(self, pointPairs: PyQt6.sip.array[QtCore.QPointF]) -> None: ... @typing.overload def drawLines(self, pointPair: QtCore.QPointF, *a1: QtCore.QPointF) -> None: ... @typing.overload - def drawLines(self, pointPairs: typing.Iterable[QtCore.QPointF]) -> None: ... + def drawLines(self, lines: PyQt6.sip.array[QtCore.QLine]) -> None: ... @typing.overload def drawLines(self, line: QtCore.QLine, *a1: QtCore.QLine) -> None: ... @typing.overload - def drawLines(self, lines: typing.Iterable[QtCore.QLine]) -> None: ... + def drawLines(self, pointPairs: PyQt6.sip.array[QtCore.QPoint]) -> None: ... @typing.overload def drawLines(self, pointPair: QtCore.QPoint, *a1: QtCore.QPoint) -> None: ... @typing.overload - def drawLines(self, pointPairs: typing.Iterable[QtCore.QPoint]) -> None: ... + def drawPoints(self, points: "QPolygonF") -> None: ... + @typing.overload + def drawPoints(self, points: "QPolygon") -> None: ... + @typing.overload + def drawPoints(self, points: PyQt6.sip.array[QtCore.QPointF]) -> None: ... @typing.overload def drawPoints(self, point: QtCore.QPointF, *a1: QtCore.QPointF) -> None: ... @typing.overload - def drawPoints(self, points: "QPolygonF") -> None: ... + def drawPoints(self, points: PyQt6.sip.array[QtCore.QPoint]) -> None: ... @typing.overload def drawPoints(self, point: QtCore.QPoint, *a1: QtCore.QPoint) -> None: ... - @typing.overload - def drawPoints(self, points: "QPolygon") -> None: ... def drawPath(self, path: "QPainterPath") -> None: ... def fillPath(self, path: "QPainterPath", brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, int, QGradient]) -> None: ... def strokePath(self, path: "QPainterPath", pen: typing.Union["QPen", QColor, QtCore.Qt.GlobalColor, int, QGradient]) -> None: ... @@ -4094,18 +4324,23 @@ class QPainterPath(PyQt6.sip.simplewrapper): LineToElement = ... # type: QPainterPath.ElementType CurveToElement = ... # type: QPainterPath.ElementType CurveToDataElement = ... # type: QPainterPath.ElementType + class Element(PyQt6.sip.simplewrapper): type = ... # type: 'QPainterPath.ElementType' x = ... # type: float y = ... # type: float + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QPainterPath.Element") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isCurveTo(self) -> bool: ... def isLineTo(self) -> bool: ... def isMoveTo(self) -> bool: ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -4124,6 +4359,14 @@ class QPainterPath(PyQt6.sip.simplewrapper): def translate(self, dx: float, dy: float) -> None: ... @typing.overload def translate(self, offset: QtCore.QPointF) -> None: ... + def __isub__(self, other: "QPainterPath") -> "QPainterPath": ... + def __iadd__(self, other: "QPainterPath") -> "QPainterPath": ... + def __ior__(self, other: "QPainterPath") -> "QPainterPath": ... + def __iand__(self, other: "QPainterPath") -> "QPainterPath": ... + def __sub__(self, other: "QPainterPath") -> "QPainterPath": ... + def __add__(self, other: "QPainterPath") -> "QPainterPath": ... + def __or__(self, other: "QPainterPath") -> "QPainterPath": ... + def __and__(self, other: "QPainterPath") -> "QPainterPath": ... def simplified(self) -> "QPainterPath": ... @typing.overload def addRoundedRect(self, rect: QtCore.QRectF, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ... @@ -4145,6 +4388,8 @@ class QPainterPath(PyQt6.sip.simplewrapper): def arcMoveTo(self, rect: QtCore.QRectF, angle: float) -> None: ... @typing.overload def arcMoveTo(self, x: float, y: float, w: float, h: float, angle: float) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def toFillPolygon(self, matrix: "QTransform" = ...) -> "QPolygonF": ... def toFillPolygons(self, matrix: "QTransform" = ...) -> typing.List["QPolygonF"]: ... def toSubpathPolygons(self, matrix: "QTransform" = ...) -> typing.List["QPolygonF"]: ... @@ -4252,6 +4497,7 @@ class QPalette(PyQt6.sip.simplewrapper): PlaceholderText = ... # type: QPalette.ColorRole NoRole = ... # type: QPalette.ColorRole NColorRoles = ... # type: QPalette.ColorRole + class ColorGroup(enum.Enum): Active = ... # type: QPalette.ColorGroup Disabled = ... # type: QPalette.ColorGroup @@ -4281,6 +4527,8 @@ class QPalette(PyQt6.sip.simplewrapper): def setColor(self, acr: "QPalette.ColorRole", acolor: typing.Union[QColor, QtCore.Qt.GlobalColor, int, QGradient]) -> None: ... def resolve(self, a0: "QPalette") -> "QPalette": ... def isCopyOf(self, p: "QPalette") -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def placeholderText(self) -> QBrush: ... def toolTipText(self) -> QBrush: ... def toolTipBase(self) -> QBrush: ... @@ -4325,7 +4573,7 @@ class QPdfWriter(QtCore.QObject, QPagedPaintDevice): def __init__(self, device: QtCore.QIODevice) -> None: ... def addFileAttachment(self, fileName: str, data: QtCore.QByteArray, mimeType: str = ...) -> None: ... def documentXmpMetadata(self) -> QtCore.QByteArray: ... - def setDocumentXmpMetadata(self, xmpMetadata: QtCore.QByteArray) -> None: ... + def setDocumentXmpMetadata(self, xmpMetadata: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... def pdfVersion(self) -> QPagedPaintDevice.PdfVersion: ... def setPdfVersion(self, version: QPagedPaintDevice.PdfVersion) -> None: ... def resolution(self) -> int: ... @@ -4354,6 +4602,8 @@ class QPen(PyQt6.sip.simplewrapper): def isCosmetic(self) -> bool: ... def setDashOffset(self, doffset: float) -> None: ... def dashOffset(self) -> float: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def setMiterLimit(self, limit: float) -> None: ... def miterLimit(self) -> float: ... def setDashPattern(self, pattern: typing.Iterable[float]) -> None: ... @@ -4395,7 +4645,7 @@ class QPicture(QPaintDevice): @typing.overload def load(self, dev: QtCore.QIODevice) -> bool: ... def play(self, p: QPainter) -> bool: ... - def setData(self, data: bytes) -> None: ... + def setData(self, data: PyQt6.sip.array[bytes]) -> None: ... def data(self) -> bytes: ... def size(self) -> int: ... def devType(self) -> int: ... @@ -4406,6 +4656,7 @@ class QPixelFormat(PyQt6.sip.simplewrapper): LittleEndian = ... # type: QPixelFormat.ByteOrder BigEndian = ... # type: QPixelFormat.ByteOrder CurrentSystemEndian = ... # type: QPixelFormat.ByteOrder + class YUVLayout(enum.Enum): YUV444 = ... # type: QPixelFormat.YUVLayout YUV422 = ... # type: QPixelFormat.YUVLayout @@ -4423,20 +4674,25 @@ class QPixelFormat(PyQt6.sip.simplewrapper): IMC4 = ... # type: QPixelFormat.YUVLayout Y8 = ... # type: QPixelFormat.YUVLayout Y16 = ... # type: QPixelFormat.YUVLayout + class TypeInterpretation(enum.Enum): UnsignedInteger = ... # type: QPixelFormat.TypeInterpretation UnsignedShort = ... # type: QPixelFormat.TypeInterpretation UnsignedByte = ... # type: QPixelFormat.TypeInterpretation FloatingPoint = ... # type: QPixelFormat.TypeInterpretation + class AlphaPremultiplied(enum.Enum): NotPremultiplied = ... # type: QPixelFormat.AlphaPremultiplied Premultiplied = ... # type: QPixelFormat.AlphaPremultiplied + class AlphaPosition(enum.Enum): AtBeginning = ... # type: QPixelFormat.AlphaPosition AtEnd = ... # type: QPixelFormat.AlphaPosition + class AlphaUsage(enum.Enum): UsesAlpha = ... # type: QPixelFormat.AlphaUsage IgnoresAlpha = ... # type: QPixelFormat.AlphaUsage + class ColorModel(enum.Enum): RGB = ... # type: QPixelFormat.ColorModel BGR = ... # type: QPixelFormat.ColorModel @@ -4453,6 +4709,8 @@ class QPixelFormat(PyQt6.sip.simplewrapper): def __init__(self, mdl: "QPixelFormat.ColorModel", firstSize: int, secondSize: int, thirdSize: int, fourthSize: int, fifthSize: int, alfa: int, usage: "QPixelFormat.AlphaUsage", position: "QPixelFormat.AlphaPosition", premult: "QPixelFormat.AlphaPremultiplied", typeInterp: "QPixelFormat.TypeInterpretation", byteOrder: "QPixelFormat.ByteOrder" = ..., subEnum: int = ...) -> None: ... @typing.overload def __init__(self, a0: "QPixelFormat") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def subEnum(self) -> int: ... def yuvLayout(self) -> "QPixelFormat.YUVLayout": ... def byteOrder(self) -> "QPixelFormat.ByteOrder": ... @@ -4484,6 +4742,9 @@ class QPixmapCache(PyQt6.sip.simplewrapper): def __init__(self, other: "QPixmapCache.Key") -> None: ... def isValid(self) -> bool: ... def swap(self, other: "QPixmapCache.Key") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -4520,6 +4781,8 @@ class QPointingDeviceUniqueId(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QPointingDeviceUniqueId") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def numericId(self) -> int: ... def isValid(self) -> bool: ... @@ -4539,6 +4802,8 @@ class QPointingDevice(QInputDevice): def __init__(self, name: str, systemId: int, devType: QInputDevice.DeviceType, pType: "QPointingDevice.PointerType", caps: QInputDevice.Capability, maxPoints: int, buttonCount: int, seatName: str = ..., uniqueId: QPointingDeviceUniqueId = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... @staticmethod def primaryPointingDevice(seatName: str = ...) -> "QPointingDevice": ... def uniqueId(self) -> QPointingDeviceUniqueId: ... @@ -4557,6 +4822,8 @@ class QPolygon(PyQt6.sip.simplewrapper): def __init__(self, variant: typing.Any) -> None: ... @typing.overload def __init__(self, a0: "QPolygon") -> None: ... + def __mul__(self, a: "QPolygon", m: "QTransform") -> "QPolygon": ... + def toPolygonF(self) -> "QPolygonF": ... def __contains__(self, value: QtCore.QPoint) -> int: ... @typing.overload def __delitem__(self, i: int) -> None: ... @@ -4570,11 +4837,20 @@ class QPolygon(PyQt6.sip.simplewrapper): def __getitem__(self, i: int) -> QtCore.QPoint: ... @typing.overload def __getitem__(self, slice: slice) -> "QPolygon": ... + def __lshift__(self, value: QtCore.QPoint) -> typing.Any: ... + def __eq__(self, other: object): ... + @typing.overload + def __iadd__(self, other: "QPolygon") -> "QPolygon": ... + @typing.overload + def __iadd__(self, value: QtCore.QPoint) -> "QPolygon": ... + def __add__(self, other: "QPolygon") -> "QPolygon": ... + def __ne__(self, other: object): ... @typing.overload def value(self, i: int) -> QtCore.QPoint: ... @typing.overload def value(self, i: int, defaultValue: QtCore.QPoint) -> QtCore.QPoint: ... def size(self) -> int: ... + def resize(self, size: int) -> None: ... def replace(self, i: int, value: QtCore.QPoint) -> None: ... @typing.overload def remove(self, i: int) -> None: ... @@ -4638,6 +4914,7 @@ class QPolygonF(PyQt6.sip.simplewrapper): def __init__(self, variant: typing.Any) -> None: ... @typing.overload def __init__(self, a0: "QPolygonF") -> None: ... + def __mul__(self, a: "QPolygonF", m: "QTransform") -> "QPolygonF": ... def __contains__(self, value: QtCore.QPointF) -> int: ... @typing.overload def __delitem__(self, i: int) -> None: ... @@ -4651,11 +4928,20 @@ class QPolygonF(PyQt6.sip.simplewrapper): def __getitem__(self, i: int) -> QtCore.QPointF: ... @typing.overload def __getitem__(self, slice: slice) -> "QPolygonF": ... + def __lshift__(self, value: QtCore.QPointF) -> typing.Any: ... + def __eq__(self, other: object): ... + @typing.overload + def __iadd__(self, other: "QPolygonF") -> "QPolygonF": ... + @typing.overload + def __iadd__(self, value: QtCore.QPointF) -> "QPolygonF": ... + def __add__(self, other: "QPolygonF") -> "QPolygonF": ... + def __ne__(self, other: object): ... @typing.overload def value(self, i: int) -> QtCore.QPointF: ... @typing.overload def value(self, i: int, defaultValue: QtCore.QPointF) -> QtCore.QPointF: ... def size(self) -> int: ... + def resize(self, size: int) -> None: ... def replace(self, i: int, value: QtCore.QPointF) -> None: ... @typing.overload def remove(self, i: int) -> None: ... @@ -4709,6 +4995,19 @@ class QQuaternion(PyQt6.sip.simplewrapper): def __init__(self, aVector: "QVector4D") -> None: ... @typing.overload def __init__(self, a0: "QQuaternion") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __truediv__(self, quaternion: "QQuaternion", divisor: float) -> "QQuaternion": ... + def __add__(self, q1: "QQuaternion", q2: "QQuaternion") -> "QQuaternion": ... + def __sub__(self, q1: "QQuaternion", q2: "QQuaternion") -> "QQuaternion": ... + @typing.overload + def __mul__(self, q1: "QQuaternion", q2: "QQuaternion") -> "QQuaternion": ... + @typing.overload + def __mul__(self, factor: float, quaternion: "QQuaternion") -> "QQuaternion": ... + @typing.overload + def __mul__(self, quaternion: "QQuaternion", factor: float) -> "QQuaternion": ... + @typing.overload + def __mul__(self, quaternion: "QQuaternion", vec: "QVector3D") -> "QVector3D": ... def __neg__(self) -> "QQuaternion": ... def toEulerAngles(self) -> "QVector3D": ... def conjugated(self) -> "QQuaternion": ... @@ -4739,6 +5038,13 @@ class QQuaternion(PyQt6.sip.simplewrapper): def setVector(self, aVector: "QVector3D") -> None: ... @typing.overload def setVector(self, aX: float, aY: float, aZ: float) -> None: ... + def __itruediv__(self, divisor: float) -> "QQuaternion": ... + @typing.overload + def __imul__(self, factor: float) -> "QQuaternion": ... + @typing.overload + def __imul__(self, quaternion: "QQuaternion") -> "QQuaternion": ... + def __isub__(self, quaternion: "QQuaternion") -> "QQuaternion": ... + def __iadd__(self, quaternion: "QQuaternion") -> "QQuaternion": ... def setScalar(self, aScalar: float) -> None: ... def setZ(self, aZ: float) -> None: ... def setY(self, aY: float) -> None: ... @@ -4775,6 +5081,7 @@ class QRawFont(PyQt6.sip.simplewrapper): SeparateAdvances = ... # type: QRawFont.LayoutFlag KernedAdvances = ... # type: QRawFont.LayoutFlag UseDesignMetrics = ... # type: QRawFont.LayoutFlag + class AntialiasingType(enum.Enum): PixelAntialiasing = ... # type: QRawFont.AntialiasingType SubPixelAntialiasing = ... # type: QRawFont.AntialiasingType @@ -4783,7 +5090,7 @@ class QRawFont(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, fileName: str, pixelSize: float, hintingPreference: QFont.HintingPreference = ...) -> None: ... @typing.overload - def __init__(self, fontData: QtCore.QByteArray, pixelSize: float, hintingPreference: QFont.HintingPreference = ...) -> None: ... + def __init__(self, fontData: typing.Union[QtCore.QByteArray, bytes, bytearray], pixelSize: float, hintingPreference: QFont.HintingPreference = ...) -> None: ... @typing.overload def __init__(self, other: "QRawFont") -> None: ... def __hash__(self) -> int: ... @@ -4800,7 +5107,7 @@ class QRawFont(PyQt6.sip.simplewrapper): def supportsCharacter(self, ucs4: int) -> bool: ... @typing.overload def supportsCharacter(self, character: str) -> bool: ... - def loadFromData(self, fontData: QtCore.QByteArray, pixelSize: float, hintingPreference: QFont.HintingPreference) -> None: ... + def loadFromData(self, fontData: typing.Union[QtCore.QByteArray, bytes, bytearray], pixelSize: float, hintingPreference: QFont.HintingPreference) -> None: ... def loadFromFile(self, fileName: str, pixelSize: float, hintingPreference: QFont.HintingPreference) -> None: ... def unitsPerEm(self) -> float: ... def maxCharWidth(self) -> float: ... @@ -4823,6 +5130,8 @@ class QRawFont(PyQt6.sip.simplewrapper): def style(self) -> QFont.Style: ... def styleName(self) -> str: ... def familyName(self) -> str: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isValid(self) -> bool: ... class QRegion(PyQt6.sip.simplewrapper): @@ -4843,6 +5152,7 @@ class QRegion(PyQt6.sip.simplewrapper): def __init__(self, region: "QRegion") -> None: ... @typing.overload def __init__(self, variant: typing.Any) -> None: ... + def __mul__(self, r: "QRegion", m: "QTransform") -> "QRegion": ... def isNull(self) -> bool: ... def swap(self, other: "QRegion") -> None: ... def rectCount(self) -> int: ... @@ -4856,7 +5166,31 @@ class QRegion(PyQt6.sip.simplewrapper): def intersected(self, r: "QRegion") -> "QRegion": ... @typing.overload def intersected(self, r: QtCore.QRect) -> "QRegion": ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __ixor__(self, r: "QRegion") -> "QRegion": ... + def __isub__(self, r: "QRegion") -> "QRegion": ... + @typing.overload + def __iand__(self, r: "QRegion") -> "QRegion": ... + @typing.overload + def __iand__(self, r: QtCore.QRect) -> "QRegion": ... + @typing.overload + def __iadd__(self, r: "QRegion") -> "QRegion": ... + @typing.overload + def __iadd__(self, r: QtCore.QRect) -> "QRegion": ... + def __ior__(self, r: "QRegion") -> "QRegion": ... + def __xor__(self, r: "QRegion") -> "QRegion": ... + def __sub__(self, r: "QRegion") -> "QRegion": ... + @typing.overload + def __and__(self, r: "QRegion") -> "QRegion": ... + @typing.overload + def __and__(self, r: QtCore.QRect) -> "QRegion": ... + @typing.overload + def __add__(self, r: "QRegion") -> "QRegion": ... + @typing.overload + def __add__(self, r: QtCore.QRect) -> "QRegion": ... def setRects(self, a0: typing.Iterable[QtCore.QRect]) -> None: ... + def __or__(self, r: "QRegion") -> "QRegion": ... def boundingRect(self) -> QtCore.QRect: ... @typing.overload def united(self, r: "QRegion") -> "QRegion": ... @@ -5016,12 +5350,13 @@ class QStandardItemModel(QtCore.QAbstractItemModel): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, rows: int, columns: int, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + itemChanged: typing.ClassVar[QtCore.pyqtSignal] def roleNames(self) -> typing.Dict[int, QtCore.QByteArray]: ... def clearItemData(self, index: QtCore.QModelIndex) -> bool: ... - def setItemRoleNames(self, roleNames: typing.Dict[int, QtCore.QByteArray]) -> None: ... + def setItemRoleNames(self, roleNames: typing.Dict[int, typing.Union[QtCore.QByteArray, bytes, bytearray]]) -> None: ... def dropMimeData(self, data: QtCore.QMimeData, action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ... - def mimeData(self, indexes: typing.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData: ... + def mimeData(self, indexes: typing.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData | None: ... def mimeTypes(self) -> typing.List[str]: ... def setSortRole(self, role: int) -> None: ... def sortRole(self) -> int: ... @@ -5101,6 +5436,7 @@ class QStandardItem(PyQt6.sip.wrapper): def __init__(self, rows: int, columns: int = ...) -> None: ... @typing.overload def __init__(self, other: "QStandardItem") -> None: ... + def __ge__(self, other: "QStandardItem") -> bool: ... def clearData(self) -> None: ... def setUserTristate(self, tristate: bool) -> None: ... def isUserTristate(self) -> bool: ... @@ -5126,6 +5462,7 @@ class QStandardItem(PyQt6.sip.wrapper): def setToolTip(self, atoolTip: str) -> None: ... def setIcon(self, aicon: QIcon) -> None: ... def setText(self, atext: str) -> None: ... + def __lt__(self, other: "QStandardItem") -> bool: ... def write(self, out: QtCore.QDataStream) -> None: ... def read(self, in_: QtCore.QDataStream) -> None: ... def type(self) -> int: ... @@ -5204,6 +5541,8 @@ class QStaticText(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, other: "QStaticText") -> None: ... def swap(self, other: "QStaticText") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def performanceHint(self) -> "QStaticText.PerformanceHint": ... def setPerformanceHint(self, performanceHint: "QStaticText.PerformanceHint") -> None: ... def prepare(self, matrix: "QTransform" = ..., font: QFont = ...) -> None: ... @@ -5260,16 +5599,19 @@ class QSurfaceFormat(PyQt6.sip.simplewrapper): NoProfile = ... # type: QSurfaceFormat.OpenGLContextProfile CoreProfile = ... # type: QSurfaceFormat.OpenGLContextProfile CompatibilityProfile = ... # type: QSurfaceFormat.OpenGLContextProfile + class RenderableType(enum.Enum): DefaultRenderableType = ... # type: QSurfaceFormat.RenderableType OpenGL = ... # type: QSurfaceFormat.RenderableType OpenGLES = ... # type: QSurfaceFormat.RenderableType OpenVG = ... # type: QSurfaceFormat.RenderableType + class SwapBehavior(enum.Enum): DefaultSwapBehavior = ... # type: QSurfaceFormat.SwapBehavior SingleBuffer = ... # type: QSurfaceFormat.SwapBehavior DoubleBuffer = ... # type: QSurfaceFormat.SwapBehavior TripleBuffer = ... # type: QSurfaceFormat.SwapBehavior + class FormatOption(enum.Flag): StereoBuffers = ... # type: QSurfaceFormat.FormatOption DebugContext = ... # type: QSurfaceFormat.FormatOption @@ -5282,6 +5624,8 @@ class QSurfaceFormat(PyQt6.sip.simplewrapper): def __init__(self, options: "QSurfaceFormat.FormatOption") -> None: ... @typing.overload def __init__(self, other: "QSurfaceFormat") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def setColorSpace(self, colorSpace: QColorSpace) -> None: ... def colorSpace(self) -> QColorSpace: ... @staticmethod @@ -5354,6 +5698,7 @@ class QTextCursor(PyQt6.sip.simplewrapper): LineUnderCursor = ... # type: QTextCursor.SelectionType BlockUnderCursor = ... # type: QTextCursor.SelectionType Document = ... # type: QTextCursor.SelectionType + class MoveOperation(enum.Enum): NoMove = ... # type: QTextCursor.MoveOperation Start = ... # type: QTextCursor.MoveOperation @@ -5380,6 +5725,7 @@ class QTextCursor(PyQt6.sip.simplewrapper): PreviousCell = ... # type: QTextCursor.MoveOperation NextRow = ... # type: QTextCursor.MoveOperation PreviousRow = ... # type: QTextCursor.MoveOperation + class MoveMode(enum.Enum): MoveAnchor = ... # type: QTextCursor.MoveMode KeepAnchor = ... # type: QTextCursor.MoveMode @@ -5393,6 +5739,7 @@ class QTextCursor(PyQt6.sip.simplewrapper): def __init__(self, block: "QTextBlock") -> None: ... @typing.overload def __init__(self, cursor: "QTextCursor") -> None: ... + def insertMarkdown(self, markdown: str, features: "QTextDocument.MarkdownFeature" = ...) -> None: ... def swap(self, other: "QTextCursor") -> None: ... def keepPositionOnInsert(self) -> bool: ... def setKeepPositionOnInsert(self, b: bool) -> None: ... @@ -5403,6 +5750,12 @@ class QTextCursor(PyQt6.sip.simplewrapper): def setVisualNavigation(self, b: bool) -> None: ... def visualNavigation(self) -> bool: ... def isCopyOf(self, other: "QTextCursor") -> bool: ... + def __gt__(self, rhs: "QTextCursor") -> bool: ... + def __ge__(self, rhs: "QTextCursor") -> bool: ... + def __eq__(self, other: object): ... + def __le__(self, rhs: "QTextCursor") -> bool: ... + def __lt__(self, rhs: "QTextCursor") -> bool: ... + def __ne__(self, other: object): ... def columnNumber(self) -> int: ... def blockNumber(self) -> int: ... def endEditBlock(self) -> None: ... @@ -5481,28 +5834,35 @@ class QTextDocument(QtCore.QObject): MarkdownNoHTML = ... # type: QTextDocument.MarkdownFeature MarkdownDialectCommonMark = ... # type: QTextDocument.MarkdownFeature MarkdownDialectGitHub = ... # type: QTextDocument.MarkdownFeature + class Stacks(enum.Enum): UndoStack = ... # type: QTextDocument.Stacks RedoStack = ... # type: QTextDocument.Stacks UndoAndRedoStacks = ... # type: QTextDocument.Stacks - class ResourceType(enum.Enum): + + class ResourceType(enum.IntEnum): UnknownResource = ... # type: QTextDocument.ResourceType HtmlResource = ... # type: QTextDocument.ResourceType ImageResource = ... # type: QTextDocument.ResourceType StyleSheetResource = ... # type: QTextDocument.ResourceType MarkdownResource = ... # type: QTextDocument.ResourceType UserResource = ... # type: QTextDocument.ResourceType + class FindFlag(enum.Flag): FindBackward = ... # type: QTextDocument.FindFlag FindCaseSensitively = ... # type: QTextDocument.FindFlag FindWholeWords = ... # type: QTextDocument.FindFlag + class MetaInformation(enum.Enum): DocumentTitle = ... # type: QTextDocument.MetaInformation DocumentUrl = ... # type: QTextDocument.MetaInformation + CssMedia = ... # type: QTextDocument.MetaInformation @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, text: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def isLayoutEnabled(self) -> bool: ... + def setLayoutEnabled(self, b: bool) -> None: ... @staticmethod def setDefaultResourceProvider(provider: typing.Callable[[QtCore.QUrl], typing.Any]) -> None: ... @staticmethod @@ -5624,6 +5984,10 @@ class QTextDocumentFragment(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, rhs: "QTextDocumentFragment") -> None: ... @staticmethod + def fromMarkdown(markdown: str, features: QTextDocument.MarkdownFeature = ...) -> "QTextDocumentFragment": ... + def toMarkdown(self, features: QTextDocument.MarkdownFeature = ...) -> str: ... + def toRawText(self) -> str: ... + @staticmethod def fromHtml(html: str, resourceProvider: typing.Optional[QTextDocument] = ...) -> "QTextDocumentFragment": ... @staticmethod def fromPlainText(plainText: str) -> "QTextDocumentFragment": ... @@ -5635,9 +5999,9 @@ class QTextDocumentWriter(PyQt6.sip.simplewrapper): @typing.overload def __init__(self) -> None: ... @typing.overload - def __init__(self, device: QtCore.QIODevice, format: QtCore.QByteArray) -> None: ... + def __init__(self, device: QtCore.QIODevice, format: typing.Union[QByteArray, bytes, bytearray]) -> None: ... @typing.overload - def __init__(self, fileName: str, format: QtCore.QByteArray = ...) -> None: ... + def __init__(self, fileName: str, format: typing.Union[QByteArray, bytes, bytearray] = ...) -> None: ... @staticmethod def supportedDocumentFormats() -> typing.List[QtCore.QByteArray]: ... @typing.overload @@ -5649,7 +6013,7 @@ class QTextDocumentWriter(PyQt6.sip.simplewrapper): def device(self) -> QtCore.QIODevice: ... def setDevice(self, device: QtCore.QIODevice) -> None: ... def format(self) -> QtCore.QByteArray: ... - def setFormat(self, format: QtCore.QByteArray) -> None: ... + def setFormat(self, format: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... class QTextLength(PyQt6.sip.simplewrapper): class Type(enum.Enum): @@ -5664,6 +6028,8 @@ class QTextLength(PyQt6.sip.simplewrapper): def __init__(self, variant: typing.Any) -> None: ... @typing.overload def __init__(self, a0: "QTextLength") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def rawValue(self) -> float: ... def value(self, maximumLength: float) -> float: ... def type(self) -> "QTextLength.Type": ... @@ -5779,17 +6145,21 @@ class QTextFormat(PyQt6.sip.simplewrapper): OldFontLetterSpacingType = ... # type: QTextFormat.Property OldFontStretch = ... # type: QTextFormat.Property OldTextUnderlineColor = ... # type: QTextFormat.Property + OldFontFamily = ... # type: QTextFormat.Property UserProperty = ... # type: QTextFormat.Property + class PageBreakFlag(enum.Flag): PageBreak_Auto = ... # type: QTextFormat.PageBreakFlag PageBreak_AlwaysBefore = ... # type: QTextFormat.PageBreakFlag PageBreak_AlwaysAfter = ... # type: QTextFormat.PageBreakFlag + class ObjectTypes(enum.IntEnum): NoObject = ... # type: QTextFormat.ObjectTypes ImageObject = ... # type: QTextFormat.ObjectTypes TableObject = ... # type: QTextFormat.ObjectTypes TableCellObject = ... # type: QTextFormat.ObjectTypes UserObject = ... # type: QTextFormat.ObjectTypes + class FormatType(enum.IntEnum): InvalidFormat = ... # type: QTextFormat.FormatType BlockFormat = ... # type: QTextFormat.FormatType @@ -5819,6 +6189,8 @@ class QTextFormat(PyQt6.sip.simplewrapper): def setBackground(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, int, QGradient]) -> None: ... def layoutDirection(self) -> QtCore.Qt.LayoutDirection: ... def setLayoutDirection(self, direction: QtCore.Qt.LayoutDirection) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def toImageFormat(self) -> "QTextImageFormat": ... def toFrameFormat(self) -> "QTextFrameFormat": ... def toTableFormat(self) -> "QTextTableFormat": ... @@ -5859,6 +6231,7 @@ class QTextCharFormat(QTextFormat): class FontPropertiesInheritanceBehavior(enum.Enum): FontPropertiesSpecifiedOnly = ... # type: QTextCharFormat.FontPropertiesInheritanceBehavior FontPropertiesAll = ... # type: QTextCharFormat.FontPropertiesInheritanceBehavior + class UnderlineStyle(enum.Enum): NoUnderline = ... # type: QTextCharFormat.UnderlineStyle SingleUnderline = ... # type: QTextCharFormat.UnderlineStyle @@ -5868,6 +6241,7 @@ class QTextCharFormat(QTextFormat): DashDotDotLine = ... # type: QTextCharFormat.UnderlineStyle WaveUnderline = ... # type: QTextCharFormat.UnderlineStyle SpellCheckUnderline = ... # type: QTextCharFormat.UnderlineStyle + class VerticalAlignment(enum.Enum): AlignNormal = ... # type: QTextCharFormat.VerticalAlignment AlignSuperScript = ... # type: QTextCharFormat.VerticalAlignment @@ -5953,6 +6327,7 @@ class QTextBlockFormat(QTextFormat): NoMarker = ... # type: QTextBlockFormat.MarkerType Unchecked = ... # type: QTextBlockFormat.MarkerType Checked = ... # type: QTextBlockFormat.MarkerType + class LineHeightTypes(enum.Enum): SingleHeight = ... # type: QTextBlockFormat.LineHeightTypes ProportionalHeight = ... # type: QTextBlockFormat.LineHeightTypes @@ -6047,6 +6422,7 @@ class QTextFrameFormat(QTextFormat): BorderStyle_Ridge = ... # type: QTextFrameFormat.BorderStyle BorderStyle_Inset = ... # type: QTextFrameFormat.BorderStyle BorderStyle_Outset = ... # type: QTextFrameFormat.BorderStyle + class Position(enum.Enum): InFlow = ... # type: QTextFrameFormat.Position FloatLeft = ... # type: QTextFrameFormat.Position @@ -6177,15 +6553,20 @@ class QTextLayout(PyQt6.sip.simplewrapper): class CursorMode(enum.Enum): SkipCharacters = ... # type: QTextLayout.CursorMode SkipWords = ... # type: QTextLayout.CursorMode + class FormatRange(PyQt6.sip.simplewrapper): format = ... # type: QTextCharFormat length = ... # type: int start = ... # type: int + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QTextLayout.FormatRange") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6238,6 +6619,7 @@ class QTextLine(PyQt6.sip.simplewrapper): class CursorPosition(enum.Enum): CursorBetweenCharacters = ... # type: QTextLine.CursorPosition CursorOnCharacter = ... # type: QTextLine.CursorPosition + class Edge(enum.Enum): Leading = ... # type: QTextLine.Edge Trailing = ... # type: QTextLine.Edge @@ -6308,10 +6690,15 @@ class QTextFrame(QTextObject): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QTextFrame.iterator") -> None: ... + def __isub__(self, a0: int) -> "QTextFrame.iterator": ... + def __iadd__(self, a0: int) -> "QTextFrame.iterator": ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def atEnd(self) -> bool: ... def currentBlock(self) -> "QTextBlock": ... def currentFrame(self) -> "QTextFrame": ... def parentFrame(self) -> "QTextFrame": ... + def __init__(self, doc: QTextDocument) -> None: ... def setFrameFormat(self, aformat: QTextFrameFormat) -> None: ... def end(self) -> "QTextFrame.iterator": ... @@ -6330,12 +6717,18 @@ class QTextBlock(PyQt6.sip.wrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QTextBlock.iterator") -> None: ... + def __isub__(self, a0: int) -> "QTextBlock.iterator": ... + def __iadd__(self, a0: int) -> "QTextBlock.iterator": ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def atEnd(self) -> bool: ... def fragment(self) -> "QTextFragment": ... + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, o: "QTextBlock") -> None: ... + def __ge__(self, o: "QTextBlock") -> bool: ... def textFormats(self) -> typing.List[QTextLayout.FormatRange]: ... def textDirection(self) -> QtCore.Qt.LayoutDirection: ... def lineCount(self) -> int: ... @@ -6366,6 +6759,9 @@ class QTextBlock(PyQt6.sip.wrapper): def contains(self, position: int) -> bool: ... def length(self) -> int: ... def position(self) -> int: ... + def __lt__(self, o: "QTextBlock") -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isValid(self) -> bool: ... class QTextFragment(PyQt6.sip.simplewrapper): @@ -6373,6 +6769,7 @@ class QTextFragment(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, o: "QTextFragment") -> None: ... + def __ge__(self, o: "QTextFragment") -> bool: ... def glyphRuns(self, from_: int = ..., length: int = ...) -> typing.List[QGlyphRun]: ... def text(self) -> str: ... def charFormatIndex(self) -> int: ... @@ -6380,6 +6777,9 @@ class QTextFragment(PyQt6.sip.simplewrapper): def contains(self, position: int) -> bool: ... def length(self) -> int: ... def position(self) -> int: ... + def __lt__(self, o: "QTextFragment") -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isValid(self) -> bool: ... class QTextBlockUserData(PyQt6.sip.wrapper): @@ -6394,6 +6794,7 @@ class QTextOption(PyQt6.sip.simplewrapper): RightTab = ... # type: QTextOption.TabType CenterTab = ... # type: QTextOption.TabType DelimiterTab = ... # type: QTextOption.TabType + class Flag(enum.Flag): IncludeTrailingSpaces = ... # type: QTextOption.Flag ShowTabsAndSpaces = ... # type: QTextOption.Flag @@ -6401,23 +6802,29 @@ class QTextOption(PyQt6.sip.simplewrapper): AddSpaceForLineAndParagraphSeparators = ... # type: QTextOption.Flag SuppressColors = ... # type: QTextOption.Flag ShowDocumentTerminator = ... # type: QTextOption.Flag + class WrapMode(enum.Enum): NoWrap = ... # type: QTextOption.WrapMode WordWrap = ... # type: QTextOption.WrapMode ManualWrap = ... # type: QTextOption.WrapMode WrapAnywhere = ... # type: QTextOption.WrapMode WrapAtWordBoundaryOrAnywhere = ... # type: QTextOption.WrapMode + class Tab(PyQt6.sip.simplewrapper): delimiter = ... # type: str position = ... # type: float type = ... # type: 'QTextOption.TabType' + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, pos: float, tabType: "QTextOption.TabType", delim: str = ...) -> None: ... @typing.overload def __init__(self, a0: "QTextOption.Tab") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6446,6 +6853,8 @@ class QTextTableCell(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, o: "QTextTableCell") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def tableCellFormatIndex(self) -> int: ... def lastCursorPosition(self) -> QTextCursor: ... def firstCursorPosition(self) -> QTextCursor: ... @@ -6500,7 +6909,13 @@ class QTransform(PyQt6.sip.simplewrapper): def __init__(self, h11: float, h12: float, h13: float, h21: float, h22: float, h23: float) -> None: ... @typing.overload def __init__(self, other: "QTransform") -> None: ... + def __truediv__(self, a: "QTransform", n: float) -> "QTransform": ... + def __add__(self, a: "QTransform", n: float) -> "QTransform": ... + def __sub__(self, a: "QTransform", n: float) -> "QTransform": ... def __hash__(self) -> int: ... + def __isub__(self, num: float) -> "QTransform": ... + def __iadd__(self, num: float) -> "QTransform": ... + def __itruediv__(self, div: float) -> "QTransform": ... @staticmethod def fromScale(dx: float, dy: float) -> "QTransform": ... @staticmethod @@ -6549,6 +6964,18 @@ class QTransform(PyQt6.sip.simplewrapper): @typing.overload def map(self, p: QPainterPath) -> QPainterPath: ... def reset(self) -> None: ... + def __matmul__(self, o: "QTransform") -> "QTransform": ... + @typing.overload + def __mul__(self, o: "QTransform") -> "QTransform": ... + @typing.overload + def __mul__(self, a: "QTransform", n: float) -> "QTransform": ... + def __imatmul__(self, a0: "QTransform") -> "QTransform": ... + @typing.overload + def __imul__(self, a0: "QTransform") -> "QTransform": ... + @typing.overload + def __imul__(self, num: float) -> "QTransform": ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... @staticmethod def quadToQuad(one: QPolygonF, two: QPolygonF, result: "QTransform") -> bool: ... @staticmethod @@ -6568,6 +6995,7 @@ class QTransform(PyQt6.sip.simplewrapper): class QUndoGroup(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + undoTextChanged: typing.ClassVar[QtCore.pyqtSignal] redoTextChanged: typing.ClassVar[QtCore.pyqtSignal] indexChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -6648,6 +7076,7 @@ class QValidator(QtCore.QObject): Intermediate = ... # type: QValidator.State Acceptable = ... # type: QValidator.State def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + changed: typing.ClassVar[QtCore.pyqtSignal] def locale(self) -> QtCore.QLocale: ... def setLocale(self, locale: QtCore.QLocale) -> None: ... @@ -6675,6 +7104,7 @@ class QDoubleValidator(QValidator): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, bottom: float, top: float, decimals: int, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def fixup(self, input: str) -> None: ... # type: ignore[override] def notation(self) -> "QDoubleValidator.Notation": ... def setNotation(self, a0: "QDoubleValidator.Notation") -> None: ... def decimals(self) -> int: ... @@ -6710,6 +7140,20 @@ class QVector2D(PyQt6.sip.simplewrapper): def __init__(self, vector: "QVector4D") -> None: ... @typing.overload def __init__(self, a0: "QVector2D") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload + def __truediv__(self, vector: "QVector2D", divisor: "QVector2D") -> "QVector2D": ... + @typing.overload + def __truediv__(self, vector: "QVector2D", divisor: float) -> "QVector2D": ... + def __add__(self, v1: "QVector2D", v2: "QVector2D") -> "QVector2D": ... + def __sub__(self, v1: "QVector2D", v2: "QVector2D") -> "QVector2D": ... + @typing.overload + def __mul__(self, v1: "QVector2D", v2: "QVector2D") -> "QVector2D": ... + @typing.overload + def __mul__(self, vector: "QVector2D", factor: float) -> "QVector2D": ... + @typing.overload + def __mul__(self, factor: float, vector: "QVector2D") -> "QVector2D": ... def __neg__(self) -> "QVector2D": ... def toPointF(self) -> QtCore.QPointF: ... def toPoint(self) -> QtCore.QPoint: ... @@ -6717,6 +7161,16 @@ class QVector2D(PyQt6.sip.simplewrapper): def toVector3D(self) -> "QVector3D": ... @staticmethod def dotProduct(v1: "QVector2D", v2: "QVector2D") -> float: ... + @typing.overload + def __itruediv__(self, divisor: float) -> "QVector2D": ... + @typing.overload + def __itruediv__(self, vector: "QVector2D") -> "QVector2D": ... + @typing.overload + def __imul__(self, factor: float) -> "QVector2D": ... + @typing.overload + def __imul__(self, vector: "QVector2D") -> "QVector2D": ... + def __isub__(self, vector: "QVector2D") -> "QVector2D": ... + def __iadd__(self, vector: "QVector2D") -> "QVector2D": ... def distanceToLine(self, point: "QVector2D", direction: "QVector2D") -> float: ... def distanceToPoint(self, point: "QVector2D") -> float: ... def normalize(self) -> None: ... @@ -6748,6 +7202,22 @@ class QVector3D(PyQt6.sip.simplewrapper): def __init__(self, vector: "QVector4D") -> None: ... @typing.overload def __init__(self, a0: "QVector3D") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload + def __truediv__(self, vector: "QVector3D", divisor: "QVector3D") -> "QVector3D": ... + @typing.overload + def __truediv__(self, vector: "QVector3D", divisor: float) -> "QVector3D": ... + def __add__(self, v1: "QVector3D", v2: "QVector3D") -> "QVector3D": ... + def __sub__(self, v1: "QVector3D", v2: "QVector3D") -> "QVector3D": ... + @typing.overload + def __mul__(self, vector: "QVector3D", matrix: QMatrix4x4) -> "QVector3D": ... + @typing.overload + def __mul__(self, v1: "QVector3D", v2: "QVector3D") -> "QVector3D": ... + @typing.overload + def __mul__(self, vector: "QVector3D", factor: float) -> "QVector3D": ... + @typing.overload + def __mul__(self, factor: float, vector: "QVector3D") -> "QVector3D": ... def __neg__(self) -> "QVector3D": ... def toPointF(self) -> QtCore.QPointF: ... def toPoint(self) -> QtCore.QPoint: ... @@ -6771,6 +7241,16 @@ class QVector3D(PyQt6.sip.simplewrapper): def crossProduct(v1: "QVector3D", v2: "QVector3D") -> "QVector3D": ... @staticmethod def dotProduct(v1: "QVector3D", v2: "QVector3D") -> float: ... + @typing.overload + def __itruediv__(self, divisor: float) -> "QVector3D": ... + @typing.overload + def __itruediv__(self, vector: "QVector3D") -> "QVector3D": ... + @typing.overload + def __imul__(self, factor: float) -> "QVector3D": ... + @typing.overload + def __imul__(self, vector: "QVector3D") -> "QVector3D": ... + def __isub__(self, vector: "QVector3D") -> "QVector3D": ... + def __iadd__(self, vector: "QVector3D") -> "QVector3D": ... def normalize(self) -> None: ... def normalized(self) -> "QVector3D": ... def lengthSquared(self) -> float: ... @@ -6804,6 +7284,22 @@ class QVector4D(PyQt6.sip.simplewrapper): def __init__(self, vector: QVector3D, wpos: float) -> None: ... @typing.overload def __init__(self, a0: "QVector4D") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload + def __truediv__(self, vector: "QVector4D", divisor: "QVector4D") -> "QVector4D": ... + @typing.overload + def __truediv__(self, vector: "QVector4D", divisor: float) -> "QVector4D": ... + def __add__(self, v1: "QVector4D", v2: "QVector4D") -> "QVector4D": ... + def __sub__(self, v1: "QVector4D", v2: "QVector4D") -> "QVector4D": ... + @typing.overload + def __mul__(self, vector: "QVector4D", matrix: QMatrix4x4) -> "QVector4D": ... + @typing.overload + def __mul__(self, v1: "QVector4D", v2: "QVector4D") -> "QVector4D": ... + @typing.overload + def __mul__(self, vector: "QVector4D", factor: float) -> "QVector4D": ... + @typing.overload + def __mul__(self, factor: float, vector: "QVector4D") -> "QVector4D": ... def __neg__(self) -> "QVector4D": ... def toPointF(self) -> QtCore.QPointF: ... def toPoint(self) -> QtCore.QPoint: ... @@ -6813,6 +7309,16 @@ class QVector4D(PyQt6.sip.simplewrapper): def toVector2D(self) -> QVector2D: ... @staticmethod def dotProduct(v1: "QVector4D", v2: "QVector4D") -> float: ... + @typing.overload + def __itruediv__(self, divisor: float) -> "QVector4D": ... + @typing.overload + def __itruediv__(self, vector: "QVector4D") -> "QVector4D": ... + @typing.overload + def __imul__(self, factor: float) -> "QVector4D": ... + @typing.overload + def __imul__(self, vector: "QVector4D") -> "QVector4D": ... + def __isub__(self, vector: "QVector4D") -> "QVector4D": ... + def __iadd__(self, vector: "QVector4D") -> "QVector4D": ... def normalize(self) -> None: ... def normalized(self) -> "QVector4D": ... def lengthSquared(self) -> float: ... diff --git a/PyQt6-stubs/QtHelp.pyi b/PyQt6-stubs/QtHelp.pyi index 5bd059b..ae0be97 100644 --- a/PyQt6-stubs/QtHelp.pyi +++ b/PyQt6-stubs/QtHelp.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtHelp module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -124,11 +124,13 @@ class QHelpFilterData(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QHelpFilterData") -> None: ... + def __ne__(self, other: object): ... def versions(self) -> typing.List[QtCore.QVersionNumber]: ... def components(self) -> typing.List[str]: ... def setVersions(self, versions: typing.Iterable[QtCore.QVersionNumber]) -> None: ... def setComponents(self, components: typing.Iterable[str]) -> None: ... def swap(self, other: "QHelpFilterData") -> None: ... + def __eq__(self, other: object): ... class QHelpFilterEngine(QtCore.QObject): @typing.overload @@ -175,6 +177,7 @@ class QHelpLink(PyQt6.sip.simplewrapper): title = ... # type: str url = ... # type: QtCore.QUrl + @typing.overload def __init__(self) -> None: ... @typing.overload diff --git a/PyQt6-stubs/QtMultimedia.pyi b/PyQt6-stubs/QtMultimedia.pyi index c413f3a..2cc3cbd 100644 --- a/PyQt6-stubs/QtMultimedia.pyi +++ b/PyQt6-stubs/QtMultimedia.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtMultimedia module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -37,11 +37,13 @@ class QAudio(PyQt6.sip.simplewrapper): CubicVolumeScale = ... # type: QAudio.VolumeScale LogarithmicVolumeScale = ... # type: QAudio.VolumeScale DecibelVolumeScale = ... # type: QAudio.VolumeScale + class State(enum.Enum): ActiveState = ... # type: QAudio.State SuspendedState = ... # type: QAudio.State StoppedState = ... # type: QAudio.State IdleState = ... # type: QAudio.State + class Error(enum.Enum): NoError = ... # type: QAudio.Error OpenError = ... # type: QAudio.Error @@ -79,6 +81,7 @@ class QAudioDecoder(QtCore.QObject): AccessDeniedError = ... # type: QAudioDecoder.Error NotSupportedError = ... # type: QAudioDecoder.Error def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + formatChanged: typing.ClassVar[QtCore.pyqtSignal] durationChanged: typing.ClassVar[QtCore.pyqtSignal] positionChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -113,6 +116,7 @@ class QAudioDevice(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QAudioDevice") -> None: ... + def channelConfiguration(self) -> "QAudioFormat.ChannelConfig": ... def supportedSampleFormats(self) -> typing.List["QAudioFormat.SampleFormat"]: ... def maximumChannelCount(self) -> int: ... def minimumChannelCount(self) -> int: ... @@ -125,6 +129,8 @@ class QAudioDevice(PyQt6.sip.simplewrapper): def description(self) -> str: ... def id(self) -> QtCore.QByteArray: ... def isNull(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def swap(self, other: "QAudioDevice") -> None: ... class QAudioFormat(PyQt6.sip.simplewrapper): @@ -134,6 +140,7 @@ class QAudioFormat(PyQt6.sip.simplewrapper): Int16 = ... # type: QAudioFormat.SampleFormat Int32 = ... # type: QAudioFormat.SampleFormat Float = ... # type: QAudioFormat.SampleFormat + class ChannelConfig(enum.Enum): ChannelConfigUnknown = ... # type: QAudioFormat.ChannelConfig ChannelConfigMono = ... # type: QAudioFormat.ChannelConfig @@ -143,6 +150,9 @@ class QAudioFormat(PyQt6.sip.simplewrapper): ChannelConfigSurround5Dot1 = ... # type: QAudioFormat.ChannelConfig ChannelConfigSurround7Dot0 = ... # type: QAudioFormat.ChannelConfig ChannelConfigSurround7Dot1 = ... # type: QAudioFormat.ChannelConfig + ChannelConfig3Dot0 = ... # type: QAudioFormat.ChannelConfig + ChannelConfig3Dot1 = ... # type: QAudioFormat.ChannelConfig + class AudioChannelPosition(enum.Enum): UnknownPosition = ... # type: QAudioFormat.AudioChannelPosition FrontLeft = ... # type: QAudioFormat.AudioChannelPosition @@ -173,6 +183,10 @@ class QAudioFormat(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QAudioFormat") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @staticmethod + def defaultChannelConfigForChannelCount(channelCount: int) -> "QAudioFormat.ChannelConfig": ... def normalizedSampleValue(self, sample: PyQt6.sip.voidptr) -> float: ... def bytesPerSample(self) -> int: ... def sampleFormat(self) -> "QAudioFormat.SampleFormat": ... @@ -198,6 +212,7 @@ class QAudioInput(QtCore.QObject): def __init__(self, deviceInfo: QAudioDevice, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + mutedChanged: typing.ClassVar[QtCore.pyqtSignal] volumeChanged: typing.ClassVar[QtCore.pyqtSignal] deviceChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -213,6 +228,7 @@ class QAudioOutput(QtCore.QObject): def __init__(self, device: QAudioDevice, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + mutedChanged: typing.ClassVar[QtCore.pyqtSignal] volumeChanged: typing.ClassVar[QtCore.pyqtSignal] deviceChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -228,6 +244,7 @@ class QAudioSink(QtCore.QObject): def __init__(self, audioDeviceInfo: QAudioDevice, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + stateChanged: typing.ClassVar[QtCore.pyqtSignal] def volume(self) -> float: ... def setVolume(self, a0: float) -> None: ... @@ -253,6 +270,7 @@ class QAudioSource(QtCore.QObject): def __init__(self, audioDeviceInfo: QAudioDevice, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + stateChanged: typing.ClassVar[QtCore.pyqtSignal] def state(self) -> QAudio.State: ... def error(self) -> QAudio.Error: ... @@ -281,6 +299,7 @@ class QCamera(QtCore.QObject): ManualExposureTime = ... # type: QCamera.Feature CustomFocusPoint = ... # type: QCamera.Feature FocusDistance = ... # type: QCamera.Feature + class WhiteBalanceMode(enum.Enum): WhiteBalanceAuto = ... # type: QCamera.WhiteBalanceMode WhiteBalanceManual = ... # type: QCamera.WhiteBalanceMode @@ -291,6 +310,7 @@ class QCamera(QtCore.QObject): WhiteBalanceFluorescent = ... # type: QCamera.WhiteBalanceMode WhiteBalanceFlash = ... # type: QCamera.WhiteBalanceMode WhiteBalanceSunset = ... # type: QCamera.WhiteBalanceMode + class ExposureMode(enum.Enum): ExposureAuto = ... # type: QCamera.ExposureMode ExposureManual = ... # type: QCamera.ExposureMode @@ -309,14 +329,17 @@ class QCamera(QtCore.QObject): ExposureParty = ... # type: QCamera.ExposureMode ExposureCandlelight = ... # type: QCamera.ExposureMode ExposureBarcode = ... # type: QCamera.ExposureMode + class TorchMode(enum.Enum): TorchOff = ... # type: QCamera.TorchMode TorchOn = ... # type: QCamera.TorchMode TorchAuto = ... # type: QCamera.TorchMode + class FlashMode(enum.Enum): FlashOff = ... # type: QCamera.FlashMode FlashOn = ... # type: QCamera.FlashMode FlashAuto = ... # type: QCamera.FlashMode + class FocusMode(enum.Enum): FocusModeAuto = ... # type: QCamera.FocusMode FocusModeAutoNear = ... # type: QCamera.FocusMode @@ -324,6 +347,7 @@ class QCamera(QtCore.QObject): FocusModeHyperfocal = ... # type: QCamera.FocusMode FocusModeInfinity = ... # type: QCamera.FocusMode FocusModeManual = ... # type: QCamera.FocusMode + class Error(enum.Enum): NoError = ... # type: QCamera.Error CameraError = ... # type: QCamera.Error @@ -333,6 +357,7 @@ class QCamera(QtCore.QObject): def __init__(self, position: "QCameraDevice.Position", parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + manualIsoSensitivityChanged: typing.ClassVar[QtCore.pyqtSignal] manualExposureTimeChanged: typing.ClassVar[QtCore.pyqtSignal] focusPointChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -418,6 +443,8 @@ class QCameraFormat(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QCameraFormat") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isNull(self) -> bool: ... def maxFrameRate(self) -> float: ... def minFrameRate(self) -> float: ... @@ -440,6 +467,8 @@ class QCameraDevice(PyQt6.sip.simplewrapper): def description(self) -> str: ... def id(self) -> QtCore.QByteArray: ... def isNull(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QImageCapture(QtCore.QObject): class FileFormat(enum.Enum): @@ -448,12 +477,14 @@ class QImageCapture(QtCore.QObject): PNG = ... # type: QImageCapture.FileFormat WebP = ... # type: QImageCapture.FileFormat Tiff = ... # type: QImageCapture.FileFormat + class Quality(enum.Enum): VeryLowQuality = ... # type: QImageCapture.Quality LowQuality = ... # type: QImageCapture.Quality NormalQuality = ... # type: QImageCapture.Quality HighQuality = ... # type: QImageCapture.Quality VeryHighQuality = ... # type: QImageCapture.Quality + class Error(enum.Enum): NoError = ... # type: QImageCapture.Error NotReadyError = ... # type: QImageCapture.Error @@ -462,6 +493,7 @@ class QImageCapture(QtCore.QObject): NotSupportedFeatureError = ... # type: QImageCapture.Error FormatError = ... # type: QImageCapture.Error def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + imageSaved: typing.ClassVar[QtCore.pyqtSignal] imageAvailable: typing.ClassVar[QtCore.pyqtSignal] imageCaptured: typing.ClassVar[QtCore.pyqtSignal] @@ -501,6 +533,7 @@ class QImageCapture(QtCore.QObject): class QMediaCaptureSession(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + audioOutputChanged: typing.ClassVar[QtCore.pyqtSignal] videoOutputChanged: typing.ClassVar[QtCore.pyqtSignal] recorderChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -524,6 +557,7 @@ class QMediaCaptureSession(QtCore.QObject): class QMediaDevices(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + videoInputsChanged: typing.ClassVar[QtCore.pyqtSignal] audioOutputsChanged: typing.ClassVar[QtCore.pyqtSignal] audioInputsChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -544,9 +578,11 @@ class QMediaFormat(PyQt6.sip.simplewrapper): class ResolveFlags(enum.Enum): NoFlags = ... # type: QMediaFormat.ResolveFlags RequiresVideo = ... # type: QMediaFormat.ResolveFlags + class ConversionMode(enum.Enum): Encode = ... # type: QMediaFormat.ConversionMode Decode = ... # type: QMediaFormat.ConversionMode + class VideoCodec(enum.Enum): Unspecified = ... # type: QMediaFormat.VideoCodec MPEG1 = ... # type: QMediaFormat.VideoCodec @@ -560,6 +596,7 @@ class QMediaFormat(PyQt6.sip.simplewrapper): Theora = ... # type: QMediaFormat.VideoCodec WMV = ... # type: QMediaFormat.VideoCodec MotionJPEG = ... # type: QMediaFormat.VideoCodec + class AudioCodec(enum.Enum): Unspecified = ... # type: QMediaFormat.AudioCodec MP3 = ... # type: QMediaFormat.AudioCodec @@ -573,6 +610,7 @@ class QMediaFormat(PyQt6.sip.simplewrapper): Wave = ... # type: QMediaFormat.AudioCodec WMA = ... # type: QMediaFormat.AudioCodec ALAC = ... # type: QMediaFormat.AudioCodec + class FileFormat(enum.Enum): UnspecifiedFormat = ... # type: QMediaFormat.FileFormat WMV = ... # type: QMediaFormat.FileFormat @@ -592,6 +630,8 @@ class QMediaFormat(PyQt6.sip.simplewrapper): def __init__(self, format: "QMediaFormat.FileFormat" = ...) -> None: ... @typing.overload def __init__(self, other: "QMediaFormat") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def resolveForEncoding(self, flags: "QMediaFormat.ResolveFlags") -> None: ... @staticmethod def videoCodecDescription(c: "QMediaFormat.VideoCodec") -> str: ... @@ -652,6 +692,10 @@ class QMediaMetaData(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QMediaMetaData") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @staticmethod + def keyType(key: "QMediaMetaData.Key") -> QtCore.QMetaType: ... @staticmethod def metaDataKeyToString(k: "QMediaMetaData.Key") -> str: ... def stringValue(self, k: "QMediaMetaData.Key") -> str: ... @@ -663,12 +707,14 @@ class QMediaPlayer(QtCore.QObject): class Loops(enum.IntEnum): Infinite = ... # type: QMediaPlayer.Loops Once = ... # type: QMediaPlayer.Loops + class Error(enum.Enum): NoError = ... # type: QMediaPlayer.Error ResourceError = ... # type: QMediaPlayer.Error FormatError = ... # type: QMediaPlayer.Error NetworkError = ... # type: QMediaPlayer.Error AccessDeniedError = ... # type: QMediaPlayer.Error + class MediaStatus(enum.Enum): NoMedia = ... # type: QMediaPlayer.MediaStatus LoadingMedia = ... # type: QMediaPlayer.MediaStatus @@ -678,11 +724,13 @@ class QMediaPlayer(QtCore.QObject): BufferedMedia = ... # type: QMediaPlayer.MediaStatus EndOfMedia = ... # type: QMediaPlayer.MediaStatus InvalidMedia = ... # type: QMediaPlayer.MediaStatus + class PlaybackState(enum.Enum): StoppedState = ... # type: QMediaPlayer.PlaybackState PlayingState = ... # type: QMediaPlayer.PlaybackState PausedState = ... # type: QMediaPlayer.PlaybackState def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + loopsChanged: typing.ClassVar[QtCore.pyqtSignal] def setLoops(self, loops: int) -> None: ... def loops(self) -> int: ... @@ -749,15 +797,18 @@ class QMediaRecorder(QtCore.QObject): FormatError = ... # type: QMediaRecorder.Error OutOfSpaceError = ... # type: QMediaRecorder.Error LocationNotWritable = ... # type: QMediaRecorder.Error + class RecorderState(enum.Enum): StoppedState = ... # type: QMediaRecorder.RecorderState RecordingState = ... # type: QMediaRecorder.RecorderState PausedState = ... # type: QMediaRecorder.RecorderState + class EncodingMode(enum.Enum): ConstantQualityEncoding = ... # type: QMediaRecorder.EncodingMode ConstantBitRateEncoding = ... # type: QMediaRecorder.EncodingMode AverageBitRateEncoding = ... # type: QMediaRecorder.EncodingMode TwoPassEncoding = ... # type: QMediaRecorder.EncodingMode + class Quality(enum.Enum): VeryLowQuality = ... # type: QMediaRecorder.Quality LowQuality = ... # type: QMediaRecorder.Quality @@ -765,6 +816,7 @@ class QMediaRecorder(QtCore.QObject): HighQuality = ... # type: QMediaRecorder.Quality VeryHighQuality = ... # type: QMediaRecorder.Quality def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + audioSampleRateChanged: typing.ClassVar[QtCore.pyqtSignal] audioChannelCountChanged: typing.ClassVar[QtCore.pyqtSignal] audioBitRateChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -822,12 +874,15 @@ class QMediaTimeRange(PyQt6.sip.simplewrapper): def __init__(self, start: int, end: int) -> None: ... @typing.overload def __init__(self, a0: "QMediaTimeRange.Interval") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def translated(self, offset: int) -> "QMediaTimeRange.Interval": ... def normalized(self) -> "QMediaTimeRange.Interval": ... def isNormal(self) -> bool: ... def contains(self, time: int) -> bool: ... def end(self) -> int: ... def start(self) -> int: ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -836,7 +891,19 @@ class QMediaTimeRange(PyQt6.sip.simplewrapper): def __init__(self, start: int, end: int) -> None: ... @typing.overload def __init__(self, range: "QMediaTimeRange") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, a0: "QMediaTimeRange", a1: "QMediaTimeRange") -> "QMediaTimeRange": ... + def __sub__(self, a0: "QMediaTimeRange", a1: "QMediaTimeRange") -> "QMediaTimeRange": ... def clear(self) -> None: ... + @typing.overload + def __isub__(self, a0: "QMediaTimeRange.Interval") -> "QMediaTimeRange": ... + @typing.overload + def __isub__(self, a0: "QMediaTimeRange") -> "QMediaTimeRange": ... + @typing.overload + def __iadd__(self, a0: "QMediaTimeRange.Interval") -> "QMediaTimeRange": ... + @typing.overload + def __iadd__(self, a0: "QMediaTimeRange") -> "QMediaTimeRange": ... def removeTimeRange(self, a0: "QMediaTimeRange") -> None: ... @typing.overload def removeInterval(self, interval: "QMediaTimeRange.Interval") -> None: ... @@ -860,12 +927,14 @@ class QSoundEffect(QtCore.QObject): Loading = ... # type: QSoundEffect.Status Ready = ... # type: QSoundEffect.Status Error = ... # type: QSoundEffect.Status + class Loop(enum.Enum): Infinite = ... # type: QSoundEffect.Loop @typing.overload def __init__(self, audioDevice: QAudioDevice, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + statusChanged: typing.ClassVar[QtCore.pyqtSignal] playingChanged: typing.ClassVar[QtCore.pyqtSignal] loadedChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -895,35 +964,51 @@ class QSoundEffect(QtCore.QObject): def supportedMimeTypes() -> typing.List[str]: ... class QVideoFrame(PyQt6.sip.simplewrapper): + class RotationAngle(enum.Enum): + Rotation0 = ... # type: QVideoFrame.RotationAngle + Rotation90 = ... # type: QVideoFrame.RotationAngle + Rotation180 = ... # type: QVideoFrame.RotationAngle + Rotation270 = ... # type: QVideoFrame.RotationAngle + class MapMode(enum.Enum): NotMapped = ... # type: QVideoFrame.MapMode ReadOnly = ... # type: QVideoFrame.MapMode WriteOnly = ... # type: QVideoFrame.MapMode ReadWrite = ... # type: QVideoFrame.MapMode + class HandleType(enum.Enum): NoHandle = ... # type: QVideoFrame.HandleType RhiTextureHandle = ... # type: QVideoFrame.HandleType + class PaintOptions(PyQt6.sip.simplewrapper): class PaintFlag(enum.Flag): DontDrawSubtitles = ... # type: QVideoFrame.PaintOptions.PaintFlag aspectRatioMode = ... # type: QtCore.Qt.AspectRatioMode backgroundColor = ... # type: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] paintFlags = ... # type: 'QVideoFrame.PaintOptions.PaintFlag' + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QVideoFrame.PaintOptions") -> None: ... + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, format: "QVideoFrameFormat") -> None: ... @typing.overload def __init__(self, other: "QVideoFrame") -> None: ... + def mirrored(self) -> bool: ... + def setMirrored(self, a0: bool) -> None: ... + def rotationAngle(self) -> "QVideoFrame.RotationAngle": ... + def setRotationAngle(self, a0: "QVideoFrame.RotationAngle") -> None: ... def paint(self, painter: QtGui.QPainter, rect: QtCore.QRectF, options: "QVideoFrame.PaintOptions") -> None: ... def setSubtitleText(self, text: str) -> None: ... def subtitleText(self) -> str: ... def toImage(self) -> QtGui.QImage: ... def surfaceFormat(self) -> "QVideoFrameFormat": ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def planeCount(self) -> int: ... def setEndTime(self, time: int) -> None: ... def endTime(self) -> int: ... @@ -946,6 +1031,28 @@ class QVideoFrame(PyQt6.sip.simplewrapper): def isValid(self) -> bool: ... class QVideoFrameFormat(PyQt6.sip.simplewrapper): + class ColorRange(enum.Enum): + ColorRange_Unknown = ... # type: QVideoFrameFormat.ColorRange + ColorRange_Video = ... # type: QVideoFrameFormat.ColorRange + ColorRange_Full = ... # type: QVideoFrameFormat.ColorRange + + class ColorTransfer(enum.Enum): + ColorTransfer_Unknown = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_BT709 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_BT601 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_Linear = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_Gamma22 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_Gamma28 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_ST2084 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_STD_B67 = ... # type: QVideoFrameFormat.ColorTransfer + + class ColorSpace(enum.Enum): + ColorSpace_Undefined = ... # type: QVideoFrameFormat.ColorSpace + ColorSpace_BT601 = ... # type: QVideoFrameFormat.ColorSpace + ColorSpace_BT709 = ... # type: QVideoFrameFormat.ColorSpace + ColorSpace_AdobeRgb = ... # type: QVideoFrameFormat.ColorSpace + ColorSpace_BT2020 = ... # type: QVideoFrameFormat.ColorSpace + class YCbCrColorSpace(enum.Enum): YCbCr_Undefined = ... # type: QVideoFrameFormat.YCbCrColorSpace YCbCr_BT601 = ... # type: QVideoFrameFormat.YCbCrColorSpace @@ -953,13 +1060,17 @@ class QVideoFrameFormat(PyQt6.sip.simplewrapper): YCbCr_xvYCC601 = ... # type: QVideoFrameFormat.YCbCrColorSpace YCbCr_xvYCC709 = ... # type: QVideoFrameFormat.YCbCrColorSpace YCbCr_JPEG = ... # type: QVideoFrameFormat.YCbCrColorSpace + YCbCr_BT2020 = ... # type: QVideoFrameFormat.YCbCrColorSpace + class Direction(enum.Enum): TopToBottom = ... # type: QVideoFrameFormat.Direction BottomToTop = ... # type: QVideoFrameFormat.Direction + class PixelFormat(enum.Enum): Format_Invalid = ... # type: QVideoFrameFormat.PixelFormat Format_YUV420P = ... # type: QVideoFrameFormat.PixelFormat Format_YUV422P = ... # type: QVideoFrameFormat.PixelFormat + Format_YUV420P10 = ... # type: QVideoFrameFormat.PixelFormat Format_YV12 = ... # type: QVideoFrameFormat.PixelFormat Format_UYVY = ... # type: QVideoFrameFormat.PixelFormat Format_YUYV = ... # type: QVideoFrameFormat.PixelFormat @@ -994,6 +1105,14 @@ class QVideoFrameFormat(PyQt6.sip.simplewrapper): def __init__(self, size: QtCore.QSize, pixelFormat: "QVideoFrameFormat.PixelFormat") -> None: ... @typing.overload def __init__(self, format: "QVideoFrameFormat") -> None: ... + def setColorRange(self, range: "QVideoFrameFormat.ColorRange") -> None: ... + def colorRange(self) -> "QVideoFrameFormat.ColorRange": ... + def setColorTransfer(self, colorTransfer: "QVideoFrameFormat.ColorTransfer") -> None: ... + def colorTransfer(self) -> "QVideoFrameFormat.ColorTransfer": ... + def setColorSpace(self, colorSpace: "QVideoFrameFormat.ColorSpace") -> None: ... + def colorSpace(self) -> "QVideoFrameFormat.ColorSpace": ... + @staticmethod + def pixelFormatToString(pixelFormat: "QVideoFrameFormat.PixelFormat") -> str: ... @staticmethod def imageFormatFromPixelFormat(format: "QVideoFrameFormat.PixelFormat") -> QtGui.QImage.Format: ... @staticmethod @@ -1018,9 +1137,15 @@ class QVideoFrameFormat(PyQt6.sip.simplewrapper): def frameSize(self) -> QtCore.QSize: ... def pixelFormat(self) -> "QVideoFrameFormat.PixelFormat": ... def isValid(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QVideoSink(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + videoSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + subtitleTextChanged: typing.ClassVar[QtCore.pyqtSignal] + videoFrameChanged: typing.ClassVar[QtCore.pyqtSignal] def videoFrame(self) -> QVideoFrame: ... def setVideoFrame(self, frame: QVideoFrame) -> None: ... def setSubtitleText(self, subtitle: str) -> None: ... diff --git a/PyQt6-stubs/QtMultimediaWidgets.pyi b/PyQt6-stubs/QtMultimediaWidgets.pyi index df34148..f4a7eeb 100644 --- a/PyQt6-stubs/QtMultimediaWidgets.pyi +++ b/PyQt6-stubs/QtMultimediaWidgets.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtMultimediaWidgets module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # diff --git a/PyQt6-stubs/QtNetwork.pyi b/PyQt6-stubs/QtNetwork.pyi index 597e813..cfefa50 100644 --- a/PyQt6-stubs/QtNetwork.pyi +++ b/PyQt6-stubs/QtNetwork.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtNetwork module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -66,6 +66,8 @@ class QNetworkCacheMetaData(PyQt6.sip.simplewrapper): def setUrl(self, url: QtCore.QUrl) -> None: ... def url(self) -> QtCore.QUrl: ... def isValid(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QAbstractNetworkCache(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @@ -82,11 +84,13 @@ class QAbstractSocket(QtCore.QIODevice): class PauseMode(enum.Flag): PauseNever = ... # type: QAbstractSocket.PauseMode PauseOnSslErrors = ... # type: QAbstractSocket.PauseMode + class BindFlag(enum.Flag): DefaultForPlatform = ... # type: QAbstractSocket.BindFlag ShareAddress = ... # type: QAbstractSocket.BindFlag DontShareAddress = ... # type: QAbstractSocket.BindFlag ReuseAddressHint = ... # type: QAbstractSocket.BindFlag + class SocketOption(enum.Enum): LowDelayOption = ... # type: QAbstractSocket.SocketOption KeepAliveOption = ... # type: QAbstractSocket.SocketOption @@ -96,6 +100,7 @@ class QAbstractSocket(QtCore.QIODevice): SendBufferSizeSocketOption = ... # type: QAbstractSocket.SocketOption ReceiveBufferSizeSocketOption = ... # type: QAbstractSocket.SocketOption PathMtuSocketOption = ... # type: QAbstractSocket.SocketOption + class SocketState(enum.Enum): UnconnectedState = ... # type: QAbstractSocket.SocketState HostLookupState = ... # type: QAbstractSocket.SocketState @@ -104,6 +109,7 @@ class QAbstractSocket(QtCore.QIODevice): BoundState = ... # type: QAbstractSocket.SocketState ListeningState = ... # type: QAbstractSocket.SocketState ClosingState = ... # type: QAbstractSocket.SocketState + class SocketError(enum.Enum): ConnectionRefusedError = ... # type: QAbstractSocket.SocketError RemoteHostClosedError = ... # type: QAbstractSocket.SocketError @@ -129,11 +135,13 @@ class QAbstractSocket(QtCore.QIODevice): SslInvalidUserDataError = ... # type: QAbstractSocket.SocketError TemporaryError = ... # type: QAbstractSocket.SocketError UnknownSocketError = ... # type: QAbstractSocket.SocketError + class NetworkLayerProtocol(enum.Enum): IPv4Protocol = ... # type: QAbstractSocket.NetworkLayerProtocol IPv6Protocol = ... # type: QAbstractSocket.NetworkLayerProtocol AnyIPProtocol = ... # type: QAbstractSocket.NetworkLayerProtocol UnknownNetworkLayerProtocol = ... # type: QAbstractSocket.NetworkLayerProtocol + class SocketType(enum.Enum): TcpSocket = ... # type: QAbstractSocket.SocketType UdpSocket = ... # type: QAbstractSocket.SocketType @@ -213,6 +221,8 @@ class QAuthenticator(PyQt6.sip.simplewrapper): def password(self) -> str: ... def setUser(self, user: str) -> None: ... def user(self) -> str: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QDnsDomainNameRecord(PyQt6.sip.simplewrapper): @typing.overload @@ -279,6 +289,7 @@ class QDnsLookup(QtCore.QObject): PTR = ... # type: QDnsLookup.Type SRV = ... # type: QDnsLookup.Type TXT = ... # type: QDnsLookup.Type + class Error(enum.Enum): NoError = ... # type: QDnsLookup.Error ResolverError = ... # type: QDnsLookup.Error @@ -294,6 +305,7 @@ class QDnsLookup(QtCore.QObject): def __init__(self, type: "QDnsLookup.Type", name: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, type: "QDnsLookup.Type", name: str, nameserver: typing.Union["QHostAddress", "QHostAddress.SpecialAddress"], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + nameserverChanged: typing.ClassVar[QtCore.pyqtSignal] def setNameserver(self, nameserver: typing.Union["QHostAddress", "QHostAddress.SpecialAddress"]) -> None: ... def nameserver(self) -> "QHostAddress": ... @@ -325,6 +337,7 @@ class QHostAddress(PyQt6.sip.simplewrapper): ConvertLocalHost = ... # type: QHostAddress.ConversionModeFlag TolerantConversion = ... # type: QHostAddress.ConversionModeFlag StrictConversion = ... # type: QHostAddress.ConversionModeFlag + class SpecialAddress(enum.Enum): Null = ... # type: QHostAddress.SpecialAddress Broadcast = ... # type: QHostAddress.SpecialAddress @@ -363,6 +376,8 @@ class QHostAddress(PyQt6.sip.simplewrapper): def __hash__(self) -> int: ... def clear(self) -> None: ... def isNull(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def setScopeId(self, id: str) -> None: ... def scopeId(self) -> str: ... def toString(self) -> str: ... @@ -418,6 +433,8 @@ class QHstsPolicy(PyQt6.sip.simplewrapper): def __init__(self, expiry: typing.Union[QtCore.QDateTime, datetime.datetime], flags: "QHstsPolicy.PolicyFlag", host: str, mode: QtCore.QUrl.ParsingMode = ...) -> None: ... @typing.overload def __init__(self, rhs: "QHstsPolicy") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def isExpired(self) -> bool: ... def includesSubDomains(self) -> bool: ... def setIncludesSubDomains(self, include: bool) -> None: ... @@ -432,6 +449,8 @@ class QHttp2Configuration(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QHttp2Configuration") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def swap(self, other: "QHttp2Configuration") -> None: ... def maxFrameSize(self) -> int: ... def setMaxFrameSize(self, size: int) -> bool: ... @@ -451,9 +470,11 @@ class QHttpPart(PyQt6.sip.simplewrapper): def __init__(self, other: "QHttpPart") -> None: ... def swap(self, other: "QHttpPart") -> None: ... def setBodyDevice(self, device: QtCore.QIODevice) -> None: ... - def setBody(self, body: QtCore.QByteArray) -> None: ... - def setRawHeader(self, headerName: QtCore.QByteArray, headerValue: QtCore.QByteArray) -> None: ... + def setBody(self, body: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], headerValue: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... def setHeader(self, header: "QNetworkRequest.KnownHeaders", value: typing.Any) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QHttpMultiPart(QtCore.QObject): class ContentType(enum.Enum): @@ -465,7 +486,7 @@ class QHttpMultiPart(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, contentType: "QHttpMultiPart.ContentType", parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - def setBoundary(self, boundary: QtCore.QByteArray) -> None: ... + def setBoundary(self, boundary: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... def boundary(self) -> QtCore.QByteArray: ... def setContentType(self, contentType: "QHttpMultiPart.ContentType") -> None: ... def append(self, httpPart: QHttpPart) -> None: ... @@ -478,6 +499,8 @@ class QLocalServer(QtCore.QObject): WorldAccessOption = ... # type: QLocalServer.SocketOption AbstractNamespaceOption = ... # type: QLocalServer.SocketOption def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def listenBacklogSize(self) -> int: ... + def setListenBacklogSize(self, size: int) -> None: ... def socketDescriptor(self) -> PyQt6.sip.voidptr: ... def socketOptions(self) -> "QLocalServer.SocketOption": ... def setSocketOptions(self, options: "QLocalServer.SocketOption") -> None: ... @@ -505,11 +528,13 @@ class QLocalSocket(QtCore.QIODevice): class SocketOption(enum.Flag): NoOptions = ... # type: QLocalSocket.SocketOption AbstractNamespaceOption = ... # type: QLocalSocket.SocketOption + class LocalSocketState(enum.Enum): UnconnectedState = ... # type: QLocalSocket.LocalSocketState ConnectingState = ... # type: QLocalSocket.LocalSocketState ConnectedState = ... # type: QLocalSocket.LocalSocketState ClosingState = ... # type: QLocalSocket.LocalSocketState + class LocalSocketError(enum.Enum): ConnectionRefusedError = ... # type: QLocalSocket.LocalSocketError PeerClosedError = ... # type: QLocalSocket.LocalSocketError @@ -523,6 +548,7 @@ class QLocalSocket(QtCore.QIODevice): OperationError = ... # type: QLocalSocket.LocalSocketError UnknownSocketError = ... # type: QLocalSocket.LocalSocketError def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def readLineData(self, maxlen: int) -> bytes: ... def socketOptions(self) -> "QLocalSocket.SocketOption": ... def setSocketOptions(self, option: "QLocalSocket.SocketOption") -> None: ... def skipData(self, maxSize: int) -> int: ... @@ -611,13 +637,13 @@ class QNetworkAccessManager(QtCore.QObject): @typing.overload def put(self, request: "QNetworkRequest", data: QtCore.QIODevice) -> "QNetworkReply": ... @typing.overload - def put(self, request: "QNetworkRequest", data: QtCore.QByteArray) -> "QNetworkReply": ... + def put(self, request: "QNetworkRequest", data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> "QNetworkReply": ... @typing.overload def put(self, request: "QNetworkRequest", multiPart: QHttpMultiPart) -> "QNetworkReply": ... @typing.overload def post(self, request: "QNetworkRequest", data: QtCore.QIODevice) -> "QNetworkReply": ... @typing.overload - def post(self, request: "QNetworkRequest", data: QtCore.QByteArray) -> "QNetworkReply": ... + def post(self, request: "QNetworkRequest", data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> "QNetworkReply": ... @typing.overload def post(self, request: "QNetworkRequest", multiPart: QHttpMultiPart) -> "QNetworkReply": ... def get(self, request: "QNetworkRequest") -> "QNetworkReply": ... @@ -633,11 +659,12 @@ class QNetworkCookie(PyQt6.sip.simplewrapper): None_ = ... # type: QNetworkCookie.SameSite Lax = ... # type: QNetworkCookie.SameSite Strict = ... # type: QNetworkCookie.SameSite + class RawForm(enum.Enum): NameAndValueOnly = ... # type: QNetworkCookie.RawForm Full = ... # type: QNetworkCookie.RawForm @typing.overload - def __init__(self, name: QtCore.QByteArray = ..., value: QtCore.QByteArray = ...) -> None: ... + def __init__(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray] = ..., value: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... @typing.overload def __init__(self, other: "QNetworkCookie") -> None: ... def setSameSitePolicy(self, sameSite: "QNetworkCookie.SameSite") -> None: ... @@ -647,8 +674,10 @@ class QNetworkCookie(PyQt6.sip.simplewrapper): def swap(self, other: "QNetworkCookie") -> None: ... def setHttpOnly(self, enable: bool) -> None: ... def isHttpOnly(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... @staticmethod - def parseCookies(cookieString: QtCore.QByteArray) -> typing.List["QNetworkCookie"]: ... + def parseCookies(cookieString: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List["QNetworkCookie"]: ... def toRawForm(self, form: "QNetworkCookie.RawForm" = ...) -> QtCore.QByteArray: ... def setValue(self, value: QtCore.QByteArray) -> None: ... def value(self) -> QtCore.QByteArray: ... @@ -718,15 +747,36 @@ class QNetworkDiskCache(QAbstractNetworkCache): def cacheDirectory(self) -> str: ... class QNetworkInformation(QtCore.QObject): + class TransportMedium(enum.Enum): + Unknown = ... # type: QNetworkInformation.TransportMedium + Ethernet = ... # type: QNetworkInformation.TransportMedium + Cellular = ... # type: QNetworkInformation.TransportMedium + WiFi = ... # type: QNetworkInformation.TransportMedium + Bluetooth = ... # type: QNetworkInformation.TransportMedium + class Feature(enum.Enum): Reachability = ... # type: QNetworkInformation.Feature CaptivePortal = ... # type: QNetworkInformation.Feature + TransportMedium = ... # type: QNetworkInformation.Feature + Metered = ... # type: QNetworkInformation.Feature + class Reachability(enum.Enum): Unknown = ... # type: QNetworkInformation.Reachability Disconnected = ... # type: QNetworkInformation.Reachability Local = ... # type: QNetworkInformation.Reachability Site = ... # type: QNetworkInformation.Reachability Online = ... # type: QNetworkInformation.Reachability + @staticmethod + def loadBackendByFeatures(features: "QNetworkInformation.Feature") -> bool: ... + @staticmethod + def loadBackendByName(backend: str) -> bool: ... + isMeteredChanged: typing.ClassVar[QtCore.pyqtSignal] + transportMediumChanged: typing.ClassVar[QtCore.pyqtSignal] + @staticmethod + def loadDefaultBackend() -> bool: ... + def supportedFeatures(self) -> "QNetworkInformation.Feature": ... + def isMetered(self) -> bool: ... + def transportMedium(self) -> "QNetworkInformation.TransportMedium": ... isBehindCaptivePortalChanged: typing.ClassVar[QtCore.pyqtSignal] def isBehindCaptivePortal(self) -> bool: ... reachabilityChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -765,6 +815,8 @@ class QNetworkAddressEntry(PyQt6.sip.simplewrapper): def swap(self, other: "QNetworkAddressEntry") -> None: ... def setPrefixLength(self, length: int) -> None: ... def prefixLength(self) -> int: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def setBroadcast(self, newBroadcast: typing.Union[QHostAddress, QHostAddress.SpecialAddress]) -> None: ... def broadcast(self) -> QHostAddress: ... def setNetmask(self, newNetmask: typing.Union[QHostAddress, QHostAddress.SpecialAddress]) -> None: ... @@ -789,6 +841,7 @@ class QNetworkInterface(PyQt6.sip.simplewrapper): SixLoWPAN = ... # type: QNetworkInterface.InterfaceType Ieee80216 = ... # type: QNetworkInterface.InterfaceType Ieee1394 = ... # type: QNetworkInterface.InterfaceType + class InterfaceFlag(enum.Flag): IsUp = ... # type: QNetworkInterface.InterfaceFlag IsRunning = ... # type: QNetworkInterface.InterfaceFlag @@ -832,6 +885,7 @@ class QNetworkProxy(PyQt6.sip.simplewrapper): HostNameLookupCapability = ... # type: QNetworkProxy.Capability SctpTunnelingCapability = ... # type: QNetworkProxy.Capability SctpListeningCapability = ... # type: QNetworkProxy.Capability + class ProxyType(enum.Enum): DefaultProxy = ... # type: QNetworkProxy.ProxyType Socks5Proxy = ... # type: QNetworkProxy.ProxyType @@ -845,15 +899,17 @@ class QNetworkProxy(PyQt6.sip.simplewrapper): def __init__(self, type: "QNetworkProxy.ProxyType", hostName: str = ..., port: int = ..., user: str = ..., password: str = ...) -> None: ... @typing.overload def __init__(self, other: "QNetworkProxy") -> None: ... - def setRawHeader(self, headerName: QtCore.QByteArray, value: QtCore.QByteArray) -> None: ... - def rawHeader(self, headerName: QtCore.QByteArray) -> QtCore.QByteArray: ... + def setRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def rawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ... def rawHeaderList(self) -> typing.List[QtCore.QByteArray]: ... - def hasRawHeader(self, headerName: QtCore.QByteArray) -> bool: ... + def hasRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... def setHeader(self, header: "QNetworkRequest.KnownHeaders", value: typing.Any) -> None: ... def header(self, header: "QNetworkRequest.KnownHeaders") -> typing.Any: ... def swap(self, other: "QNetworkProxy") -> None: ... def capabilities(self) -> "QNetworkProxy.Capability": ... def setCapabilities(self, capab: "QNetworkProxy.Capability") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isTransparentProxy(self) -> bool: ... def isCachingProxy(self) -> bool: ... @staticmethod @@ -902,6 +958,8 @@ class QNetworkProxyQuery(PyQt6.sip.simplewrapper): def peerPort(self) -> int: ... def setQueryType(self, type: "QNetworkProxyQuery.QueryType") -> None: ... def queryType(self) -> "QNetworkProxyQuery.QueryType": ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QNetworkProxyFactory(PyQt6.sip.wrapper): @typing.overload @@ -957,6 +1015,9 @@ class QNetworkReply(QtCore.QIODevice): TooManyRedirectsError = ... # type: QNetworkReply.NetworkError InsecureRedirectError = ... # type: QNetworkReply.NetworkError def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + requestSent: typing.ClassVar[QtCore.pyqtSignal] + socketStartedConnecting: typing.ClassVar[QtCore.pyqtSignal] def ignoreSslErrorsImplementation(self, a0: typing.Iterable["QSslError"]) -> None: ... def setSslConfigurationImplementation(self, a0: "QSslConfiguration") -> None: ... def sslConfigurationImplementation(self, a0: "QSslConfiguration") -> None: ... @@ -965,7 +1026,7 @@ class QNetworkReply(QtCore.QIODevice): def isFinished(self) -> bool: ... def setFinished(self, finished: bool) -> None: ... def setAttribute(self, code: "QNetworkRequest.Attribute", value: typing.Any) -> None: ... - def setRawHeader(self, headerName: QtCore.QByteArray, value: QtCore.QByteArray) -> None: ... + def setRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... def setHeader(self, header: "QNetworkRequest.KnownHeaders", value: typing.Any) -> None: ... def setUrl(self, url: QtCore.QUrl) -> None: ... def setError(self, errorCode: "QNetworkReply.NetworkError", errorString: str) -> None: ... @@ -989,9 +1050,9 @@ class QNetworkReply(QtCore.QIODevice): def setSslConfiguration(self, configuration: "QSslConfiguration") -> None: ... def sslConfiguration(self) -> "QSslConfiguration": ... def attribute(self, code: "QNetworkRequest.Attribute") -> typing.Any: ... - def rawHeader(self, headerName: QtCore.QByteArray) -> QtCore.QByteArray: ... + def rawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ... def rawHeaderList(self) -> typing.List[QtCore.QByteArray]: ... - def hasRawHeader(self, headerName: QtCore.QByteArray) -> bool: ... + def hasRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... def header(self, header: "QNetworkRequest.KnownHeaders") -> typing.Any: ... def url(self) -> QtCore.QUrl: ... def error(self) -> "QNetworkReply.NetworkError": ... @@ -1007,23 +1068,28 @@ class QNetworkReply(QtCore.QIODevice): class QNetworkRequest(PyQt6.sip.simplewrapper): class TransferTimeoutConstant(enum.Enum): DefaultTransferTimeoutConstant = ... # type: QNetworkRequest.TransferTimeoutConstant + class RedirectPolicy(enum.Enum): ManualRedirectPolicy = ... # type: QNetworkRequest.RedirectPolicy NoLessSafeRedirectPolicy = ... # type: QNetworkRequest.RedirectPolicy SameOriginRedirectPolicy = ... # type: QNetworkRequest.RedirectPolicy UserVerifiedRedirectPolicy = ... # type: QNetworkRequest.RedirectPolicy + class Priority(enum.Enum): HighPriority = ... # type: QNetworkRequest.Priority NormalPriority = ... # type: QNetworkRequest.Priority LowPriority = ... # type: QNetworkRequest.Priority + class LoadControl(enum.Enum): Automatic = ... # type: QNetworkRequest.LoadControl Manual = ... # type: QNetworkRequest.LoadControl + class CacheLoadControl(enum.Enum): AlwaysNetwork = ... # type: QNetworkRequest.CacheLoadControl PreferNetwork = ... # type: QNetworkRequest.CacheLoadControl PreferCache = ... # type: QNetworkRequest.CacheLoadControl AlwaysCache = ... # type: QNetworkRequest.CacheLoadControl + class Attribute(enum.Enum): HttpStatusCodeAttribute = ... # type: QNetworkRequest.Attribute HttpReasonPhraseAttribute = ... # type: QNetworkRequest.Attribute @@ -1047,8 +1113,11 @@ class QNetworkRequest(PyQt6.sip.simplewrapper): RedirectPolicyAttribute = ... # type: QNetworkRequest.Attribute Http2DirectAttribute = ... # type: QNetworkRequest.Attribute AutoDeleteReplyOnFinishAttribute = ... # type: QNetworkRequest.Attribute + ConnectionCacheExpiryTimeoutSecondsAttribute = ... # type: QNetworkRequest.Attribute + Http2CleartextAllowedAttribute = ... # type: QNetworkRequest.Attribute User = ... # type: QNetworkRequest.Attribute UserMax = ... # type: QNetworkRequest.Attribute + class KnownHeaders(enum.Enum): ContentTypeHeader = ... # type: QNetworkRequest.KnownHeaders ContentLengthHeader = ... # type: QNetworkRequest.KnownHeaders @@ -1084,14 +1153,16 @@ class QNetworkRequest(PyQt6.sip.simplewrapper): def priority(self) -> "QNetworkRequest.Priority": ... def originatingObject(self) -> QtCore.QObject: ... def setOriginatingObject(self, object: QtCore.QObject) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def setSslConfiguration(self, configuration: "QSslConfiguration") -> None: ... def sslConfiguration(self) -> "QSslConfiguration": ... def setAttribute(self, code: "QNetworkRequest.Attribute", value: typing.Any) -> None: ... def attribute(self, code: "QNetworkRequest.Attribute", defaultValue: typing.Any = ...) -> typing.Any: ... - def setRawHeader(self, headerName: QtCore.QByteArray, value: QtCore.QByteArray) -> None: ... - def rawHeader(self, headerName: QtCore.QByteArray) -> QtCore.QByteArray: ... + def setRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def rawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ... def rawHeaderList(self) -> typing.List[QtCore.QByteArray]: ... - def hasRawHeader(self, headerName: QtCore.QByteArray) -> bool: ... + def hasRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... def setHeader(self, header: "QNetworkRequest.KnownHeaders", value: typing.Any) -> None: ... def header(self, header: "QNetworkRequest.KnownHeaders") -> typing.Any: ... def setUrl(self, url: QtCore.QUrl) -> None: ... @@ -1102,6 +1173,8 @@ class QOcspResponse(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QOcspResponse") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def swap(self, other: "QOcspResponse") -> None: ... def subject(self) -> "QSslCertificate": ... @@ -1122,6 +1195,7 @@ class QSsl(PyQt6.sip.simplewrapper): Psk = ... # type: QSsl.SupportedFeature SessionTicket = ... # type: QSsl.SupportedFeature Alerts = ... # type: QSsl.SupportedFeature + class ImplementedClass(enum.Enum): Key = ... # type: QSsl.ImplementedClass Certificate = ... # type: QSsl.ImplementedClass @@ -1130,6 +1204,7 @@ class QSsl(PyQt6.sip.simplewrapper): EllipticCurve = ... # type: QSsl.ImplementedClass Dtls = ... # type: QSsl.ImplementedClass DtlsCookie = ... # type: QSsl.ImplementedClass + class AlertType(enum.Enum): CloseNotify = ... # type: QSsl.AlertType UnexpectedMessage = ... # type: QSsl.AlertType @@ -1165,10 +1240,12 @@ class QSsl(PyQt6.sip.simplewrapper): CertificateRequired = ... # type: QSsl.AlertType NoApplicationProtocol = ... # type: QSsl.AlertType UnknownAlertMessage = ... # type: QSsl.AlertType + class AlertLevel(enum.Enum): Warning = ... # type: QSsl.AlertLevel Fatal = ... # type: QSsl.AlertLevel Unknown = ... # type: QSsl.AlertLevel + class SslOption(enum.Flag): SslOptionDisableEmptyFragments = ... # type: QSsl.SslOption SslOptionDisableSessionTickets = ... # type: QSsl.SslOption @@ -1178,6 +1255,7 @@ class QSsl(PyQt6.sip.simplewrapper): SslOptionDisableSessionSharing = ... # type: QSsl.SslOption SslOptionDisableSessionPersistence = ... # type: QSsl.SslOption SslOptionDisableServerCipherPreference = ... # type: QSsl.SslOption + class SslProtocol(enum.Enum): UnknownProtocol = ... # type: QSsl.SslProtocol TlsV1_0 = ... # type: QSsl.SslProtocol @@ -1194,19 +1272,23 @@ class QSsl(PyQt6.sip.simplewrapper): DtlsV1_2OrLater = ... # type: QSsl.SslProtocol TlsV1_3 = ... # type: QSsl.SslProtocol TlsV1_3OrLater = ... # type: QSsl.SslProtocol + class AlternativeNameEntryType(enum.Enum): EmailEntry = ... # type: QSsl.AlternativeNameEntryType DnsEntry = ... # type: QSsl.AlternativeNameEntryType IpAddressEntry = ... # type: QSsl.AlternativeNameEntryType + class KeyAlgorithm(enum.Enum): Opaque = ... # type: QSsl.KeyAlgorithm Rsa = ... # type: QSsl.KeyAlgorithm Dsa = ... # type: QSsl.KeyAlgorithm Ec = ... # type: QSsl.KeyAlgorithm Dh = ... # type: QSsl.KeyAlgorithm + class EncodingFormat(enum.Enum): Pem = ... # type: QSsl.EncodingFormat Der = ... # type: QSsl.EncodingFormat + class KeyType(enum.Enum): PrivateKey = ... # type: QSsl.KeyType PublicKey = ... # type: QSsl.KeyType @@ -1216,6 +1298,7 @@ class QSslCertificate(PyQt6.sip.simplewrapper): RegularExpression = ... # type: QSslCertificate.PatternSyntax Wildcard = ... # type: QSslCertificate.PatternSyntax FixedString = ... # type: QSslCertificate.PatternSyntax + class SubjectInfo(enum.Enum): Organization = ... # type: QSslCertificate.SubjectInfo CommonName = ... # type: QSslCertificate.SubjectInfo @@ -1229,13 +1312,13 @@ class QSslCertificate(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, device: QtCore.QIODevice, format: QSsl.EncodingFormat = ...) -> None: ... @typing.overload - def __init__(self, data: QtCore.QByteArray = ..., format: QSsl.EncodingFormat = ...) -> None: ... + def __init__(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray] = ..., format: QSsl.EncodingFormat = ...) -> None: ... @typing.overload def __init__(self, other: "QSslCertificate") -> None: ... def subjectDisplayName(self) -> str: ... def issuerDisplayName(self) -> str: ... @staticmethod - def importPkcs12(device: QtCore.QIODevice, key: "QSslKey", certificate: "QSslCertificate", caCertificates: typing.Optional[typing.Iterable["QSslCertificate"]] = ..., passPhrase: QtCore.QByteArray = ...) -> bool: ... + def importPkcs12(device: QtCore.QIODevice, key: "QSslKey", certificate: "QSslCertificate", caCertificates: typing.Optional[typing.Iterable["QSslCertificate"]] = ..., passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> bool: ... def __hash__(self) -> int: ... def isSelfSigned(self) -> bool: ... @staticmethod @@ -1248,7 +1331,7 @@ class QSslCertificate(PyQt6.sip.simplewrapper): def swap(self, other: "QSslCertificate") -> None: ... def handle(self) -> PyQt6.sip.voidptr: ... @staticmethod - def fromData(data: QtCore.QByteArray, format: QSsl.EncodingFormat = ...) -> typing.List["QSslCertificate"]: ... + def fromData(data: typing.Union[QtCore.QByteArray, bytes, bytearray], format: QSsl.EncodingFormat = ...) -> typing.List["QSslCertificate"]: ... @staticmethod def fromDevice(device: QtCore.QIODevice, format: QSsl.EncodingFormat = ...) -> typing.List["QSslCertificate"]: ... @staticmethod @@ -1262,16 +1345,18 @@ class QSslCertificate(PyQt6.sip.simplewrapper): @typing.overload def subjectInfo(self, info: "QSslCertificate.SubjectInfo") -> typing.List[str]: ... @typing.overload - def subjectInfo(self, attribute: QtCore.QByteArray) -> typing.List[str]: ... + def subjectInfo(self, attribute: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[str]: ... @typing.overload def issuerInfo(self, info: "QSslCertificate.SubjectInfo") -> typing.List[str]: ... @typing.overload - def issuerInfo(self, attribute: QtCore.QByteArray) -> typing.List[str]: ... + def issuerInfo(self, attribute: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[str]: ... def digest(self, algorithm: QtCore.QCryptographicHash.Algorithm = ...) -> QtCore.QByteArray: ... def serialNumber(self) -> QtCore.QByteArray: ... def version(self) -> QtCore.QByteArray: ... def clear(self) -> None: ... def isNull(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QSslCertificateExtension(PyQt6.sip.simplewrapper): @typing.overload @@ -1304,6 +1389,8 @@ class QSslCipher(PyQt6.sip.simplewrapper): def supportedBits(self) -> int: ... def name(self) -> str: ... def isNull(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QSslConfiguration(PyQt6.sip.simplewrapper): class NextProtocolNegotiationStatus(enum.Enum): @@ -1311,10 +1398,17 @@ class QSslConfiguration(PyQt6.sip.simplewrapper): NextProtocolNegotiationNegotiated = ... # type: QSslConfiguration.NextProtocolNegotiationStatus NextProtocolNegotiationUnsupported = ... # type: QSslConfiguration.NextProtocolNegotiationStatus NextProtocolHttp1_1 = ... # type: bytes + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QSslConfiguration") -> None: ... + @staticmethod + def setDefaultDtlsConfiguration(configuration: "QSslConfiguration") -> None: ... + @staticmethod + def defaultDtlsConfiguration() -> "QSslConfiguration": ... + def setDtlsCookieVerificationEnabled(self, enable: bool) -> None: ... + def dtlsCookieVerificationEnabled(self) -> bool: ... def setMissingCertificateIsFatal(self, cannotRecover: bool) -> None: ... def missingCertificateIsFatal(self) -> bool: ... def setHandshakeMustInterruptOnError(self, interrupt: bool) -> None: ... @@ -1327,11 +1421,11 @@ class QSslConfiguration(PyQt6.sip.simplewrapper): def ocspStaplingEnabled(self) -> bool: ... def setOcspStaplingEnabled(self, enable: bool) -> None: ... def setBackendConfiguration(self, backendConfiguration: typing.Dict[QtCore.QByteArray, typing.Any] = ...) -> None: ... - def setBackendConfigurationOption(self, name: QtCore.QByteArray, value: typing.Any) -> None: ... + def setBackendConfigurationOption(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Any) -> None: ... def backendConfiguration(self) -> typing.Dict[QtCore.QByteArray, typing.Any]: ... def setDiffieHellmanParameters(self, dhparams: "QSslDiffieHellmanParameters") -> None: ... def diffieHellmanParameters(self) -> "QSslDiffieHellmanParameters": ... - def setPreSharedKeyIdentityHint(self, hint: QtCore.QByteArray) -> None: ... + def setPreSharedKeyIdentityHint(self, hint: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... def preSharedKeyIdentityHint(self) -> QtCore.QByteArray: ... def ephemeralServerKey(self) -> "QSslKey": ... @staticmethod @@ -1348,13 +1442,15 @@ class QSslConfiguration(PyQt6.sip.simplewrapper): def allowedNextProtocols(self) -> typing.List[QtCore.QByteArray]: ... def setAllowedNextProtocols(self, protocols: typing.Iterable[QtCore.QByteArray]) -> None: ... def sessionTicketLifeTimeHint(self) -> int: ... - def setSessionTicket(self, sessionTicket: QtCore.QByteArray) -> None: ... + def setSessionTicket(self, sessionTicket: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... def sessionTicket(self) -> QtCore.QByteArray: ... def setLocalCertificateChain(self, localChain: typing.Iterable[QSslCertificate]) -> None: ... def localCertificateChain(self) -> typing.List[QSslCertificate]: ... def swap(self, other: "QSslConfiguration") -> None: ... def testSslOption(self, option: QSsl.SslOption) -> bool: ... def setSslOption(self, option: QSsl.SslOption, on: bool) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... @staticmethod def setDefaultConfiguration(configuration: "QSslConfiguration") -> None: ... @staticmethod @@ -1390,6 +1486,8 @@ class QSslDiffieHellmanParameters(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QSslDiffieHellmanParameters") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def errorString(self) -> str: ... def error(self) -> "QSslDiffieHellmanParameters.Error": ... @@ -1397,7 +1495,7 @@ class QSslDiffieHellmanParameters(PyQt6.sip.simplewrapper): def isEmpty(self) -> bool: ... @typing.overload @staticmethod - def fromEncoded(encoded: QtCore.QByteArray, encoding: QSsl.EncodingFormat = ...) -> "QSslDiffieHellmanParameters": ... + def fromEncoded(encoded: typing.Union[QtCore.QByteArray, bytes, bytearray], encoding: QSsl.EncodingFormat = ...) -> "QSslDiffieHellmanParameters": ... @typing.overload @staticmethod def fromEncoded(device: QtCore.QIODevice, encoding: QSsl.EncodingFormat = ...) -> "QSslDiffieHellmanParameters": ... @@ -1410,6 +1508,8 @@ class QSslEllipticCurve(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QSslEllipticCurve") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def isTlsNamedCurve(self) -> bool: ... def isValid(self) -> bool: ... @@ -1470,6 +1570,8 @@ class QSslError(PyQt6.sip.simplewrapper): def __init__(self, other: "QSslError") -> None: ... def __hash__(self) -> int: ... def swap(self, other: "QSslError") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def certificate(self) -> QSslCertificate: ... def errorString(self) -> str: ... def error(self) -> "QSslError.SslError": ... @@ -1486,9 +1588,11 @@ class QSslKey(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, other: "QSslKey") -> None: ... def swap(self, other: "QSslKey") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def handle(self) -> PyQt6.sip.voidptr: ... - def toDer(self, passPhrase: QtCore.QByteArray = ...) -> QtCore.QByteArray: ... - def toPem(self, passPhrase: QtCore.QByteArray = ...) -> QtCore.QByteArray: ... + def toDer(self, passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> QtCore.QByteArray: ... + def toPem(self, passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> QtCore.QByteArray: ... def algorithm(self) -> QSsl.KeyAlgorithm: ... def type(self) -> QSsl.KeyType: ... def length(self) -> int: ... @@ -1500,15 +1604,62 @@ class QSslPreSharedKeyAuthenticator(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, authenticator: "QSslPreSharedKeyAuthenticator") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def maximumPreSharedKeyLength(self) -> int: ... def preSharedKey(self) -> QtCore.QByteArray: ... - def setPreSharedKey(self, preSharedKey: QtCore.QByteArray) -> None: ... + def setPreSharedKey(self, preSharedKey: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... def maximumIdentityLength(self) -> int: ... def identity(self) -> QtCore.QByteArray: ... - def setIdentity(self, identity: QtCore.QByteArray) -> None: ... + def setIdentity(self, identity: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... def identityHint(self) -> QtCore.QByteArray: ... def swap(self, authenticator: "QSslPreSharedKeyAuthenticator") -> None: ... +class QTcpServer(QtCore.QObject): + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + pendingConnectionAvailable: typing.ClassVar[QtCore.pyqtSignal] + def listenBacklogSize(self) -> int: ... + def setListenBacklogSize(self, size: int) -> None: ... + acceptError: typing.ClassVar[QtCore.pyqtSignal] + newConnection: typing.ClassVar[QtCore.pyqtSignal] + def addPendingConnection(self, socket: "QTcpSocket") -> None: ... + def incomingConnection(self, handle: PyQt6.sip.voidptr) -> None: ... + def resumeAccepting(self) -> None: ... + def pauseAccepting(self) -> None: ... + def proxy(self) -> QNetworkProxy: ... + def setProxy(self, networkProxy: QNetworkProxy) -> None: ... + def errorString(self) -> str: ... + def serverError(self) -> QAbstractSocket.SocketError: ... + def nextPendingConnection(self) -> "QTcpSocket": ... + def hasPendingConnections(self) -> bool: ... + def waitForNewConnection(self, msecs: int = ...) -> typing.Tuple[bool, bool]: ... + def setSocketDescriptor(self, socketDescriptor: PyQt6.sip.voidptr) -> bool: ... + def socketDescriptor(self) -> PyQt6.sip.voidptr: ... + def serverAddress(self) -> QHostAddress: ... + def serverPort(self) -> int: ... + def maxPendingConnections(self) -> int: ... + def setMaxPendingConnections(self, numConnections: int) -> None: ... + def isListening(self) -> bool: ... + def close(self) -> None: ... + def listen(self, address: typing.Union[QHostAddress, QHostAddress.SpecialAddress] = ..., port: int = ...) -> bool: ... + +class QSslServer(QTcpServer): + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def incomingConnection(self, socket: PyQt6.sip.voidptr) -> None: ... + startedEncryptionHandshake: typing.ClassVar[QtCore.pyqtSignal] + handshakeInterruptedOnError: typing.ClassVar[QtCore.pyqtSignal] + alertReceived: typing.ClassVar[QtCore.pyqtSignal] + alertSent: typing.ClassVar[QtCore.pyqtSignal] + preSharedKeyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + peerVerifyError: typing.ClassVar[QtCore.pyqtSignal] + sslErrors: typing.ClassVar[QtCore.pyqtSignal] + def handshakeTimeout(self) -> int: ... + def setHandshakeTimeout(self, timeout: int) -> None: ... + def sslConfiguration(self) -> QSslConfiguration: ... + def setSslConfiguration(self, sslConfiguration: QSslConfiguration) -> None: ... + class QTcpSocket(QAbstractSocket): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @@ -1518,6 +1669,7 @@ class QSslSocket(QTcpSocket): QueryPeer = ... # type: QSslSocket.PeerVerifyMode VerifyPeer = ... # type: QSslSocket.PeerVerifyMode AutoVerifyPeer = ... # type: QSslSocket.PeerVerifyMode + class SslMode(enum.Enum): UnencryptedMode = ... # type: QSslSocket.SslMode SslClientMode = ... # type: QSslSocket.SslMode @@ -1601,7 +1753,7 @@ class QSslSocket(QTcpSocket): @typing.overload def setPrivateKey(self, key: QSslKey) -> None: ... @typing.overload - def setPrivateKey(self, fileName: str, algorithm: QSsl.KeyAlgorithm = ..., format: QSsl.EncodingFormat = ..., passPhrase: QtCore.QByteArray = ...) -> None: ... + def setPrivateKey(self, fileName: str, algorithm: QSsl.KeyAlgorithm = ..., format: QSsl.EncodingFormat = ..., passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... def sessionCipher(self) -> QSslCipher: ... def peerCertificateChain(self) -> typing.List[QSslCertificate]: ... def peerCertificate(self) -> QSslCertificate: ... @@ -1625,31 +1777,6 @@ class QSslSocket(QTcpSocket): @typing.overload def connectToHostEncrypted(self, hostName: str, port: int, sslPeerName: str, mode: QtCore.QIODeviceBase.OpenModeFlag = ..., protocol: QAbstractSocket.NetworkLayerProtocol = ...) -> None: ... -class QTcpServer(QtCore.QObject): - def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - acceptError: typing.ClassVar[QtCore.pyqtSignal] - newConnection: typing.ClassVar[QtCore.pyqtSignal] - def addPendingConnection(self, socket: QTcpSocket) -> None: ... - def incomingConnection(self, handle: PyQt6.sip.voidptr) -> None: ... - def resumeAccepting(self) -> None: ... - def pauseAccepting(self) -> None: ... - def proxy(self) -> QNetworkProxy: ... - def setProxy(self, networkProxy: QNetworkProxy) -> None: ... - def errorString(self) -> str: ... - def serverError(self) -> QAbstractSocket.SocketError: ... - def nextPendingConnection(self) -> QTcpSocket: ... - def hasPendingConnections(self) -> bool: ... - def waitForNewConnection(self, msecs: int = ...) -> typing.Tuple[bool, bool]: ... - def setSocketDescriptor(self, socketDescriptor: PyQt6.sip.voidptr) -> bool: ... - def socketDescriptor(self) -> PyQt6.sip.voidptr: ... - def serverAddress(self) -> QHostAddress: ... - def serverPort(self) -> int: ... - def maxPendingConnections(self) -> int: ... - def setMaxPendingConnections(self, numConnections: int) -> None: ... - def isListening(self) -> bool: ... - def close(self) -> None: ... - def listen(self, address: typing.Union[QHostAddress, QHostAddress.SpecialAddress] = ..., port: int = ...) -> bool: ... - class QUdpSocket(QAbstractSocket): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def setMulticastInterface(self, iface: QNetworkInterface) -> None: ... diff --git a/PyQt6-stubs/QtNfc.pyi b/PyQt6-stubs/QtNfc.pyi index 2c8e358..b70856d 100644 --- a/PyQt6-stubs/QtNfc.pyi +++ b/PyQt6-stubs/QtNfc.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtNfc module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -38,10 +38,12 @@ class QNdefFilter(PyQt6.sip.simplewrapper): minimum = ... # type: int type = ... # type: QtCore.QByteArray typeNameFormat = ... # type: 'QNdefRecord.TypeNameFormat' + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QNdefFilter.Record") -> None: ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -67,6 +69,7 @@ class QNdefMessage(PyQt6.sip.simplewrapper): def __init__(self, message: "QNdefMessage") -> None: ... @typing.overload def __init__(self, records: typing.Iterable["QNdefRecord"]) -> None: ... + def __ne__(self, other: object): ... @staticmethod def fromByteArray(message: QtCore.QByteArray) -> "QNdefMessage": ... def __delitem__(self, i: int) -> None: ... @@ -74,6 +77,7 @@ class QNdefMessage(PyQt6.sip.simplewrapper): def __getitem__(self, i: int) -> "QNdefRecord": ... def __len__(self) -> int: ... def toByteArray(self) -> QtCore.QByteArray: ... + def __eq__(self, other: object): ... class QNdefRecord(PyQt6.sip.simplewrapper): class TypeNameFormat(enum.Enum): @@ -88,6 +92,8 @@ class QNdefRecord(PyQt6.sip.simplewrapper): @typing.overload def __init__(self, other: "QNdefRecord") -> None: ... def __hash__(self) -> int: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def clear(self) -> None: ... def isEmpty(self) -> bool: ... def payload(self) -> QtCore.QByteArray: ... @@ -202,11 +208,11 @@ class QNearFieldManager(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def setUserInformation(self, message: str) -> None: ... def isEnabled(self) -> bool: ... - adapterStateChanged: typing.ClassVar[QtCore.pyqtSignal] + def adapterStateChanged(self, state: "QNearFieldManager.AdapterState") -> None: ... def isSupported(self, accessMethod: "QNearFieldTarget.AccessMethod" = ...) -> bool: ... - targetDetectionStopped: typing.ClassVar[QtCore.pyqtSignal] - targetLost: typing.ClassVar[QtCore.pyqtSignal] - targetDetected: typing.ClassVar[QtCore.pyqtSignal] + def targetDetectionStopped(self) -> None: ... + def targetLost(self, target: "QNearFieldTarget") -> None: ... + def targetDetected(self, target: "QNearFieldTarget") -> None: ... def stopTargetDetection(self, errorMessage: str = ...) -> None: ... def startTargetDetection(self, accessMethod: "QNearFieldTarget.AccessMethod") -> bool: ... @@ -224,11 +230,13 @@ class QNearFieldTarget(QtCore.QObject): CommandError = ... # type: QNearFieldTarget.Error ConnectionError = ... # type: QNearFieldTarget.Error TimeoutError = ... # type: QNearFieldTarget.Error + class AccessMethod(enum.Flag): UnknownAccess = ... # type: QNearFieldTarget.AccessMethod NdefAccess = ... # type: QNearFieldTarget.AccessMethod TagTypeSpecificAccess = ... # type: QNearFieldTarget.AccessMethod AnyAccess = ... # type: QNearFieldTarget.AccessMethod + class Type(enum.Enum): ProprietaryTag = ... # type: QNearFieldTarget.Type NfcTagType1 = ... # type: QNearFieldTarget.Type @@ -238,20 +246,26 @@ class QNearFieldTarget(QtCore.QObject): NfcTagType4A = ... # type: QNearFieldTarget.Type NfcTagType4B = ... # type: QNearFieldTarget.Type MifareTag = ... # type: QNearFieldTarget.Type + class RequestId(PyQt6.sip.simplewrapper): @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QNearFieldTarget.RequestId") -> None: ... + def __ge__(self, other: "QNearFieldTarget.RequestId") -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __lt__(self, other: "QNearFieldTarget.RequestId") -> bool: ... def refCount(self) -> int: ... def isValid(self) -> bool: ... + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def maxCommandLength(self) -> int: ... - def disconnect(self) -> bool: ... # type: ignore[override] - error: typing.ClassVar[QtCore.pyqtSignal] - requestCompleted: typing.ClassVar[QtCore.pyqtSignal] - ndefMessageRead: typing.ClassVar[QtCore.pyqtSignal] - disconnected: typing.ClassVar[QtCore.pyqtSignal] + def disconnect(self) -> bool: ... + def error(self, error: "QNearFieldTarget.Error", id: "QNearFieldTarget.RequestId") -> None: ... + def requestCompleted(self, id: "QNearFieldTarget.RequestId") -> None: ... + def ndefMessageRead(self, message: QNdefMessage) -> None: ... + def disconnected(self) -> None: ... def requestResponse(self, id: "QNearFieldTarget.RequestId") -> typing.Any: ... def waitForRequestCompleted(self, id: "QNearFieldTarget.RequestId", msecs: int = ...) -> bool: ... def sendCommand(self, command: QtCore.QByteArray) -> "QNearFieldTarget.RequestId": ... diff --git a/PyQt6-stubs/QtOpenGL.pyi b/PyQt6-stubs/QtOpenGL.pyi index 46e0d0f..dfb3e3e 100644 --- a/PyQt6-stubs/QtOpenGL.pyi +++ b/PyQt6-stubs/QtOpenGL.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtOpenGL module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -45,10 +45,12 @@ class QOpenGLBuffer(PyQt6.sip.simplewrapper): RangeInvalidateBuffer = ... # type: QOpenGLBuffer.RangeAccessFlag RangeFlushExplicit = ... # type: QOpenGLBuffer.RangeAccessFlag RangeUnsynchronized = ... # type: QOpenGLBuffer.RangeAccessFlag + class Access(enum.Enum): ReadOnly = ... # type: QOpenGLBuffer.Access WriteOnly = ... # type: QOpenGLBuffer.Access ReadWrite = ... # type: QOpenGLBuffer.Access + class UsagePattern(enum.Enum): StreamDraw = ... # type: QOpenGLBuffer.UsagePattern StreamRead = ... # type: QOpenGLBuffer.UsagePattern @@ -59,6 +61,7 @@ class QOpenGLBuffer(PyQt6.sip.simplewrapper): DynamicDraw = ... # type: QOpenGLBuffer.UsagePattern DynamicRead = ... # type: QOpenGLBuffer.UsagePattern DynamicCopy = ... # type: QOpenGLBuffer.UsagePattern + class Type(enum.Enum): VertexBuffer = ... # type: QOpenGLBuffer.Type IndexBuffer = ... # type: QOpenGLBuffer.Type @@ -103,6 +106,7 @@ class QOpenGLDebugMessage(PyQt6.sip.simplewrapper): LowSeverity = ... # type: QOpenGLDebugMessage.Severity NotificationSeverity = ... # type: QOpenGLDebugMessage.Severity AnySeverity = ... # type: QOpenGLDebugMessage.Severity + class Type(enum.Flag): InvalidType = ... # type: QOpenGLDebugMessage.Type ErrorType = ... # type: QOpenGLDebugMessage.Type @@ -115,6 +119,7 @@ class QOpenGLDebugMessage(PyQt6.sip.simplewrapper): GroupPushType = ... # type: QOpenGLDebugMessage.Type GroupPopType = ... # type: QOpenGLDebugMessage.Type AnyType = ... # type: QOpenGLDebugMessage.Type + class Source(enum.Flag): InvalidSource = ... # type: QOpenGLDebugMessage.Source APISource = ... # type: QOpenGLDebugMessage.Source @@ -128,6 +133,8 @@ class QOpenGLDebugMessage(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, debugMessage: "QOpenGLDebugMessage") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... @staticmethod def createThirdPartyMessage(text: str, id: int = ..., severity: "QOpenGLDebugMessage.Severity" = ..., type: "QOpenGLDebugMessage.Type" = ...) -> "QOpenGLDebugMessage": ... @staticmethod @@ -144,6 +151,7 @@ class QOpenGLDebugLogger(QtCore.QObject): AsynchronousLogging = ... # type: QOpenGLDebugLogger.LoggingMode SynchronousLogging = ... # type: QOpenGLDebugLogger.LoggingMode def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + messageLogged: typing.ClassVar[QtCore.pyqtSignal] def stopLogging(self) -> None: ... def startLogging(self, loggingMode: "QOpenGLDebugLogger.LoggingMode" = ...) -> None: ... @@ -169,6 +177,7 @@ class QOpenGLFramebufferObject(PyQt6.sip.simplewrapper): DontRestoreFramebufferBinding = ... # type: QOpenGLFramebufferObject.FramebufferRestorePolicy RestoreFramebufferBindingToDefault = ... # type: QOpenGLFramebufferObject.FramebufferRestorePolicy RestoreFrameBufferBinding = ... # type: QOpenGLFramebufferObject.FramebufferRestorePolicy + class Attachment(enum.Enum): NoAttachment = ... # type: QOpenGLFramebufferObject.Attachment CombinedDepthStencil = ... # type: QOpenGLFramebufferObject.Attachment @@ -235,6 +244,8 @@ class QOpenGLFramebufferObjectFormat(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QOpenGLFramebufferObjectFormat") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def internalTextureFormat(self) -> int: ... def setInternalTextureFormat(self, internalTextureFormat: int) -> None: ... def textureTarget(self) -> int: ... @@ -505,6 +516,7 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): class ComparisonMode(enum.Enum): CompareRefToTexture = ... # type: QOpenGLTexture.ComparisonMode CompareNone = ... # type: QOpenGLTexture.ComparisonMode + class ComparisonFunction(enum.Enum): CompareLessEqual = ... # type: QOpenGLTexture.ComparisonFunction CompareGreaterEqual = ... # type: QOpenGLTexture.ComparisonFunction @@ -515,15 +527,18 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): CompareAlways = ... # type: QOpenGLTexture.ComparisonFunction CompareNever = ... # type: QOpenGLTexture.ComparisonFunction CompareNotEqual = ... # type: QOpenGLTexture.ComparisonFunction + class CoordinateDirection(enum.Enum): DirectionS = ... # type: QOpenGLTexture.CoordinateDirection DirectionT = ... # type: QOpenGLTexture.CoordinateDirection DirectionR = ... # type: QOpenGLTexture.CoordinateDirection + class WrapMode(enum.Enum): Repeat = ... # type: QOpenGLTexture.WrapMode MirroredRepeat = ... # type: QOpenGLTexture.WrapMode ClampToEdge = ... # type: QOpenGLTexture.WrapMode ClampToBorder = ... # type: QOpenGLTexture.WrapMode + class Filter(enum.Enum): Nearest = ... # type: QOpenGLTexture.Filter Linear = ... # type: QOpenGLTexture.Filter @@ -531,9 +546,11 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): NearestMipMapLinear = ... # type: QOpenGLTexture.Filter LinearMipMapNearest = ... # type: QOpenGLTexture.Filter LinearMipMapLinear = ... # type: QOpenGLTexture.Filter + class DepthStencilMode(enum.Enum): DepthMode = ... # type: QOpenGLTexture.DepthStencilMode StencilMode = ... # type: QOpenGLTexture.DepthStencilMode + class SwizzleValue(enum.Enum): RedValue = ... # type: QOpenGLTexture.SwizzleValue GreenValue = ... # type: QOpenGLTexture.SwizzleValue @@ -541,11 +558,13 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): AlphaValue = ... # type: QOpenGLTexture.SwizzleValue ZeroValue = ... # type: QOpenGLTexture.SwizzleValue OneValue = ... # type: QOpenGLTexture.SwizzleValue + class SwizzleComponent(enum.Enum): SwizzleRed = ... # type: QOpenGLTexture.SwizzleComponent SwizzleGreen = ... # type: QOpenGLTexture.SwizzleComponent SwizzleBlue = ... # type: QOpenGLTexture.SwizzleComponent SwizzleAlpha = ... # type: QOpenGLTexture.SwizzleComponent + class Feature(enum.Flag): ImmutableStorage = ... # type: QOpenGLTexture.Feature ImmutableMultisampleStorage = ... # type: QOpenGLTexture.Feature @@ -563,6 +582,7 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): Texture1D = ... # type: QOpenGLTexture.Feature TextureComparisonOperators = ... # type: QOpenGLTexture.Feature TextureMipMapLevel = ... # type: QOpenGLTexture.Feature + class PixelType(enum.Enum): NoPixelType = ... # type: QOpenGLTexture.PixelType Int8 = ... # type: QOpenGLTexture.PixelType @@ -590,6 +610,7 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): UInt32_RGBA8_Rev = ... # type: QOpenGLTexture.PixelType UInt32_D24S8 = ... # type: QOpenGLTexture.PixelType Float32_D32_UInt32_S8_X24 = ... # type: QOpenGLTexture.PixelType + class PixelFormat(enum.Enum): NoSourceFormat = ... # type: QOpenGLTexture.PixelFormat Red = ... # type: QOpenGLTexture.PixelFormat @@ -610,6 +631,7 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): Luminance = ... # type: QOpenGLTexture.PixelFormat LuminanceAlpha = ... # type: QOpenGLTexture.PixelFormat Stencil = ... # type: QOpenGLTexture.PixelFormat + class CubeMapFace(enum.Enum): CubeMapPositiveX = ... # type: QOpenGLTexture.CubeMapFace CubeMapNegativeX = ... # type: QOpenGLTexture.CubeMapFace @@ -617,6 +639,7 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): CubeMapNegativeY = ... # type: QOpenGLTexture.CubeMapFace CubeMapPositiveZ = ... # type: QOpenGLTexture.CubeMapFace CubeMapNegativeZ = ... # type: QOpenGLTexture.CubeMapFace + class TextureFormat(enum.Enum): NoFormat = ... # type: QOpenGLTexture.TextureFormat R8_UNorm = ... # type: QOpenGLTexture.TextureFormat @@ -744,12 +767,15 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): SRGB8_Alpha8_ASTC_10x10 = ... # type: QOpenGLTexture.TextureFormat SRGB8_Alpha8_ASTC_12x10 = ... # type: QOpenGLTexture.TextureFormat SRGB8_Alpha8_ASTC_12x12 = ... # type: QOpenGLTexture.TextureFormat + class TextureUnitReset(enum.Enum): ResetTextureUnit = ... # type: QOpenGLTexture.TextureUnitReset DontResetTextureUnit = ... # type: QOpenGLTexture.TextureUnitReset + class MipMapGeneration(enum.Enum): GenerateMipMaps = ... # type: QOpenGLTexture.MipMapGeneration DontGenerateMipMaps = ... # type: QOpenGLTexture.MipMapGeneration + class BindingTarget(enum.Enum): BindingTarget1D = ... # type: QOpenGLTexture.BindingTarget BindingTarget1DArray = ... # type: QOpenGLTexture.BindingTarget @@ -762,6 +788,7 @@ class QOpenGLTexture(PyQt6.sip.simplewrapper): BindingTarget2DMultisampleArray = ... # type: QOpenGLTexture.BindingTarget BindingTargetRectangle = ... # type: QOpenGLTexture.BindingTarget BindingTargetBuffer = ... # type: QOpenGLTexture.BindingTarget + class Target(enum.Enum): Target1D = ... # type: QOpenGLTexture.Target Target1DArray = ... # type: QOpenGLTexture.Target @@ -910,6 +937,7 @@ class QOpenGLTextureBlitter(PyQt6.sip.simplewrapper): OriginBottomLeft = ... # type: QOpenGLTextureBlitter.Origin OriginTopLeft = ... # type: QOpenGLTextureBlitter.Origin def __init__(self) -> None: ... + def supportsRectangleTarget(self) -> bool: ... @staticmethod def sourceTransform(subTexture: QtCore.QRectF, textureSize: QtCore.QSize, origin: "QOpenGLTextureBlitter.Origin") -> QtGui.QMatrix3x3: ... @staticmethod @@ -971,6 +999,7 @@ class QOpenGLVertexArrayObject(QtCore.QObject): def __enter__(self) -> typing.Any: ... def rebind(self) -> None: ... def release(self) -> None: ... + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def release(self) -> None: ... def bind(self) -> None: ... @@ -2343,6 +2372,8 @@ class QOpenGLVersionProfile(PyQt6.sip.simplewrapper): def __init__(self, format: QtGui.QSurfaceFormat) -> None: ... @typing.overload def __init__(self, other: "QOpenGLVersionProfile") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def isValid(self) -> bool: ... def isLegacyVersion(self) -> bool: ... diff --git a/PyQt6-stubs/QtOpenGLWidgets.pyi b/PyQt6-stubs/QtOpenGLWidgets.pyi index 2dfe8ab..571a99a 100644 --- a/PyQt6-stubs/QtOpenGLWidgets.pyi +++ b/PyQt6-stubs/QtOpenGLWidgets.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtOpenGLWidgets module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # diff --git a/PyQt6-stubs/QtPdf.pyi b/PyQt6-stubs/QtPdf.pyi new file mode 100644 index 0000000..5e3986c --- /dev/null +++ b/PyQt6-stubs/QtPdf.pyi @@ -0,0 +1,223 @@ +# The PEP 484 type hints stub file for the QtPdf module. +# +# Generated by SIP 6.7.0 +# +# Copyright (c) 2022 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +# Support for QDate, QDateTime and QTime. +import datetime +import enum +import typing + +import PyQt6.sip +from PyQt6 import QtCore, QtGui + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +class QPdfBookmarkModel(QtCore.QAbstractItemModel): + class Role(enum.Enum): + Title = ... # type: QPdfBookmarkModel.Role + Level = ... # type: QPdfBookmarkModel.Role + Page = ... # type: QPdfBookmarkModel.Role + Location = ... # type: QPdfBookmarkModel.Role + Zoom = ... # type: QPdfBookmarkModel.Role + def __init__(self, parent: QtCore.QObject) -> None: ... + + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def roleNames(self) -> typing.Dict[int, QtCore.QByteArray]: ... + def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... # type: ignore[override] + def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ... + def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ... # type: ignore[override] + def setDocument(self, document: "QPdfDocument") -> None: ... + def document(self) -> "QPdfDocument": ... + +class QPdfDocument(QtCore.QObject): + class PageModelRole(enum.Enum): + Label = ... # type: QPdfDocument.PageModelRole + PointSize = ... # type: QPdfDocument.PageModelRole + + class MetaDataField(enum.Enum): + Title = ... # type: QPdfDocument.MetaDataField + Subject = ... # type: QPdfDocument.MetaDataField + Author = ... # type: QPdfDocument.MetaDataField + Keywords = ... # type: QPdfDocument.MetaDataField + Producer = ... # type: QPdfDocument.MetaDataField + Creator = ... # type: QPdfDocument.MetaDataField + CreationDate = ... # type: QPdfDocument.MetaDataField + ModificationDate = ... # type: QPdfDocument.MetaDataField + + class Error(enum.Enum): + None_ = ... # type: QPdfDocument.Error + Unknown = ... # type: QPdfDocument.Error + DataNotYetAvailable = ... # type: QPdfDocument.Error + FileNotFound = ... # type: QPdfDocument.Error + InvalidFileFormat = ... # type: QPdfDocument.Error + IncorrectPassword = ... # type: QPdfDocument.Error + UnsupportedSecurityScheme = ... # type: QPdfDocument.Error + + class Status(enum.Enum): + Null = ... # type: QPdfDocument.Status + Loading = ... # type: QPdfDocument.Status + Ready = ... # type: QPdfDocument.Status + Unloading = ... # type: QPdfDocument.Status + Error = ... # type: QPdfDocument.Status + def __init__(self, parent: QtCore.QObject) -> None: ... + + pageModelChanged: typing.ClassVar[QtCore.pyqtSignal] + pageCountChanged: typing.ClassVar[QtCore.pyqtSignal] + statusChanged: typing.ClassVar[QtCore.pyqtSignal] + passwordChanged: typing.ClassVar[QtCore.pyqtSignal] + def getAllText(self, page: int) -> "QPdfSelection": ... + def getSelectionAtIndex(self, page: int, startIndex: int, maxLength: int) -> "QPdfSelection": ... + def getSelection(self, page: int, start: QtCore.QPointF, end: QtCore.QPointF) -> "QPdfSelection": ... + def render(self, page: int, imageSize: QtCore.QSize, options: "QPdfDocumentRenderOptions" = ...) -> QtGui.QImage: ... + def pageModel(self) -> QtCore.QAbstractListModel: ... + def pageLabel(self, page: int) -> str: ... + def pagePointSize(self, page: int) -> QtCore.QSizeF: ... + def pageCount(self) -> int: ... + def close(self) -> None: ... + def error(self) -> "QPdfDocument.Error": ... + def metaData(self, field: "QPdfDocument.MetaDataField") -> typing.Any: ... + def password(self) -> str: ... + def setPassword(self, password: str) -> None: ... + def status(self) -> "QPdfDocument.Status": ... + @typing.overload + def load(self, fileName: str) -> "QPdfDocument.Error": ... + @typing.overload + def load(self, device: QtCore.QIODevice) -> None: ... + +class QPdfDocumentRenderOptions(PyQt6.sip.simplewrapper): + class RenderFlag(enum.Enum): + None_ = ... # type: QPdfDocumentRenderOptions.RenderFlag + Annotations = ... # type: QPdfDocumentRenderOptions.RenderFlag + OptimizedForLcd = ... # type: QPdfDocumentRenderOptions.RenderFlag + Grayscale = ... # type: QPdfDocumentRenderOptions.RenderFlag + ForceHalftone = ... # type: QPdfDocumentRenderOptions.RenderFlag + TextAliased = ... # type: QPdfDocumentRenderOptions.RenderFlag + ImageAliased = ... # type: QPdfDocumentRenderOptions.RenderFlag + PathAliased = ... # type: QPdfDocumentRenderOptions.RenderFlag + + class Rotation(enum.Enum): + None_ = ... # type: QPdfDocumentRenderOptions.Rotation + Clockwise90 = ... # type: QPdfDocumentRenderOptions.Rotation + Clockwise180 = ... # type: QPdfDocumentRenderOptions.Rotation + Clockwise270 = ... # type: QPdfDocumentRenderOptions.Rotation + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: "QPdfDocumentRenderOptions") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def setScaledSize(self, s: QtCore.QSize) -> None: ... + def scaledSize(self) -> QtCore.QSize: ... + def setScaledClipRect(self, r: QtCore.QRect) -> None: ... + def scaledClipRect(self) -> QtCore.QRect: ... + def setRenderFlags(self, r: "QPdfDocumentRenderOptions.RenderFlag") -> None: ... + def renderFlags(self) -> "QPdfDocumentRenderOptions.RenderFlag": ... + def setRotation(self, r: "QPdfDocumentRenderOptions.Rotation") -> None: ... + def rotation(self) -> "QPdfDocumentRenderOptions.Rotation": ... + +class QPdfLink(PyQt6.sip.simplewrapper): + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: "QPdfLink") -> None: ... + def copyToClipboard(self, mode: QtGui.QClipboard.Mode = ...) -> None: ... + def toString(self) -> str: ... + def rectangles(self) -> typing.List[QtCore.QRectF]: ... + def contextAfter(self) -> str: ... + def contextBefore(self) -> str: ... + def url(self) -> QtCore.QUrl: ... + def zoom(self) -> float: ... + def location(self) -> QtCore.QPointF: ... + def page(self) -> int: ... + def isValid(self) -> bool: ... + def swap(self, other: "QPdfLink") -> None: ... + +class QPdfPageNavigator(QtCore.QObject): + def __init__(self, parent: QtCore.QObject) -> None: ... + + jumped: typing.ClassVar[QtCore.pyqtSignal] + forwardAvailableChanged: typing.ClassVar[QtCore.pyqtSignal] + backAvailableChanged: typing.ClassVar[QtCore.pyqtSignal] + currentZoomChanged: typing.ClassVar[QtCore.pyqtSignal] + currentLocationChanged: typing.ClassVar[QtCore.pyqtSignal] + currentPageChanged: typing.ClassVar[QtCore.pyqtSignal] + def back(self) -> None: ... + def forward(self) -> None: ... + def update(self, page: int, location: QtCore.QPointF, zoom: float) -> None: ... + @typing.overload + def jump(self, destination: QPdfLink) -> None: ... + @typing.overload + def jump(self, page: int, location: QtCore.QPointF, zoom: float = ...) -> None: ... + def clear(self) -> None: ... + def forwardAvailable(self) -> bool: ... + def backAvailable(self) -> bool: ... + def currentZoom(self) -> float: ... + def currentLocation(self) -> QtCore.QPointF: ... + def currentPage(self) -> int: ... + +class QPdfPageRenderer(QtCore.QObject): + class RenderMode(enum.Enum): + MultiThreaded = ... # type: QPdfPageRenderer.RenderMode + SingleThreaded = ... # type: QPdfPageRenderer.RenderMode + def __init__(self, parent: QtCore.QObject) -> None: ... + + renderModeChanged: typing.ClassVar[QtCore.pyqtSignal] + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def requestPage(self, pageNumber: int, imageSize: QtCore.QSize, options: QPdfDocumentRenderOptions = ...) -> int: ... + def setDocument(self, document: QPdfDocument) -> None: ... + def document(self) -> QPdfDocument: ... + def setRenderMode(self, mode: "QPdfPageRenderer.RenderMode") -> None: ... + def renderMode(self) -> "QPdfPageRenderer.RenderMode": ... + +class QPdfSearchModel(QtCore.QAbstractListModel): + class Role(enum.Enum): + Page = ... # type: QPdfSearchModel.Role + IndexOnPage = ... # type: QPdfSearchModel.Role + Location = ... # type: QPdfSearchModel.Role + ContextBefore = ... # type: QPdfSearchModel.Role + ContextAfter = ... # type: QPdfSearchModel.Role + def __init__(self, parent: QtCore.QObject) -> None: ... + def timerEvent(self, event: QtCore.QTimerEvent) -> None: ... + searchStringChanged: typing.ClassVar[QtCore.pyqtSignal] + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def setDocument(self, document: QPdfDocument) -> None: ... + def setSearchString(self, searchString: str) -> None: ... + def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ... # type: ignore[override] + def rowCount(self, parent: QtCore.QModelIndex) -> int: ... # type: ignore[override] + def roleNames(self) -> typing.Dict[int, QtCore.QByteArray]: ... + def searchString(self) -> str: ... + def document(self) -> QPdfDocument: ... + def resultAtIndex(self, index: int) -> QPdfLink: ... + def resultsOnPage(self, page: int) -> typing.List[QPdfLink]: ... + +class QPdfSelection(PyQt6.sip.simplewrapper): + def __init__(self, other: "QPdfSelection") -> None: ... + def copyToClipboard(self, mode: QtGui.QClipboard.Mode = ...) -> None: ... + def endIndex(self) -> int: ... + def startIndex(self) -> int: ... + def boundingRectangle(self) -> QtCore.QRectF: ... + def text(self) -> str: ... + def bounds(self) -> typing.List[QtGui.QPolygonF]: ... + def isValid(self) -> bool: ... + def swap(self, other: "QPdfSelection") -> None: ... diff --git a/PyQt6-stubs/QtPdfWidgets.pyi b/PyQt6-stubs/QtPdfWidgets.pyi new file mode 100644 index 0000000..4914f7d --- /dev/null +++ b/PyQt6-stubs/QtPdfWidgets.pyi @@ -0,0 +1,65 @@ +# The PEP 484 type hints stub file for the QtPdfWidgets module. +# +# Generated by SIP 6.7.0 +# +# Copyright (c) 2022 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +# Support for QDate, QDateTime and QTime. +import datetime +import enum +import typing + +import PyQt6.sip +from PyQt6 import QtCore, QtGui, QtPdf, QtWidgets + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +class QPdfView(QtWidgets.QAbstractScrollArea): + class ZoomMode(enum.Enum): + Custom = ... # type: QPdfView.ZoomMode + FitToWidth = ... # type: QPdfView.ZoomMode + FitInView = ... # type: QPdfView.ZoomMode + + class PageMode(enum.Enum): + SinglePage = ... # type: QPdfView.PageMode + MultiPage = ... # type: QPdfView.PageMode + def __init__(self, parent: QtWidgets.QWidget) -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + documentMarginsChanged: typing.ClassVar[QtCore.pyqtSignal] + pageSpacingChanged: typing.ClassVar[QtCore.pyqtSignal] + zoomFactorChanged: typing.ClassVar[QtCore.pyqtSignal] + zoomModeChanged: typing.ClassVar[QtCore.pyqtSignal] + pageModeChanged: typing.ClassVar[QtCore.pyqtSignal] + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def setZoomFactor(self, factor: float) -> None: ... + def setZoomMode(self, mode: "QPdfView.ZoomMode") -> None: ... + def setPageMode(self, mode: "QPdfView.PageMode") -> None: ... + def setDocumentMargins(self, margins: QtCore.QMargins) -> None: ... + def documentMargins(self) -> QtCore.QMargins: ... + def setPageSpacing(self, spacing: int) -> None: ... + def pageSpacing(self) -> int: ... + def zoomFactor(self) -> float: ... + def zoomMode(self) -> "QPdfView.ZoomMode": ... + def pageMode(self) -> "QPdfView.PageMode": ... + def pageNavigator(self) -> QtPdf.QPdfPageNavigator: ... + def document(self) -> QtPdf.QPdfDocument: ... + def setDocument(self, document: QtPdf.QPdfDocument) -> None: ... diff --git a/PyQt6-stubs/QtPositioning.pyi b/PyQt6-stubs/QtPositioning.pyi index 1d394fd..acca5a2 100644 --- a/PyQt6-stubs/QtPositioning.pyi +++ b/PyQt6-stubs/QtPositioning.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtPositioning module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -36,6 +36,8 @@ class QGeoAddress(PyQt6.sip.wrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QGeoAddress") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def setStreetNumber(self, streetNumber: str) -> None: ... def streetNumber(self) -> str: ... @@ -67,6 +69,8 @@ class QGeoAreaMonitorInfo(PyQt6.sip.wrapper): def __init__(self, name: str = ...) -> None: ... @typing.overload def __init__(self, other: "QGeoAreaMonitorInfo") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def swap(self, other: "QGeoAreaMonitorInfo") -> None: ... def setNotificationParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ... @@ -86,6 +90,7 @@ class QGeoAreaMonitorSource(QtCore.QObject): class AreaMonitorFeature(enum.Flag): PersistentAreaMonitorFeature = ... # type: QGeoAreaMonitorSource.AreaMonitorFeature AnyAreaMonitorFeature = ... # type: QGeoAreaMonitorSource.AreaMonitorFeature + class Error(enum.Enum): AccessError = ... # type: QGeoAreaMonitorSource.Error InsufficientPositionInfo = ... # type: QGeoAreaMonitorSource.Error @@ -128,6 +133,8 @@ class QGeoShape(PyQt6.sip.wrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QGeoShape") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def boundingGeoRectangle(self) -> "QGeoRectangle": ... def toString(self) -> str: ... @@ -163,6 +170,7 @@ class QGeoCoordinate(PyQt6.sip.wrapper): DegreesMinutesWithHemisphere = ... # type: QGeoCoordinate.CoordinateFormat DegreesMinutesSeconds = ... # type: QGeoCoordinate.CoordinateFormat DegreesMinutesSecondsWithHemisphere = ... # type: QGeoCoordinate.CoordinateFormat + class CoordinateType(enum.Enum): InvalidCoordinate = ... # type: QGeoCoordinate.CoordinateType Coordinate2D = ... # type: QGeoCoordinate.CoordinateType @@ -175,6 +183,8 @@ class QGeoCoordinate(PyQt6.sip.wrapper): def __init__(self, latitude: float, longitude: float, altitude: float) -> None: ... @typing.overload def __init__(self, other: "QGeoCoordinate") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def swap(self, other: "QGeoCoordinate") -> None: ... def toString(self, format: "QGeoCoordinate.CoordinateFormat" = ...) -> str: ... @@ -195,6 +205,8 @@ class QGeoLocation(PyQt6.sip.wrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QGeoLocation") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def setBoundingShape(self, shape: QGeoShape) -> None: ... def boundingShape(self) -> QGeoShape: ... @@ -278,12 +290,15 @@ class QGeoPositionInfo(PyQt6.sip.wrapper): MagneticVariation = ... # type: QGeoPositionInfo.Attribute HorizontalAccuracy = ... # type: QGeoPositionInfo.Attribute VerticalAccuracy = ... # type: QGeoPositionInfo.Attribute + DirectionAccuracy = ... # type: QGeoPositionInfo.Attribute @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, coordinate: QGeoCoordinate, updateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... @typing.overload def __init__(self, other: "QGeoPositionInfo") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def __hash__(self) -> int: ... def swap(self, other: "QGeoPositionInfo") -> None: ... def hasAttribute(self, attribute: "QGeoPositionInfo.Attribute") -> bool: ... @@ -302,6 +317,7 @@ class QGeoPositionInfoSource(QtCore.QObject): SatellitePositioningMethods = ... # type: QGeoPositionInfoSource.PositioningMethod NonSatellitePositioningMethods = ... # type: QGeoPositionInfoSource.PositioningMethod AllPositioningMethods = ... # type: QGeoPositionInfoSource.PositioningMethod + class Error(enum.Enum): AccessError = ... # type: QGeoPositionInfoSource.Error ClosedError = ... # type: QGeoPositionInfoSource.Error @@ -356,6 +372,8 @@ class QGeoRectangle(QGeoShape): def __init__(self, other: QGeoShape) -> None: ... def extendRectangle(self, coordinate: QGeoCoordinate) -> None: ... def toString(self) -> str: ... + def __or__(self, rectangle: "QGeoRectangle") -> "QGeoRectangle": ... + def __ior__(self, rectangle: "QGeoRectangle") -> "QGeoRectangle": ... def united(self, rectangle: "QGeoRectangle") -> "QGeoRectangle": ... def translated(self, degreesLatitude: float, degreesLongitude: float) -> "QGeoRectangle": ... def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ... @@ -386,6 +404,7 @@ class QGeoSatelliteInfo(PyQt6.sip.wrapper): QZSS = ... # type: QGeoSatelliteInfo.SatelliteSystem Multiple = ... # type: QGeoSatelliteInfo.SatelliteSystem CustomType = ... # type: QGeoSatelliteInfo.SatelliteSystem + class Attribute(enum.Enum): Elevation = ... # type: QGeoSatelliteInfo.Attribute Azimuth = ... # type: QGeoSatelliteInfo.Attribute @@ -467,10 +486,12 @@ class QNmeaSatelliteInfoSource(QGeoSatelliteInfoSource): NotParsed = ... # type: QNmeaSatelliteInfoSource.SatelliteInfoParseStatus PartiallyParsed = ... # type: QNmeaSatelliteInfoSource.SatelliteInfoParseStatus FullyParsed = ... # type: QNmeaSatelliteInfoSource.SatelliteInfoParseStatus + class UpdateMode(enum.Enum): RealTimeMode = ... # type: QNmeaSatelliteInfoSource.UpdateMode SimulationMode = ... # type: QNmeaSatelliteInfoSource.UpdateMode SimulationUpdateInterval = ... # type: str + def __init__(self, mode: "QNmeaSatelliteInfoSource.UpdateMode", parent: typing.Optional[QtCore.QObject] = ...) -> None: ... def parseSatelliteInfoFromNmea(self, data: bytes, size: int, infos: typing.Iterable[QGeoSatelliteInfo]) -> typing.Tuple["QNmeaSatelliteInfoSource.SatelliteInfoParseStatus", QGeoSatelliteInfo.SatelliteSystem]: ... def parseSatellitesInUseFromNmea(self, data: bytes, size: int, pnrsInUse: typing.Iterable[int]) -> QGeoSatelliteInfo.SatelliteSystem: ... diff --git a/PyQt6-stubs/QtPrintSupport.pyi b/PyQt6-stubs/QtPrintSupport.pyi index 66576d3..d59cfd7 100644 --- a/PyQt6-stubs/QtPrintSupport.pyi +++ b/PyQt6-stubs/QtPrintSupport.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtPrintSupport module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -39,6 +39,7 @@ class QAbstractPrintDialog(QtWidgets.QDialog): PrintCollateCopies = ... # type: QAbstractPrintDialog.PrintDialogOption PrintShowPageSize = ... # type: QAbstractPrintDialog.PrintDialogOption PrintCurrentPage = ... # type: QAbstractPrintDialog.PrintDialogOption + class PrintRange(enum.Enum): AllPages = ... # type: QAbstractPrintDialog.PrintRange Selection = ... # type: QAbstractPrintDialog.PrintRange @@ -75,6 +76,7 @@ class QPrintDialog(QAbstractPrintDialog): def __init__(self, printer: "QPrinter", parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... @typing.overload def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + accepted: typing.ClassVar[QtCore.pyqtSignal] @typing.overload def open(self) -> None: ... @@ -139,6 +141,7 @@ class QPrinter(QtGui.QPagedPaintDevice): DuplexAuto = ... # type: QPrinter.DuplexMode DuplexLongSide = ... # type: QPrinter.DuplexMode DuplexShortSide = ... # type: QPrinter.DuplexMode + class Unit(enum.Enum): Millimeter = ... # type: QPrinter.Unit Point = ... # type: QPrinter.Unit @@ -147,19 +150,23 @@ class QPrinter(QtGui.QPagedPaintDevice): Didot = ... # type: QPrinter.Unit Cicero = ... # type: QPrinter.Unit DevicePixel = ... # type: QPrinter.Unit + class PrintRange(enum.Enum): AllPages = ... # type: QPrinter.PrintRange Selection = ... # type: QPrinter.PrintRange PageRange = ... # type: QPrinter.PrintRange CurrentPage = ... # type: QPrinter.PrintRange + class OutputFormat(enum.Enum): NativeFormat = ... # type: QPrinter.OutputFormat PdfFormat = ... # type: QPrinter.OutputFormat + class PrinterState(enum.Enum): Idle = ... # type: QPrinter.PrinterState Active = ... # type: QPrinter.PrinterState Aborted = ... # type: QPrinter.PrinterState Error = ... # type: QPrinter.PrinterState + class PaperSource(enum.Enum): OnlyOne = ... # type: QPrinter.PaperSource Lower = ... # type: QPrinter.PaperSource @@ -178,12 +185,15 @@ class QPrinter(QtGui.QPagedPaintDevice): Upper = ... # type: QPrinter.PaperSource CustomSource = ... # type: QPrinter.PaperSource LastPaperSource = ... # type: QPrinter.PaperSource + class ColorMode(enum.Enum): GrayScale = ... # type: QPrinter.ColorMode Color = ... # type: QPrinter.ColorMode + class PageOrder(enum.Enum): FirstPageFirst = ... # type: QPrinter.PageOrder LastPageFirst = ... # type: QPrinter.PageOrder + class PrinterMode(enum.Enum): ScreenResolution = ... # type: QPrinter.PrinterMode PrinterResolution = ... # type: QPrinter.PrinterMode @@ -283,6 +293,7 @@ class QPrintPreviewDialog(QtWidgets.QDialog): def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... @typing.overload def __init__(self, printer: QPrinter, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + paintRequested: typing.ClassVar[QtCore.pyqtSignal] def done(self, result: int) -> None: ... def printer(self) -> QPrinter: ... @@ -297,6 +308,7 @@ class QPrintPreviewWidget(QtWidgets.QWidget): CustomZoom = ... # type: QPrintPreviewWidget.ZoomMode FitToWidth = ... # type: QPrintPreviewWidget.ZoomMode FitInView = ... # type: QPrintPreviewWidget.ZoomMode + class ViewMode(enum.Enum): SinglePageView = ... # type: QPrintPreviewWidget.ViewMode FacingPagesView = ... # type: QPrintPreviewWidget.ViewMode diff --git a/PyQt6-stubs/QtQml.pyi b/PyQt6-stubs/QtQml.pyi index 4435f74..bd59912 100644 --- a/PyQt6-stubs/QtQml.pyi +++ b/PyQt6-stubs/QtQml.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtQml module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -35,6 +35,7 @@ class QJSEngine(QtCore.QObject): class ObjectOwnership(enum.Enum): CppOwnership = ... # type: QJSEngine.ObjectOwnership JavaScriptOwnership = ... # type: QJSEngine.ObjectOwnership + class Extension(enum.Flag): TranslationExtension = ... # type: QJSEngine.Extension ConsoleExtension = ... # type: QJSEngine.Extension @@ -188,6 +189,17 @@ class QJSPrimitiveValue(PyQt6.sip.simplewrapper): def __init__(self, string: str) -> None: ... @typing.overload def __init__(self, a0: "QJSPrimitiveValue") -> None: ... + def __add__(self, lhs: "QJSPrimitiveValue", rhs: "QJSPrimitiveValue") -> "QJSPrimitiveValue": ... + def __sub__(self, lhs: "QJSPrimitiveValue", rhs: "QJSPrimitiveValue") -> "QJSPrimitiveValue": ... + def __mul__(self, lhs: "QJSPrimitiveValue", rhs: "QJSPrimitiveValue") -> "QJSPrimitiveValue": ... + def __truediv__(self, lhs: "QJSPrimitiveValue", rhs: "QJSPrimitiveValue") -> "QJSPrimitiveValue": ... + def __mod__(self, lhs: "QJSPrimitiveValue", rhs: "QJSPrimitiveValue") -> "QJSPrimitiveValue": ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: "QJSPrimitiveValue") -> bool: ... + def __gt__(self, rhs: "QJSPrimitiveValue") -> bool: ... + def __le__(self, rhs: "QJSPrimitiveValue") -> bool: ... + def __ge__(self, rhs: "QJSPrimitiveValue") -> bool: ... def __neg__(self) -> "QJSPrimitiveValue": ... def __pos__(self) -> "QJSPrimitiveValue": ... def equals(self, other: "QJSPrimitiveValue") -> bool: ... @@ -207,9 +219,11 @@ class QJSValue(PyQt6.sip.simplewrapper): SyntaxError = ... # type: QJSValue.ErrorType TypeError = ... # type: QJSValue.ErrorType URIError = ... # type: QJSValue.ErrorType + class ObjectConversionBehavior(enum.Enum): ConvertJSObjects = ... # type: QJSValue.ObjectConversionBehavior RetainJSObjects = ... # type: QJSValue.ObjectConversionBehavior + class SpecialValue(enum.Enum): NullValue = ... # type: QJSValue.SpecialValue UndefinedValue = ... # type: QJSValue.SpecialValue @@ -284,6 +298,7 @@ class QQmlAbstractUrlInterceptor(PyQt6.sip.simplewrapper): class QQmlEngine(QJSEngine): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def clearSingletons(self) -> None: ... def urlInterceptors(self) -> typing.List[QQmlAbstractUrlInterceptor]: ... def interceptUrl(self, url: QtCore.QUrl, type: QQmlAbstractUrlInterceptor.DataType) -> QtCore.QUrl: ... def removeUrlInterceptor(self, urlInterceptor: QQmlAbstractUrlInterceptor) -> None: ... @@ -331,6 +346,8 @@ class QQmlApplicationEngine(QQmlEngine): def __init__(self, url: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, filePath: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + objectCreationFailed: typing.ClassVar[QtCore.pyqtSignal] objectCreated: typing.ClassVar[QtCore.pyqtSignal] def setInitialProperties(self, initialProperties: typing.Dict[str, typing.Any]) -> None: ... def setExtraFileSelectors(self, extraFileSelectors: typing.Iterable[str]) -> None: ... @@ -347,6 +364,7 @@ class QQmlComponent(QtCore.QObject): Ready = ... # type: QQmlComponent.Status Loading = ... # type: QQmlComponent.Status Error = ... # type: QQmlComponent.Status + class CompilationMode(enum.Enum): PreferSynchronous = ... # type: QQmlComponent.CompilationMode Asynchronous = ... # type: QQmlComponent.CompilationMode @@ -393,10 +411,12 @@ class QQmlContext(QtCore.QObject): name = ... # type: str value = ... # type: typing.Any + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QQmlContext.PropertyPair") -> None: ... + @typing.overload def __init__(self, engine: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload @@ -421,6 +441,7 @@ class QQmlContext(QtCore.QObject): class QQmlImageProviderBase(QtCore.QObject): class Flag(enum.Flag): ForceAsynchronousImageLoading = ... # type: QQmlImageProviderBase.Flag + class ImageType(enum.Enum): Image = ... # type: QQmlImageProviderBase.ImageType Pixmap = ... # type: QQmlImageProviderBase.ImageType @@ -434,6 +455,9 @@ class QQmlError(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QQmlError") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def swap(self, other: "QQmlError") -> None: ... def setMessageType(self, messageType: QtCore.QtMsgType) -> None: ... def messageType(self) -> QtCore.QtMsgType: ... def setObject(self, a0: QtCore.QObject) -> None: ... @@ -456,6 +480,7 @@ class QQmlExpression(QtCore.QObject): def __init__(self, a0: QQmlContext, a1: QtCore.QObject, a2: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, a0: "QQmlScriptString", context: typing.Optional[QQmlContext] = ..., scope: typing.Optional[QtCore.QObject] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + valueChanged: typing.ClassVar[QtCore.pyqtSignal] def evaluate(self) -> typing.Tuple[typing.Any, bool]: ... def error(self) -> QQmlError: ... @@ -495,6 +520,7 @@ class QQmlIncubator(PyQt6.sip.simplewrapper): Ready = ... # type: QQmlIncubator.Status Loading = ... # type: QQmlIncubator.Status Error = ... # type: QQmlIncubator.Status + class IncubationMode(enum.Enum): Asynchronous = ... # type: QQmlIncubator.IncubationMode AsynchronousIfNested = ... # type: QQmlIncubator.IncubationMode @@ -530,6 +556,8 @@ class QQmlListReference(PyQt6.sip.simplewrapper): def __init__(self, a0: "QQmlListReference") -> None: ... @typing.overload def __init__(self, variant: typing.Any, engine: typing.Optional[QQmlEngine] = ...) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def removeLast(self) -> bool: ... def replace(self, a0: int, a1: QtCore.QObject) -> bool: ... def canRemoveLast(self) -> bool: ... @@ -569,6 +597,7 @@ class QQmlProperty(PyQt6.sip.simplewrapper): Invalid = ... # type: QQmlProperty.Type Property = ... # type: QQmlProperty.Type SignalProperty = ... # type: QQmlProperty.Type + class PropertyTypeCategory(enum.Enum): InvalidCategory = ... # type: QQmlProperty.PropertyTypeCategory List = ... # type: QQmlProperty.PropertyTypeCategory @@ -590,6 +619,8 @@ class QQmlProperty(PyQt6.sip.simplewrapper): def __init__(self, a0: QtCore.QObject, a1: str, a2: QQmlEngine) -> None: ... @typing.overload def __init__(self, a0: "QQmlProperty") -> None: ... + def __ne__(self, other: object): ... + def swap(self, other: "QQmlProperty") -> None: ... def method(self) -> QtCore.QMetaMethod: ... def property(self) -> QtCore.QMetaProperty: ... def index(self) -> int: ... @@ -636,6 +667,7 @@ class QQmlProperty(PyQt6.sip.simplewrapper): def isProperty(self) -> bool: ... def isValid(self) -> bool: ... def type(self) -> "QQmlProperty.Type": ... + def __eq__(self, other: object): ... def __hash__(self) -> int: ... class QQmlPropertyMap(QtCore.QObject): @@ -669,6 +701,8 @@ class QQmlScriptString(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QQmlScriptString") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def booleanLiteral(self) -> typing.Tuple[bool, bool]: ... def numberLiteral(self) -> typing.Tuple[float, bool]: ... def stringLiteral(self) -> str: ... diff --git a/PyQt6-stubs/QtQuick.pyi b/PyQt6-stubs/QtQuick.pyi index b6cde19..3c28de0 100644 --- a/PyQt6-stubs/QtQuick.pyi +++ b/PyQt6-stubs/QtQuick.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtQuick module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -42,6 +42,7 @@ class QQuickItem(QtCore.QObject, QtQml.QQmlParserStatus): BottomLeft = ... # type: QQuickItem.TransformOrigin Bottom = ... # type: QQuickItem.TransformOrigin BottomRight = ... # type: QQuickItem.TransformOrigin + class ItemChange(enum.Enum): ItemChildAddedChange = ... # type: QQuickItem.ItemChange ItemChildRemovedChange = ... # type: QQuickItem.ItemChange @@ -54,18 +55,23 @@ class QQuickItem(QtCore.QObject, QtQml.QQmlParserStatus): ItemAntialiasingHasChanged = ... # type: QQuickItem.ItemChange ItemDevicePixelRatioHasChanged = ... # type: QQuickItem.ItemChange ItemEnabledHasChanged = ... # type: QQuickItem.ItemChange + class Flag(enum.Flag): ItemClipsChildrenToShape = ... # type: QQuickItem.Flag ItemAcceptsInputMethod = ... # type: QQuickItem.Flag ItemIsFocusScope = ... # type: QQuickItem.Flag ItemHasContents = ... # type: QQuickItem.Flag ItemAcceptsDrops = ... # type: QQuickItem.Flag + ItemIsViewport = ... # type: QQuickItem.Flag + ItemObservesViewport = ... # type: QQuickItem.Flag + class ItemChangeData(PyQt6.sip.simplewrapper): boolValue = ... # type: bool item = ... # type: 'QQuickItem' realValue = ... # type: float window = ... # type: 'QQuickWindow' + @typing.overload def __init__(self, v: "QQuickItem") -> None: ... @typing.overload @@ -74,11 +80,17 @@ class QQuickItem(QtCore.QObject, QtQml.QQmlParserStatus): def __init__(self, v: float) -> None: ... @typing.overload def __init__(self, a0: "QQuickItem.ItemChangeData") -> None: ... + class UpdatePaintNodeData(PyQt6.sip.simplewrapper): transformNode = ... # type: 'QSGTransformNode' + def __init__(self, a0: "QQuickItem.UpdatePaintNodeData") -> None: ... + def __init__(self, parent: typing.Optional["QQuickItem"] = ...) -> None: ... + def dumpItemTree(self) -> None: ... + def ensurePolished(self) -> None: ... + def viewportItem(self) -> "QQuickItem": ... containmentMaskChanged: typing.ClassVar[QtCore.pyqtSignal] def setContainmentMask(self, mask: QtCore.QObject) -> None: ... def containmentMask(self) -> QtCore.QObject: ... @@ -251,6 +263,7 @@ class QQuickFramebufferObject(QQuickItem): from PyQt6.QtOpenGL import QOpenGLFramebufferObject except ImportError: pass + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -261,7 +274,9 @@ class QQuickFramebufferObject(QQuickItem): def synchronize(self, a0: "QQuickFramebufferObject") -> None: ... def createFramebufferObject(self, size: QtCore.QSize) -> QOpenGLFramebufferObject: ... def render(self) -> None: ... + def __init__(self, parent: typing.Optional[QQuickItem] = ...) -> None: ... + mirrorVerticallyChanged: typing.ClassVar[QtCore.pyqtSignal] def setMirrorVertically(self, enable: bool) -> None: ... def mirrorVertically(self) -> bool: ... @@ -315,6 +330,7 @@ class QQuickImageProvider(QtQml.QQmlImageProviderBase): class QQuickImageResponse(QtCore.QObject): def __init__(self) -> None: ... + finished: typing.ClassVar[QtCore.pyqtSignal] def cancel(self) -> None: ... def errorString(self) -> str: ... @@ -338,11 +354,13 @@ class QQuickItemGrabResult(QtCore.QObject): class QQuickPaintedItem(QQuickItem): class PerformanceHint(enum.Flag): FastFBOResizing = ... # type: QQuickPaintedItem.PerformanceHint + class RenderTarget(enum.Enum): Image = ... # type: QQuickPaintedItem.RenderTarget FramebufferObject = ... # type: QQuickPaintedItem.RenderTarget InvertedYFramebufferObject = ... # type: QQuickPaintedItem.RenderTarget def __init__(self, parent: typing.Optional[QQuickItem] = ...) -> None: ... + textureSizeChanged: typing.ClassVar[QtCore.pyqtSignal] def setTextureSize(self, size: QtCore.QSize) -> None: ... def textureSize(self) -> QtCore.QSize: ... @@ -401,10 +419,22 @@ class QQuickRenderTarget(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, other: "QQuickRenderTarget") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def setMirrorVertically(self, enable: bool) -> None: ... + def mirrorVertically(self) -> bool: ... + def setDevicePixelRatio(self, ratio: float) -> None: ... + def devicePixelRatio(self) -> float: ... + @staticmethod + def fromPaintDevice(device: QtGui.QPaintDevice) -> "QQuickRenderTarget": ... @staticmethod def fromOpenGLRenderBuffer(renderbufferId: int, pixelSize: QtCore.QSize, sampleCount: int = ...) -> "QQuickRenderTarget": ... + @typing.overload @staticmethod def fromOpenGLTexture(textureId: int, pixelSize: QtCore.QSize, sampleCount: int = ...) -> "QQuickRenderTarget": ... + @typing.overload + @staticmethod + def fromOpenGLTexture(textureId: int, format: int, pixelSize: QtCore.QSize, sampleCount: int = ...) -> "QQuickRenderTarget": ... def isNull(self) -> bool: ... class QQuickTextDocument(QtCore.QObject): @@ -415,6 +445,7 @@ class QQuickWindow(QtGui.QWindow): class TextRenderType(enum.Enum): QtTextRendering = ... # type: QQuickWindow.TextRenderType NativeTextRendering = ... # type: QQuickWindow.TextRenderType + class RenderStage(enum.Enum): BeforeSynchronizingStage = ... # type: QQuickWindow.RenderStage AfterSynchronizingStage = ... # type: QQuickWindow.RenderStage @@ -422,8 +453,10 @@ class QQuickWindow(QtGui.QWindow): AfterRenderingStage = ... # type: QQuickWindow.RenderStage AfterSwapStage = ... # type: QQuickWindow.RenderStage NoStage = ... # type: QQuickWindow.RenderStage + class SceneGraphError(enum.Enum): ContextNotAvailable = ... # type: QQuickWindow.SceneGraphError + class CreateTextureOption(enum.Flag): TextureHasAlphaChannel = ... # type: QQuickWindow.CreateTextureOption TextureHasMipmaps = ... # type: QQuickWindow.CreateTextureOption @@ -519,6 +552,7 @@ class QQuickView(QQuickWindow): Ready = ... # type: QQuickView.Status Loading = ... # type: QQuickView.Status Error = ... # type: QQuickView.Status + class ResizeMode(enum.Enum): SizeViewToRootObject = ... # type: QQuickView.ResizeMode SizeRootObjectToView = ... # type: QQuickView.ResizeMode @@ -556,6 +590,7 @@ class QSGMaterial(PyQt6.sip.wrapper): RequiresDeterminant = ... # type: QSGMaterial.Flag RequiresFullMatrixExceptTranslate = ... # type: QSGMaterial.Flag RequiresFullMatrix = ... # type: QSGMaterial.Flag + NoBatching = ... # type: QSGMaterial.Flag CustomCompileStep = ... # type: QSGMaterial.Flag def __init__(self) -> None: ... def setFlag(self, flags: "QSGMaterial.Flag", enabled: bool = ...) -> None: ... @@ -585,6 +620,7 @@ class QSGGeometry(PyQt6.sip.wrapper): Bytes3Type = ... # type: QSGGeometry.Type Bytes4Type = ... # type: QSGGeometry.Type DoubleType = ... # type: QSGGeometry.Type + class DrawingMode(enum.IntEnum): DrawPoints = ... # type: QSGGeometry.DrawingMode DrawLines = ... # type: QSGGeometry.DrawingMode @@ -593,6 +629,7 @@ class QSGGeometry(PyQt6.sip.wrapper): DrawTriangles = ... # type: QSGGeometry.DrawingMode DrawTriangleStrip = ... # type: QSGGeometry.DrawingMode DrawTriangleFan = ... # type: QSGGeometry.DrawingMode + class AttributeType(enum.Enum): UnknownAttribute = ... # type: QSGGeometry.AttributeType PositionAttribute = ... # type: QSGGeometry.AttributeType @@ -600,11 +637,13 @@ class QSGGeometry(PyQt6.sip.wrapper): TexCoordAttribute = ... # type: QSGGeometry.AttributeType TexCoord1Attribute = ... # type: QSGGeometry.AttributeType TexCoord2Attribute = ... # type: QSGGeometry.AttributeType + class DataPattern(enum.Enum): AlwaysUploadPattern = ... # type: QSGGeometry.DataPattern StreamPattern = ... # type: QSGGeometry.DataPattern DynamicPattern = ... # type: QSGGeometry.DataPattern StaticPattern = ... # type: QSGGeometry.DataPattern + class Attribute(PyQt6.sip.simplewrapper): attributeType = ... # type: 'QSGGeometry.AttributeType' @@ -612,6 +651,7 @@ class QSGGeometry(PyQt6.sip.wrapper): position = ... # type: int tupleSize = ... # type: int type = ... # type: int + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -620,32 +660,39 @@ class QSGGeometry(PyQt6.sip.wrapper): def createWithAttributeType(pos: int, tupleSize: int, primitiveType: int, attributeType: "QSGGeometry.AttributeType") -> "QSGGeometry.Attribute": ... @staticmethod def create(pos: int, tupleSize: int, primitiveType: int, isPosition: bool = ...) -> "QSGGeometry.Attribute": ... + class AttributeSet(PyQt6.sip.simplewrapper): attributes = ... # type: PyQt6.sip.array[QSGGeometry.Attribute] count = ... # type: int stride = ... # type: int + def __init__(self, attributes: typing.Iterable["QSGGeometry.Attribute"], stride: int = ...) -> None: ... + class Point2D(PyQt6.sip.simplewrapper): x = ... # type: float y = ... # type: float + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QSGGeometry.Point2D") -> None: ... def set(self, nx: float, ny: float) -> None: ... + class TexturedPoint2D(PyQt6.sip.simplewrapper): tx = ... # type: float ty = ... # type: float x = ... # type: float y = ... # type: float + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QSGGeometry.TexturedPoint2D") -> None: ... def set(self, nx: float, ny: float, ntx: float, nty: float) -> None: ... + class ColoredPoint2D(PyQt6.sip.simplewrapper): a = ... # type: int @@ -654,11 +701,13 @@ class QSGGeometry(PyQt6.sip.wrapper): r = ... # type: int x = ... # type: float y = ... # type: float + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QSGGeometry.ColoredPoint2D") -> None: ... def set(self, nx: float, ny: float, nr: int, ng: int, nb: int, na: int) -> None: ... + def __init__(self, attribs: "QSGGeometry.AttributeSet", vertexCount: int, indexCount: int = ..., indexType: int = ...) -> None: ... @staticmethod def updateColoredRectGeometry(g: "QSGGeometry", rect: QtCore.QRectF) -> None: ... @@ -706,12 +755,14 @@ class QSGNode(PyQt6.sip.wrapper): DirtyGeometry = ... # type: QSGNode.DirtyStateBit DirtyMaterial = ... # type: QSGNode.DirtyStateBit DirtyOpacity = ... # type: QSGNode.DirtyStateBit + class Flag(enum.Flag): OwnedByParent = ... # type: QSGNode.Flag UsePreprocess = ... # type: QSGNode.Flag OwnsGeometry = ... # type: QSGNode.Flag OwnsMaterial = ... # type: QSGNode.Flag OwnsOpaqueMaterial = ... # type: QSGNode.Flag + class NodeType(enum.Enum): BasicNodeType = ... # type: QSGNode.NodeType GeometryNodeType = ... # type: QSGNode.NodeType @@ -786,8 +837,10 @@ class QSGMaterialShader(PyQt6.sip.simplewrapper): class Stage(enum.Enum): VertexStage = ... # type: QSGMaterialShader.Stage FragmentStage = ... # type: QSGMaterialShader.Stage + class Flag(enum.Flag): UpdatesGraphicsPipelineState = ... # type: QSGMaterialShader.Flag + class RenderState(PyQt6.sip.simplewrapper): class DirtyState(enum.Flag): DirtyMatrix = ... # type: QSGMaterialShader.RenderState.DirtyState @@ -810,16 +863,23 @@ class QSGMaterialShader(PyQt6.sip.simplewrapper): def isOpacityDirty(self) -> bool: ... def isMatrixDirty(self) -> bool: ... def dirtyStates(self) -> "QSGMaterialShader.RenderState.DirtyState": ... + class GraphicsPipelineState(PyQt6.sip.simplewrapper): + class PolygonMode(enum.Enum): + Fill = ... # type: QSGMaterialShader.GraphicsPipelineState.PolygonMode + Line = ... # type: QSGMaterialShader.GraphicsPipelineState.PolygonMode + class CullMode(enum.Enum): CullNone = ... # type: QSGMaterialShader.GraphicsPipelineState.CullMode CullFront = ... # type: QSGMaterialShader.GraphicsPipelineState.CullMode CullBack = ... # type: QSGMaterialShader.GraphicsPipelineState.CullMode + class ColorMaskComponent(enum.Flag): R = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent G = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent B = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent A = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent + class BlendFactor(enum.Enum): Zero = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor One = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor @@ -844,8 +904,10 @@ class QSGMaterialShader(PyQt6.sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QSGMaterialShader.GraphicsPipelineState") -> None: ... + def __init__(self) -> None: ... def setShaderFileName(self, stage: "QSGMaterialShader.Stage", filename: str) -> None: ... + def combinedImageSamplerCount(self, binding: int) -> int: ... def setFlags(self, flags: "QSGMaterialShader.Flag") -> None: ... def setFlag(self, flags: "QSGMaterialShader.Flag", on: bool = ...) -> None: ... def flags(self) -> "QSGMaterialShader.Flag": ... @@ -890,18 +952,22 @@ class QSGRendererInterface(PyQt6.sip.simplewrapper): RenderMode2D = ... # type: QSGRendererInterface.RenderMode RenderMode2DNoDepthBuffer = ... # type: QSGRendererInterface.RenderMode RenderMode3D = ... # type: QSGRendererInterface.RenderMode + class ShaderSourceType(enum.Flag): ShaderSourceString = ... # type: QSGRendererInterface.ShaderSourceType ShaderSourceFile = ... # type: QSGRendererInterface.ShaderSourceType ShaderByteCode = ... # type: QSGRendererInterface.ShaderSourceType + class ShaderCompilationType(enum.Flag): RuntimeCompilation = ... # type: QSGRendererInterface.ShaderCompilationType OfflineCompilation = ... # type: QSGRendererInterface.ShaderCompilationType + class ShaderType(enum.Enum): UnknownShadingLanguage = ... # type: QSGRendererInterface.ShaderType GLSL = ... # type: QSGRendererInterface.ShaderType HLSL = ... # type: QSGRendererInterface.ShaderType RhiShader = ... # type: QSGRendererInterface.ShaderType + class Resource(enum.Enum): DeviceResource = ... # type: QSGRendererInterface.Resource CommandQueueResource = ... # type: QSGRendererInterface.Resource @@ -917,6 +983,8 @@ class QSGRendererInterface(PyQt6.sip.simplewrapper): RhiSwapchainResource = ... # type: QSGRendererInterface.Resource RhiRedirectCommandBuffer = ... # type: QSGRendererInterface.Resource RhiRedirectRenderTarget = ... # type: QSGRendererInterface.Resource + RedirectPaintDevice = ... # type: QSGRendererInterface.Resource + class GraphicsApi(enum.Enum): Unknown = ... # type: QSGRendererInterface.GraphicsApi Software = ... # type: QSGRendererInterface.GraphicsApi @@ -947,6 +1015,7 @@ class QSGRenderNode(QSGNode): BoundedRectRendering = ... # type: QSGRenderNode.RenderingFlag DepthAwareRendering = ... # type: QSGRenderNode.RenderingFlag OpaqueRendering = ... # type: QSGRenderNode.RenderingFlag + class StateFlag(enum.Flag): DepthState = ... # type: QSGRenderNode.StateFlag StencilState = ... # type: QSGRenderNode.StateFlag @@ -956,6 +1025,7 @@ class QSGRenderNode(QSGNode): CullState = ... # type: QSGRenderNode.StateFlag ViewportState = ... # type: QSGRenderNode.StateFlag RenderTargetState = ... # type: QSGRenderNode.StateFlag + class RenderState(PyQt6.sip.simplewrapper): def get(self, state: str) -> PyQt6.sip.voidptr: ... def clipRegion(self) -> QtGui.QRegion: ... @@ -964,6 +1034,7 @@ class QSGRenderNode(QSGNode): def scissorEnabled(self) -> bool: ... def scissorRect(self) -> QtCore.QRect: ... def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + def __init__(self) -> None: ... def prepare(self) -> None: ... def inheritedOpacity(self) -> float: ... @@ -1020,10 +1091,12 @@ class QSGTexture(QtCore.QObject): Anisotropy4x = ... # type: QSGTexture.AnisotropyLevel Anisotropy8x = ... # type: QSGTexture.AnisotropyLevel Anisotropy16x = ... # type: QSGTexture.AnisotropyLevel + class Filtering(enum.Enum): None_ = ... # type: QSGTexture.Filtering Nearest = ... # type: QSGTexture.Filtering Linear = ... # type: QSGTexture.Filtering + class WrapMode(enum.Enum): Repeat = ... # type: QSGTexture.WrapMode ClampToEdge = ... # type: QSGTexture.WrapMode @@ -1082,6 +1155,7 @@ class QSGTextureMaterial(QSGOpaqueTextureMaterial): class QSGTextureProvider(QtCore.QObject): def __init__(self) -> None: ... + textureChanged: typing.ClassVar[QtCore.pyqtSignal] def texture(self) -> QSGTexture: ... diff --git a/PyQt6-stubs/QtQuick3D.pyi b/PyQt6-stubs/QtQuick3D.pyi index 3ecb142..aec52ac 100644 --- a/PyQt6-stubs/QtQuick3D.pyi +++ b/PyQt6-stubs/QtQuick3D.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtQuick3D module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -57,12 +57,14 @@ class QQuick3DGeometry(QQuick3DObject): TriangleStrip = ... # type: QQuick3DGeometry.PrimitiveType TriangleFan = ... # type: QQuick3DGeometry.PrimitiveType Triangles = ... # type: QQuick3DGeometry.PrimitiveType + class Attribute(PyQt6.sip.simplewrapper): class ComponentType(enum.Enum): U16Type = ... # type: QQuick3DGeometry.Attribute.ComponentType U32Type = ... # type: QQuick3DGeometry.Attribute.ComponentType F32Type = ... # type: QQuick3DGeometry.Attribute.ComponentType I32Type = ... # type: QQuick3DGeometry.Attribute.ComponentType + class Semantic(enum.Enum): IndexSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic PositionSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic @@ -82,11 +84,22 @@ class QQuick3DGeometry(QQuick3DObject): componentType = ... # type: 'QQuick3DGeometry.Attribute.ComponentType' offset = ... # type: int semantic = ... # type: 'QQuick3DGeometry.Attribute.Semantic' + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QQuick3DGeometry.Attribute") -> None: ... + def __init__(self, parent: typing.Optional[QQuick3DObject] = ...) -> None: ... + def addSubset(self, offset: int, count: int, boundsMin: QtGui.QVector3D, boundsMax: QtGui.QVector3D, name: str = ...) -> None: ... + def subsetName(self, subset: int) -> str: ... + def subsetOffset(self, subset: int) -> int: ... + def subsetBoundsMax(self, subset: int) -> QtGui.QVector3D: ... + def subsetBoundsMin(self, subset: int) -> QtGui.QVector3D: ... + @typing.overload + def subsetCount(self, subset: int) -> int: ... + @typing.overload + def subsetCount(self) -> int: ... def indexData(self) -> QtCore.QByteArray: ... def vertexData(self) -> QtCore.QByteArray: ... def clear(self) -> None: ... diff --git a/PyQt6-stubs/QtQuickWidgets.pyi b/PyQt6-stubs/QtQuickWidgets.pyi index 90c85d4..ecbfb3a 100644 --- a/PyQt6-stubs/QtQuickWidgets.pyi +++ b/PyQt6-stubs/QtQuickWidgets.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtQuickWidgets module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -37,6 +37,7 @@ class QQuickWidget(QtWidgets.QWidget): Ready = ... # type: QQuickWidget.Status Loading = ... # type: QQuickWidget.Status Error = ... # type: QQuickWidget.Status + class ResizeMode(enum.Enum): SizeViewToRootObject = ... # type: QQuickWidget.ResizeMode SizeRootObjectToView = ... # type: QQuickWidget.ResizeMode diff --git a/PyQt6-stubs/QtRemoteObjects.pyi b/PyQt6-stubs/QtRemoteObjects.pyi index fddaabb..7700d51 100644 --- a/PyQt6-stubs/QtRemoteObjects.pyi +++ b/PyQt6-stubs/QtRemoteObjects.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtRemoteObjects module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -35,12 +35,15 @@ class QRemoteObjectSourceLocationInfo(PyQt6.sip.simplewrapper): hostUrl = ... # type: QtCore.QUrl typeName = ... # type: str + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, typeName_: str, hostUrl_: QtCore.QUrl) -> None: ... @typing.overload def __init__(self, a0: "QRemoteObjectSourceLocationInfo") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QtRemoteObjects(PyQt6.sip.simplewrapper): class InitialAction(enum.Enum): @@ -151,6 +154,7 @@ class QRemoteObjectHost(QRemoteObjectHostBase): def __init__(self, address: QtCore.QUrl, registryAddress: QtCore.QUrl = ..., allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, address: QtCore.QUrl, parent: QtCore.QObject) -> None: ... + hostUrlChanged: typing.ClassVar[QtCore.pyqtSignal] def setHostUrl(self, hostAddress: QtCore.QUrl, allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = ...) -> bool: ... def hostUrl(self) -> QtCore.QUrl: ... diff --git a/PyQt6-stubs/QtSensors.pyi b/PyQt6-stubs/QtSensors.pyi index 5a83739..64fa049 100644 --- a/PyQt6-stubs/QtSensors.pyi +++ b/PyQt6-stubs/QtSensors.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtSensors module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -64,6 +64,7 @@ class QSensor(QtCore.QObject): FixedOrientation = ... # type: QSensor.AxesOrientationMode AutomaticOrientation = ... # type: QSensor.AxesOrientationMode UserOrientation = ... # type: QSensor.AxesOrientationMode + class Feature(enum.Enum): Buffering = ... # type: QSensor.Feature AlwaysOn = ... # type: QSensor.Feature @@ -74,6 +75,7 @@ class QSensor(QtCore.QObject): AxesOrientation = ... # type: QSensor.Feature PressureSensorTemperature = ... # type: QSensor.Feature def __init__(self, type: QtCore.QByteArray, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + identifierChanged: typing.ClassVar[QtCore.pyqtSignal] bufferSizeChanged: typing.ClassVar[QtCore.pyqtSignal] efficientBufferSizeChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -141,6 +143,7 @@ class QAccelerometer(QSensor): Gravity = ... # type: QAccelerometer.AccelerationMode User = ... # type: QAccelerometer.AccelerationMode def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + accelerationModeChanged: typing.ClassVar[QtCore.pyqtSignal] def reading(self) -> QAccelerometerReading: ... def setAccelerationMode(self, accelerationMode: "QAccelerometer.AccelerationMode") -> None: ... @@ -284,6 +287,7 @@ class QLightFilter(QSensorFilter): class QLightSensor(QSensor): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + fieldOfViewChanged: typing.ClassVar[QtCore.pyqtSignal] def setFieldOfView(self, fieldOfView: float) -> None: ... def fieldOfView(self) -> float: ... @@ -308,6 +312,7 @@ class QMagnetometerFilter(QSensorFilter): class QMagnetometer(QSensor): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + returnGeoValuesChanged: typing.ClassVar[QtCore.pyqtSignal] def setReturnGeoValues(self, returnGeoValues: bool) -> None: ... def returnGeoValues(self) -> bool: ... @@ -383,6 +388,7 @@ class QRotationFilter(QSensorFilter): class QRotationSensor(QSensor): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + hasZChanged: typing.ClassVar[QtCore.pyqtSignal] def setHasZ(self, hasZ: bool) -> None: ... def hasZ(self) -> bool: ... @@ -393,6 +399,7 @@ class qoutputrange(PyQt6.sip.simplewrapper): accuracy = ... # type: float maximum = ... # type: float minimum = ... # type: float + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -427,6 +434,7 @@ class QTapFilter(QSensorFilter): class QTapSensor(QSensor): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + returnDoubleTapEventsChanged: typing.ClassVar[QtCore.pyqtSignal] def setReturnDoubleTapEvents(self, returnDoubleTapEvents: bool) -> None: ... def returnDoubleTapEvents(self) -> bool: ... diff --git a/PyQt6-stubs/QtSerialPort.pyi b/PyQt6-stubs/QtSerialPort.pyi index 787c7df..dc39445 100644 --- a/PyQt6-stubs/QtSerialPort.pyi +++ b/PyQt6-stubs/QtSerialPort.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtSerialPort module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -44,6 +44,7 @@ class QSerialPort(QtCore.QIODevice): TimeoutError = ... # type: QSerialPort.SerialPortError NotOpenError = ... # type: QSerialPort.SerialPortError UnknownError = ... # type: QSerialPort.SerialPortError + class PinoutSignal(enum.Flag): NoSignal = ... # type: QSerialPort.PinoutSignal DataTerminalReadySignal = ... # type: QSerialPort.PinoutSignal @@ -54,25 +55,30 @@ class QSerialPort(QtCore.QIODevice): ClearToSendSignal = ... # type: QSerialPort.PinoutSignal SecondaryTransmittedDataSignal = ... # type: QSerialPort.PinoutSignal SecondaryReceivedDataSignal = ... # type: QSerialPort.PinoutSignal + class FlowControl(enum.Enum): NoFlowControl = ... # type: QSerialPort.FlowControl HardwareControl = ... # type: QSerialPort.FlowControl SoftwareControl = ... # type: QSerialPort.FlowControl + class StopBits(enum.Enum): OneStop = ... # type: QSerialPort.StopBits OneAndHalfStop = ... # type: QSerialPort.StopBits TwoStop = ... # type: QSerialPort.StopBits + class Parity(enum.Enum): NoParity = ... # type: QSerialPort.Parity EvenParity = ... # type: QSerialPort.Parity OddParity = ... # type: QSerialPort.Parity SpaceParity = ... # type: QSerialPort.Parity MarkParity = ... # type: QSerialPort.Parity + class DataBits(enum.Enum): Data5 = ... # type: QSerialPort.DataBits Data6 = ... # type: QSerialPort.DataBits Data7 = ... # type: QSerialPort.DataBits Data8 = ... # type: QSerialPort.DataBits + class BaudRate(enum.Enum): Baud1200 = ... # type: QSerialPort.BaudRate Baud2400 = ... # type: QSerialPort.BaudRate @@ -82,6 +88,7 @@ class QSerialPort(QtCore.QIODevice): Baud38400 = ... # type: QSerialPort.BaudRate Baud57600 = ... # type: QSerialPort.BaudRate Baud115200 = ... # type: QSerialPort.BaudRate + class Direction(enum.Flag): Input = ... # type: QSerialPort.Direction Output = ... # type: QSerialPort.Direction @@ -92,11 +99,12 @@ class QSerialPort(QtCore.QIODevice): def __init__(self, name: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, info: "QSerialPortInfo", parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] breakEnabledChanged: typing.ClassVar[QtCore.pyqtSignal] def isBreakEnabled(self) -> bool: ... def handle(self) -> PyQt6.sip.voidptr: ... - def writeData(self, data: bytes) -> int: ... # type: ignore[override] + def writeData(self, data: PyQt6.sip.array[bytes]) -> int: ... # type: ignore[override] def readLineData(self, maxlen: int) -> bytes: ... def readData(self, maxlen: int) -> bytes: ... requestToSendChanged: typing.ClassVar[QtCore.pyqtSignal] diff --git a/PyQt6-stubs/QtSql.pyi b/PyQt6-stubs/QtSql.pyi index 7875223..aa70d4d 100644 --- a/PyQt6-stubs/QtSql.pyi +++ b/PyQt6-stubs/QtSql.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtSql module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -118,19 +118,23 @@ class QSqlDriver(QtCore.QObject): SQLite = ... # type: QSqlDriver.DbmsType Interbase = ... # type: QSqlDriver.DbmsType DB2 = ... # type: QSqlDriver.DbmsType + class NotificationSource(enum.Enum): UnknownSource = ... # type: QSqlDriver.NotificationSource SelfSource = ... # type: QSqlDriver.NotificationSource OtherSource = ... # type: QSqlDriver.NotificationSource + class IdentifierType(enum.Enum): FieldName = ... # type: QSqlDriver.IdentifierType TableName = ... # type: QSqlDriver.IdentifierType + class StatementType(enum.Enum): WhereStatement = ... # type: QSqlDriver.StatementType SelectStatement = ... # type: QSqlDriver.StatementType UpdateStatement = ... # type: QSqlDriver.StatementType InsertStatement = ... # type: QSqlDriver.StatementType DeleteStatement = ... # type: QSqlDriver.StatementType + class DriverFeature(enum.Enum): Transactions = ... # type: QSqlDriver.DriverFeature QuerySize = ... # type: QSqlDriver.DriverFeature @@ -191,6 +195,8 @@ class QSqlError(PyQt6.sip.simplewrapper): def __init__(self, other: "QSqlError") -> None: ... def swap(self, other: "QSqlError") -> None: ... def nativeErrorCode(self) -> str: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def isValid(self) -> bool: ... def text(self) -> str: ... def type(self) -> "QSqlError.ErrorType": ... @@ -234,6 +240,8 @@ class QSqlField(PyQt6.sip.simplewrapper): def setName(self, name: str) -> None: ... def value(self) -> typing.Any: ... def setValue(self, value: typing.Any) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QSqlRecord(PyQt6.sip.simplewrapper): @typing.overload @@ -281,6 +289,8 @@ class QSqlRecord(PyQt6.sip.simplewrapper): def value(self, i: int) -> typing.Any: ... @typing.overload def value(self, name: str) -> typing.Any: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QSqlIndex(QSqlRecord): @typing.overload @@ -558,16 +568,19 @@ class QSql(PyQt6.sip.simplewrapper): LowPrecisionInt64 = ... # type: QSql.NumericalPrecisionPolicy LowPrecisionDouble = ... # type: QSql.NumericalPrecisionPolicy HighPrecision = ... # type: QSql.NumericalPrecisionPolicy + class TableType(enum.Enum): Tables = ... # type: QSql.TableType SystemTables = ... # type: QSql.TableType Views = ... # type: QSql.TableType AllTables = ... # type: QSql.TableType + class ParamTypeFlag(enum.Flag): In = ... # type: QSql.ParamTypeFlag Out = ... # type: QSql.ParamTypeFlag InOut = ... # type: QSql.ParamTypeFlag Binary = ... # type: QSql.ParamTypeFlag + class Location(enum.Enum): BeforeFirstRow = ... # type: QSql.Location AfterLastRow = ... # type: QSql.Location diff --git a/PyQt6-stubs/QtSvg.pyi b/PyQt6-stubs/QtSvg.pyi index 192d327..d6b214a 100644 --- a/PyQt6-stubs/QtSvg.pyi +++ b/PyQt6-stubs/QtSvg.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtSvg module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # diff --git a/PyQt6-stubs/QtSvgWidgets.pyi b/PyQt6-stubs/QtSvgWidgets.pyi index f71b0c9..55186d7 100644 --- a/PyQt6-stubs/QtSvgWidgets.pyi +++ b/PyQt6-stubs/QtSvgWidgets.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtSvgWidgets module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # diff --git a/PyQt6-stubs/QtTest.pyi b/PyQt6-stubs/QtTest.pyi index 0bff113..86ada62 100644 --- a/PyQt6-stubs/QtTest.pyi +++ b/PyQt6-stubs/QtTest.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtTest module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -40,6 +40,7 @@ class QAbstractItemModelTester(QtCore.QObject): def __init__(self, model: QtCore.QAbstractItemModel, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, model: QtCore.QAbstractItemModel, mode: "QAbstractItemModelTester.FailureReportingMode", parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def setUseFetchMore(self, value: bool) -> None: ... def failureReportingMode(self) -> "QAbstractItemModelTester.FailureReportingMode": ... def model(self) -> QtCore.QAbstractItemModel: ... diff --git a/PyQt6-stubs/QtTextToSpeech.pyi b/PyQt6-stubs/QtTextToSpeech.pyi new file mode 100644 index 0000000..4bc31a9 --- /dev/null +++ b/PyQt6-stubs/QtTextToSpeech.pyi @@ -0,0 +1,118 @@ +# The PEP 484 type hints stub file for the QtTextToSpeech module. +# +# Generated by SIP 6.7.0 +# +# Copyright (c) 2022 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +# Support for QDate, QDateTime and QTime. +import datetime +import enum +import typing + +import PyQt6.sip +from PyQt6 import QtCore + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +class QTextToSpeech(QtCore.QObject): + class State(enum.Enum): + Ready = ... # type: QTextToSpeech.State + Speaking = ... # type: QTextToSpeech.State + Paused = ... # type: QTextToSpeech.State + Error = ... # type: QTextToSpeech.State + + class ErrorReason(enum.Enum): + NoError = ... # type: QTextToSpeech.ErrorReason + Initialization = ... # type: QTextToSpeech.ErrorReason + Configuration = ... # type: QTextToSpeech.ErrorReason + Input = ... # type: QTextToSpeech.ErrorReason + Playback = ... # type: QTextToSpeech.ErrorReason + + class BoundaryHint(enum.Enum): + Default = ... # type: QTextToSpeech.BoundaryHint + Immediate = ... # type: QTextToSpeech.BoundaryHint + Word = ... # type: QTextToSpeech.BoundaryHint + Sentence = ... # type: QTextToSpeech.BoundaryHint + @typing.overload + def __init__(self, engine: str, params: typing.Dict[str, typing.Any], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, engine: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + engineChanged: typing.ClassVar[QtCore.pyqtSignal] + voiceChanged: typing.ClassVar[QtCore.pyqtSignal] + volumeChanged: typing.ClassVar[QtCore.pyqtSignal] + pitchChanged: typing.ClassVar[QtCore.pyqtSignal] + rateChanged: typing.ClassVar[QtCore.pyqtSignal] + localeChanged: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + def setVoice(self, voice: "QVoice") -> None: ... + def setVolume(self, volume: float) -> None: ... + def setPitch(self, pitch: float) -> None: ... + def setRate(self, rate: float) -> None: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def resume(self) -> None: ... + def pause(self, boundaryHint: "QTextToSpeech.BoundaryHint" = ...) -> None: ... + def stop(self, boundaryHint: "QTextToSpeech.BoundaryHint" = ...) -> None: ... + def say(self, text: str) -> None: ... + @staticmethod + def availableEngines() -> typing.List[str]: ... + def volume(self) -> float: ... + def pitch(self) -> float: ... + def rate(self) -> float: ... + def availableVoices(self) -> typing.List["QVoice"]: ... + def voice(self) -> "QVoice": ... + def locale(self) -> QtCore.QLocale: ... + def availableLocales(self) -> typing.List[QtCore.QLocale]: ... + def state(self) -> "QTextToSpeech.State": ... + def errorString(self) -> str: ... + def errorReason(self) -> "QTextToSpeech.ErrorReason": ... + def engine(self) -> str: ... + def setEngine(self, engine: str, params: typing.Dict[str, typing.Any] = ...) -> bool: ... + +class QVoice(PyQt6.sip.simplewrapper): + class Age(enum.Enum): + Child = ... # type: QVoice.Age + Teenager = ... # type: QVoice.Age + Adult = ... # type: QVoice.Age + Senior = ... # type: QVoice.Age + Other = ... # type: QVoice.Age + + class Gender(enum.Enum): + Male = ... # type: QVoice.Gender + Female = ... # type: QVoice.Gender + Unknown = ... # type: QVoice.Gender + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: "QVoice") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def locale(self) -> QtCore.QLocale: ... + def swap(self, other: "QVoice") -> None: ... + @staticmethod + def ageName(age: "QVoice.Age") -> str: ... + @staticmethod + def genderName(gender: "QVoice.Gender") -> str: ... + def age(self) -> "QVoice.Age": ... + def gender(self) -> "QVoice.Gender": ... + def name(self) -> str: ... diff --git a/PyQt6-stubs/QtWebChannel.pyi b/PyQt6-stubs/QtWebChannel.pyi index 9744d44..f9ad60d 100644 --- a/PyQt6-stubs/QtWebChannel.pyi +++ b/PyQt6-stubs/QtWebChannel.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtWebChannel module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -33,6 +33,7 @@ PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] class QWebChannel(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + blockUpdatesChanged: typing.ClassVar[QtCore.pyqtSignal] def disconnectFrom(self, transport: "QWebChannelAbstractTransport") -> None: ... def connectTo(self, transport: "QWebChannelAbstractTransport") -> None: ... @@ -47,5 +48,6 @@ class QWebChannel(QtCore.QObject): class QWebChannelAbstractTransport(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + messageReceived: typing.ClassVar[QtCore.pyqtSignal] def sendMessage(self, message: typing.Dict[str, typing.Union[QtCore.QJsonValue, QtCore.QJsonValue.Type, typing.Iterable[QtCore.QJsonValue], bool, int, float, None, str]]) -> None: ... diff --git a/PyQt6-stubs/QtWebSockets.pyi b/PyQt6-stubs/QtWebSockets.pyi index 04c53a2..1f94e8e 100644 --- a/PyQt6-stubs/QtWebSockets.pyi +++ b/PyQt6-stubs/QtWebSockets.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtWebSockets module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -38,6 +38,8 @@ class QMaskGenerator(QtCore.QObject): class QWebSocket(QtCore.QObject): def __init__(self, origin: str = ..., version: "QWebSocketProtocol.Version" = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def subprotocol(self) -> str: ... + def handshakeOptions(self) -> "QWebSocketHandshakeOptions": ... handshakeInterruptedOnError: typing.ClassVar[QtCore.pyqtSignal] alertReceived: typing.ClassVar[QtCore.pyqtSignal] alertSent: typing.ClassVar[QtCore.pyqtSignal] @@ -72,6 +74,10 @@ class QWebSocket(QtCore.QObject): aboutToClose: typing.ClassVar[QtCore.pyqtSignal] def ping(self, payload: QtCore.QByteArray = ...) -> None: ... @typing.overload + def open(self, request: QtNetwork.QNetworkRequest, options: "QWebSocketHandshakeOptions") -> None: ... + @typing.overload + def open(self, url: QtCore.QUrl, options: "QWebSocketHandshakeOptions") -> None: ... + @typing.overload def open(self, url: QtCore.QUrl) -> None: ... @typing.overload def open(self, request: QtNetwork.QNetworkRequest) -> None: ... @@ -122,6 +128,17 @@ class QWebSocketCorsAuthenticator(PyQt6.sip.simplewrapper): def origin(self) -> str: ... def swap(self, other: "QWebSocketCorsAuthenticator") -> None: ... +class QWebSocketHandshakeOptions(PyQt6.sip.simplewrapper): + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: "QWebSocketHandshakeOptions") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def setSubprotocols(self, protocols: typing.Iterable[str]) -> None: ... + def subprotocols(self) -> typing.List[str]: ... + def swap(self, other: "QWebSocketHandshakeOptions") -> None: ... + class QWebSocketProtocol(PyQt6.sip.simplewrapper): class CloseCode(enum.Enum): CloseCodeNormal = ... # type: QWebSocketProtocol.CloseCode @@ -137,6 +154,7 @@ class QWebSocketProtocol(PyQt6.sip.simplewrapper): CloseCodeMissingExtension = ... # type: QWebSocketProtocol.CloseCode CloseCodeBadOperation = ... # type: QWebSocketProtocol.CloseCode CloseCodeTlsHandshakeFailed = ... # type: QWebSocketProtocol.CloseCode + class Version(enum.Enum): VersionUnknown = ... # type: QWebSocketProtocol.Version Version0 = ... # type: QWebSocketProtocol.Version @@ -153,6 +171,8 @@ class QWebSocketServer(QtCore.QObject): SecureMode = ... # type: QWebSocketServer.SslMode NonSecureMode = ... # type: QWebSocketServer.SslMode def __init__(self, serverName: str, secureMode: "QWebSocketServer.SslMode", parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def supportedSubprotocols(self) -> typing.List[str]: ... + def setSupportedSubprotocols(self, protocols: typing.Iterable[str]) -> None: ... def handshakeTimeoutMS(self) -> int: ... def setHandshakeTimeout(self, msec: int) -> None: ... preSharedKeyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] diff --git a/PyQt6-stubs/QtWidgets.pyi b/PyQt6-stubs/QtWidgets.pyi index 57358b7..f16afac 100644 --- a/PyQt6-stubs/QtWidgets.pyi +++ b/PyQt6-stubs/QtWidgets.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtWidgets module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -59,8 +59,8 @@ class QWidget(QtCore.QObject, QtGui.QPaintDevice): def inputMethodHints(self) -> QtCore.Qt.InputMethodHint: ... def previousInFocusChain(self) -> "QWidget": ... def contentsMargins(self) -> QtCore.QMargins: ... - def ungrabGesture(self, type: int) -> None: ... - def grabGesture(self, type: int, flags: QtCore.Qt.GestureFlag = ...) -> None: ... + def ungrabGesture(self, type: QtCore.Qt.GestureType) -> None: ... + def grabGesture(self, type: QtCore.Qt.GestureType, flags: QtCore.Qt.GestureFlag = ...) -> None: ... def setGraphicsEffect(self, effect: "QGraphicsEffect") -> None: ... def graphicsEffect(self) -> "QGraphicsEffect": ... def graphicsProxyWidget(self) -> "QGraphicsProxyWidget": ... @@ -163,6 +163,23 @@ class QWidget(QtCore.QObject, QtGui.QPaintDevice): def insertActions(self, before: QtGui.QAction, actions: typing.Iterable[QtGui.QAction]) -> None: ... def insertAction(self, before: QtGui.QAction, action: QtGui.QAction) -> None: ... def addActions(self, actions: typing.Iterable[QtGui.QAction]) -> None: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str) -> QtGui.QAction: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str, slot: PYQT_SLOT, type: QtCore.Qt.ConnectionType = ...) -> QtGui.QAction: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str, shortcut: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> QtGui.QAction: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str, shortcut: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], slot: PYQT_SLOT, type: QtCore.Qt.ConnectionType = ...) -> QtGui.QAction: ... + @typing.overload + def addAction(self, text: str) -> QtGui.QAction: ... + @typing.overload + def addAction(self, text: str, shortcut: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> QtGui.QAction: ... + @typing.overload + def addAction(self, text: str, slot: PYQT_SLOT, type: QtCore.Qt.ConnectionType = ...) -> QtGui.QAction: ... + @typing.overload + def addAction(self, text: str, shortcut: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], slot: PYQT_SLOT, type: QtCore.Qt.ConnectionType = ...) -> QtGui.QAction: ... + @typing.overload def addAction(self, action: QtGui.QAction) -> None: ... def setAcceptDrops(self, on: bool) -> None: ... def acceptDrops(self) -> bool: ... @@ -440,6 +457,7 @@ class QAbstractItemDelegate(QtCore.QObject): SubmitModelCache = ... # type: QAbstractItemDelegate.EndEditHint RevertModelCache = ... # type: QAbstractItemDelegate.EndEditHint def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + sizeHintChanged: typing.ClassVar[QtCore.pyqtSignal] closeEditor: typing.ClassVar[QtCore.pyqtSignal] commitData: typing.ClassVar[QtCore.pyqtSignal] @@ -457,6 +475,7 @@ class QFrame(QWidget): class StyleMask(enum.Enum): Shadow_Mask = ... # type: QFrame.StyleMask Shape_Mask = ... # type: QFrame.StyleMask + class Shape(enum.IntEnum): NoFrame = ... # type: QFrame.Shape Box = ... # type: QFrame.Shape @@ -465,6 +484,7 @@ class QFrame(QWidget): HLine = ... # type: QFrame.Shape VLine = ... # type: QFrame.Shape StyledPanel = ... # type: QFrame.Shape + class Shadow(enum.IntEnum): Plain = ... # type: QFrame.Shadow Raised = ... # type: QFrame.Shadow @@ -546,6 +566,7 @@ class QAbstractItemView(QAbstractScrollArea): AboveItem = ... # type: QAbstractItemView.DropIndicatorPosition BelowItem = ... # type: QAbstractItemView.DropIndicatorPosition OnViewport = ... # type: QAbstractItemView.DropIndicatorPosition + class State(enum.Enum): NoState = ... # type: QAbstractItemView.State DraggingState = ... # type: QAbstractItemView.State @@ -554,6 +575,7 @@ class QAbstractItemView(QAbstractScrollArea): ExpandingState = ... # type: QAbstractItemView.State CollapsingState = ... # type: QAbstractItemView.State AnimatingState = ... # type: QAbstractItemView.State + class CursorAction(enum.Enum): MoveUp = ... # type: QAbstractItemView.CursorAction MoveDown = ... # type: QAbstractItemView.CursorAction @@ -565,24 +587,29 @@ class QAbstractItemView(QAbstractScrollArea): MovePageDown = ... # type: QAbstractItemView.CursorAction MoveNext = ... # type: QAbstractItemView.CursorAction MovePrevious = ... # type: QAbstractItemView.CursorAction + class SelectionMode(enum.Enum): NoSelection = ... # type: QAbstractItemView.SelectionMode SingleSelection = ... # type: QAbstractItemView.SelectionMode MultiSelection = ... # type: QAbstractItemView.SelectionMode ExtendedSelection = ... # type: QAbstractItemView.SelectionMode ContiguousSelection = ... # type: QAbstractItemView.SelectionMode + class SelectionBehavior(enum.Enum): SelectItems = ... # type: QAbstractItemView.SelectionBehavior SelectRows = ... # type: QAbstractItemView.SelectionBehavior SelectColumns = ... # type: QAbstractItemView.SelectionBehavior + class ScrollMode(enum.Enum): ScrollPerItem = ... # type: QAbstractItemView.ScrollMode ScrollPerPixel = ... # type: QAbstractItemView.ScrollMode + class ScrollHint(enum.Enum): EnsureVisible = ... # type: QAbstractItemView.ScrollHint PositionAtTop = ... # type: QAbstractItemView.ScrollHint PositionAtBottom = ... # type: QAbstractItemView.ScrollHint PositionAtCenter = ... # type: QAbstractItemView.ScrollHint + class EditTrigger(enum.Flag): NoEditTriggers = ... # type: QAbstractItemView.EditTrigger CurrentChanged = ... # type: QAbstractItemView.EditTrigger @@ -591,6 +618,7 @@ class QAbstractItemView(QAbstractScrollArea): EditKeyPressed = ... # type: QAbstractItemView.EditTrigger AnyKeyPressed = ... # type: QAbstractItemView.EditTrigger AllEditTriggers = ... # type: QAbstractItemView.EditTrigger + class DragDropMode(enum.Enum): NoDragDrop = ... # type: QAbstractItemView.DragDropMode DragOnly = ... # type: QAbstractItemView.DragDropMode @@ -739,6 +767,7 @@ class QAbstractSlider(QWidget): SliderOrientationChange = ... # type: QAbstractSlider.SliderChange SliderStepsChange = ... # type: QAbstractSlider.SliderChange SliderValueChange = ... # type: QAbstractSlider.SliderChange + class SliderAction(enum.Enum): SliderNoAction = ... # type: QAbstractSlider.SliderAction SliderSingleStepAdd = ... # type: QAbstractSlider.SliderAction @@ -792,13 +821,16 @@ class QAbstractSpinBox(QWidget): class StepType(enum.Enum): DefaultStepType = ... # type: QAbstractSpinBox.StepType AdaptiveDecimalStepType = ... # type: QAbstractSpinBox.StepType + class CorrectionMode(enum.Enum): CorrectToPreviousValue = ... # type: QAbstractSpinBox.CorrectionMode CorrectToNearestValue = ... # type: QAbstractSpinBox.CorrectionMode + class ButtonSymbols(enum.Enum): UpDownArrows = ... # type: QAbstractSpinBox.ButtonSymbols PlusMinus = ... # type: QAbstractSpinBox.ButtonSymbols NoButtons = ... # type: QAbstractSpinBox.ButtonSymbols + class StepEnabledFlag(enum.Flag): StepNone = ... # type: QAbstractSpinBox.StepEnabledFlag StepUpEnabled = ... # type: QAbstractSpinBox.StepEnabledFlag @@ -1114,6 +1146,7 @@ class QVBoxLayout(QBoxLayout): class QButtonGroup(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + idToggled: typing.ClassVar[QtCore.pyqtSignal] idReleased: typing.ClassVar[QtCore.pyqtSignal] idPressed: typing.ClassVar[QtCore.pyqtSignal] @@ -1137,9 +1170,11 @@ class QCalendarWidget(QWidget): class SelectionMode(enum.Enum): NoSelection = ... # type: QCalendarWidget.SelectionMode SingleSelection = ... # type: QCalendarWidget.SelectionMode + class VerticalHeaderFormat(enum.Enum): NoVerticalHeader = ... # type: QCalendarWidget.VerticalHeaderFormat ISOWeekNumbers = ... # type: QCalendarWidget.VerticalHeaderFormat + class HorizontalHeaderFormat(enum.Enum): NoHorizontalHeader = ... # type: QCalendarWidget.HorizontalHeaderFormat SingleLetterDayNames = ... # type: QCalendarWidget.HorizontalHeaderFormat @@ -1325,6 +1360,7 @@ class QComboBox(QWidget): AdjustToContents = ... # type: QComboBox.SizeAdjustPolicy AdjustToContentsOnFirstShow = ... # type: QComboBox.SizeAdjustPolicy AdjustToMinimumContentsLengthWithIcon = ... # type: QComboBox.SizeAdjustPolicy + class InsertPolicy(enum.Enum): NoInsert = ... # type: QComboBox.InsertPolicy InsertAtTop = ... # type: QComboBox.InsertPolicy @@ -1479,6 +1515,7 @@ class QStyle(QtCore.QObject): class RequestSoftwareInputPanel(enum.Enum): RSIP_OnMouseClickAndAlreadyFocused = ... # type: QStyle.RequestSoftwareInputPanel RSIP_OnMouseClick = ... # type: QStyle.RequestSoftwareInputPanel + class StandardPixmap(enum.IntEnum): SP_TitleBarMenuButton = ... # type: QStyle.StandardPixmap SP_TitleBarMinButton = ... # type: QStyle.StandardPixmap @@ -1558,7 +1595,9 @@ class QStyle(QtCore.QObject): SP_DialogRetryButton = ... # type: QStyle.StandardPixmap SP_DialogIgnoreButton = ... # type: QStyle.StandardPixmap SP_RestoreDefaultsButton = ... # type: QStyle.StandardPixmap + SP_TabCloseButton = ... # type: QStyle.StandardPixmap SP_CustomBase = ... # type: QStyle.StandardPixmap + class StyleHint(enum.IntEnum): SH_EtchDisabledText = ... # type: QStyle.StyleHint SH_DitherDisabledText = ... # type: QStyle.StyleHint @@ -1677,7 +1716,10 @@ class QStyle(QtCore.QObject): SH_SpinBox_ButtonsInsideFrame = ... # type: QStyle.StyleHint SH_SpinBox_StepModifier = ... # type: QStyle.StyleHint SH_TabBar_AllowWheelScrolling = ... # type: QStyle.StyleHint + SH_Table_AlwaysDrawLeftTopGridLines = ... # type: QStyle.StyleHint + SH_SpinBox_SelectOnStep = ... # type: QStyle.StyleHint SH_CustomBase = ... # type: QStyle.StyleHint + class ContentsType(enum.IntEnum): CT_PushButton = ... # type: QStyle.ContentsType CT_CheckBox = ... # type: QStyle.ContentsType @@ -1703,6 +1745,7 @@ class QStyle(QtCore.QObject): CT_MdiControls = ... # type: QStyle.ContentsType CT_ItemViewItem = ... # type: QStyle.ContentsType CT_CustomBase = ... # type: QStyle.ContentsType + class PixelMetric(enum.IntEnum): PM_ButtonMargin = ... # type: QStyle.PixelMetric PM_ButtonDefaultIndicator = ... # type: QStyle.PixelMetric @@ -1798,7 +1841,9 @@ class QStyle(QtCore.QObject): PM_TitleBarButtonIconSize = ... # type: QStyle.PixelMetric PM_TitleBarButtonSize = ... # type: QStyle.PixelMetric PM_LineEditIconSize = ... # type: QStyle.PixelMetric + PM_LineEditIconMargin = ... # type: QStyle.PixelMetric PM_CustomBase = ... # type: QStyle.PixelMetric + class SubControl(enum.Flag): SC_None = ... # type: QStyle.SubControl SC_ScrollBarAddLine = ... # type: QStyle.SubControl @@ -1843,6 +1888,7 @@ class QStyle(QtCore.QObject): SC_MdiCloseButton = ... # type: QStyle.SubControl SC_CustomBase = ... # type: QStyle.SubControl SC_All = ... # type: QStyle.SubControl + class ComplexControl(enum.IntEnum): CC_SpinBox = ... # type: QStyle.ComplexControl CC_ComboBox = ... # type: QStyle.ComplexControl @@ -1854,6 +1900,7 @@ class QStyle(QtCore.QObject): CC_GroupBox = ... # type: QStyle.ComplexControl CC_MdiControls = ... # type: QStyle.ComplexControl CC_CustomBase = ... # type: QStyle.ComplexControl + class SubElement(enum.IntEnum): SE_PushButtonContents = ... # type: QStyle.SubElement SE_PushButtonFocusRect = ... # type: QStyle.SubElement @@ -1914,6 +1961,7 @@ class QStyle(QtCore.QObject): SE_TabBarTearIndicatorRight = ... # type: QStyle.SubElement SE_PushButtonBevel = ... # type: QStyle.SubElement SE_CustomBase = ... # type: QStyle.SubElement + class ControlElement(enum.IntEnum): CE_PushButton = ... # type: QStyle.ControlElement CE_PushButtonBevel = ... # type: QStyle.ControlElement @@ -1963,6 +2011,7 @@ class QStyle(QtCore.QObject): CE_ItemViewItem = ... # type: QStyle.ControlElement CE_ShapedFrame = ... # type: QStyle.ControlElement CE_CustomBase = ... # type: QStyle.ControlElement + class PrimitiveElement(enum.IntEnum): PE_Frame = ... # type: QStyle.PrimitiveElement PE_FrameDefaultButton = ... # type: QStyle.PrimitiveElement @@ -2016,6 +2065,7 @@ class QStyle(QtCore.QObject): PE_IndicatorTabTearLeft = ... # type: QStyle.PrimitiveElement PE_IndicatorTabTearRight = ... # type: QStyle.PrimitiveElement PE_CustomBase = ... # type: QStyle.PrimitiveElement + class StateFlag(enum.Flag): State_None = ... # type: QStyle.StateFlag State_Enabled = ... # type: QStyle.StateFlag @@ -2121,6 +2171,7 @@ class QCompleter(QtCore.QObject): UnsortedModel = ... # type: QCompleter.ModelSorting CaseSensitivelySortedModel = ... # type: QCompleter.ModelSorting CaseInsensitivelySortedModel = ... # type: QCompleter.ModelSorting + class CompletionMode(enum.Enum): PopupCompletion = ... # type: QCompleter.CompletionMode UnfilteredPopupCompletion = ... # type: QCompleter.CompletionMode @@ -2174,6 +2225,7 @@ class QDataWidgetMapper(QtCore.QObject): AutoSubmit = ... # type: QDataWidgetMapper.SubmitPolicy ManualSubmit = ... # type: QDataWidgetMapper.SubmitPolicy def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + currentIndexChanged: typing.ClassVar[QtCore.pyqtSignal] def toPrevious(self) -> None: ... def toNext(self) -> None: ... @@ -2344,6 +2396,7 @@ class QDialogButtonBox(QWidget): Apply = ... # type: QDialogButtonBox.StandardButton Reset = ... # type: QDialogButtonBox.StandardButton RestoreDefaults = ... # type: QDialogButtonBox.StandardButton + class ButtonRole(enum.Enum): InvalidRole = ... # type: QDialogButtonBox.ButtonRole AcceptRole = ... # type: QDialogButtonBox.ButtonRole @@ -2355,6 +2408,7 @@ class QDialogButtonBox(QWidget): NoRole = ... # type: QDialogButtonBox.ButtonRole ResetRole = ... # type: QDialogButtonBox.ButtonRole ApplyRole = ... # type: QDialogButtonBox.ButtonRole + class ButtonLayout(enum.Enum): WinLayout = ... # type: QDialogButtonBox.ButtonLayout MacLayout = ... # type: QDialogButtonBox.ButtonLayout @@ -2448,20 +2502,24 @@ class QFileDialog(QDialog): ReadOnly = ... # type: QFileDialog.Option HideNameFilterDetails = ... # type: QFileDialog.Option DontUseCustomDirectoryIcons = ... # type: QFileDialog.Option + class DialogLabel(enum.Enum): LookIn = ... # type: QFileDialog.DialogLabel FileName = ... # type: QFileDialog.DialogLabel FileType = ... # type: QFileDialog.DialogLabel Accept = ... # type: QFileDialog.DialogLabel Reject = ... # type: QFileDialog.DialogLabel + class AcceptMode(enum.Enum): AcceptOpen = ... # type: QFileDialog.AcceptMode AcceptSave = ... # type: QFileDialog.AcceptMode + class FileMode(enum.Enum): AnyFile = ... # type: QFileDialog.FileMode ExistingFile = ... # type: QFileDialog.FileMode Directory = ... # type: QFileDialog.FileMode ExistingFiles = ... # type: QFileDialog.FileMode + class ViewMode(enum.Enum): Detail = ... # type: QFileDialog.ViewMode List = ... # type: QFileDialog.ViewMode @@ -2579,6 +2637,12 @@ class QFontComboBox(QComboBox): MonospacedFonts = ... # type: QFontComboBox.FontFilter ProportionalFonts = ... # type: QFontComboBox.FontFilter def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + def displayFont(self, fontFamily: str) -> typing.Optional[QtGui.QFont]: ... + def setDisplayFont(self, fontFamily: str, font: QtGui.QFont) -> None: ... + def sampleTextForFont(self, fontFamily: str) -> str: ... + def setSampleTextForFont(self, fontFamily: str, sampleText: str) -> None: ... + def sampleTextForSystem(self, writingSystem: QtGui.QFontDatabase.WritingSystem) -> str: ... + def setSampleTextForSystem(self, writingSystem: QtGui.QFontDatabase.WritingSystem, sampleText: str) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... currentFontChanged: typing.ClassVar[QtCore.pyqtSignal] def setCurrentFont(self, f: QtGui.QFont) -> None: ... @@ -2601,6 +2665,7 @@ class QFontDialog(QDialog): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload def __init__(self, initial: QtGui.QFont, parent: typing.Optional[QWidget] = ...) -> None: ... + fontSelected: typing.ClassVar[QtCore.pyqtSignal] currentFontChanged: typing.ClassVar[QtCore.pyqtSignal] def setVisible(self, visible: bool) -> None: ... @@ -2630,24 +2695,41 @@ class QFormLayout(QLayout): LabelRole = ... # type: QFormLayout.ItemRole FieldRole = ... # type: QFormLayout.ItemRole SpanningRole = ... # type: QFormLayout.ItemRole + class RowWrapPolicy(enum.Enum): DontWrapRows = ... # type: QFormLayout.RowWrapPolicy WrapLongRows = ... # type: QFormLayout.RowWrapPolicy WrapAllRows = ... # type: QFormLayout.RowWrapPolicy + class FieldGrowthPolicy(enum.Enum): FieldsStayAtSizeHint = ... # type: QFormLayout.FieldGrowthPolicy ExpandingFieldsGrow = ... # type: QFormLayout.FieldGrowthPolicy AllNonFixedFieldsGrow = ... # type: QFormLayout.FieldGrowthPolicy + class TakeRowResult(PyQt6.sip.simplewrapper): fieldItem = ... # type: QLayoutItem labelItem = ... # type: QLayoutItem + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QFormLayout.TakeRowResult") -> None: ... + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload + def isRowVisible(self, layout: QLayout) -> bool: ... + @typing.overload + def isRowVisible(self, widget: QWidget) -> bool: ... + @typing.overload + def isRowVisible(self, row: int) -> bool: ... + @typing.overload + def setRowVisible(self, layout: QLayout, on: bool) -> None: ... + @typing.overload + def setRowVisible(self, widget: QWidget, on: bool) -> None: ... + @typing.overload + def setRowVisible(self, row: int, on: bool) -> None: ... + @typing.overload def takeRow(self, row: int) -> "QFormLayout.TakeRowResult": ... @typing.overload def takeRow(self, widget: QWidget) -> "QFormLayout.TakeRowResult": ... @@ -2735,7 +2817,7 @@ class QGesture(QtCore.QObject): def setHotSpot(self, value: QtCore.QPointF) -> None: ... def hotSpot(self) -> QtCore.QPointF: ... def state(self) -> QtCore.Qt.GestureState: ... - def gestureType(self) -> int: ... + def gestureType(self) -> QtCore.Qt.GestureType: ... class QPanGesture(QGesture): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @@ -2815,28 +2897,28 @@ class QGestureEvent(QtCore.QEvent): @typing.overload def ignore(self, a0: QGesture) -> None: ... @typing.overload - def ignore(self, a0: int) -> None: ... + def ignore(self, a0: QtCore.Qt.GestureType) -> None: ... @typing.overload def accept(self) -> None: ... @typing.overload def accept(self, a0: QGesture) -> None: ... @typing.overload - def accept(self, a0: int) -> None: ... + def accept(self, a0: QtCore.Qt.GestureType) -> None: ... @typing.overload def isAccepted(self) -> bool: ... @typing.overload def isAccepted(self, a0: QGesture) -> bool: ... @typing.overload - def isAccepted(self, a0: int) -> bool: ... + def isAccepted(self, a0: QtCore.Qt.GestureType) -> bool: ... @typing.overload def setAccepted(self, accepted: bool) -> None: ... @typing.overload def setAccepted(self, a0: QGesture, a1: bool) -> None: ... @typing.overload - def setAccepted(self, a0: int, a1: bool) -> None: ... + def setAccepted(self, a0: QtCore.Qt.GestureType, a1: bool) -> None: ... def canceledGestures(self) -> typing.List[QGesture]: ... def activeGestures(self) -> typing.List[QGesture]: ... - def gesture(self, type: int) -> QGesture: ... + def gesture(self, type: QtCore.Qt.GestureType) -> QGesture: ... def gestures(self) -> typing.List[QGesture]: ... class QGestureRecognizer(PyQt6.sip.wrapper): @@ -2852,9 +2934,9 @@ class QGestureRecognizer(PyQt6.sip.wrapper): @typing.overload def __init__(self, a0: "QGestureRecognizer") -> None: ... @staticmethod - def unregisterRecognizer(type: int) -> None: ... + def unregisterRecognizer(type: QtCore.Qt.GestureType) -> None: ... @staticmethod - def registerRecognizer(recognizer: "QGestureRecognizer") -> int: ... + def registerRecognizer(recognizer: "QGestureRecognizer") -> QtCore.Qt.GestureType: ... def reset(self, state: QGesture) -> None: ... def recognize(self, state: QGesture, watched: QtCore.QObject, event: QtCore.QEvent) -> "QGestureRecognizer.ResultFlag": ... def create(self, target: QtCore.QObject) -> QGesture: ... @@ -2954,6 +3036,7 @@ class QGraphicsEffect(QtCore.QObject): NoPad = ... # type: QGraphicsEffect.PixmapPadMode PadToTransparentBorder = ... # type: QGraphicsEffect.PixmapPadMode PadToEffectiveBoundingRect = ... # type: QGraphicsEffect.PixmapPadMode + class ChangeFlag(enum.Flag): SourceAttached = ... # type: QGraphicsEffect.ChangeFlag SourceDetached = ... # type: QGraphicsEffect.ChangeFlag @@ -3089,6 +3172,7 @@ class QGraphicsItem(PyQt6.sip.wrapper): NonModal = ... # type: QGraphicsItem.PanelModality PanelModal = ... # type: QGraphicsItem.PanelModality SceneModal = ... # type: QGraphicsItem.PanelModality + class GraphicsItemFlag(enum.Flag): ItemIsMovable = ... # type: QGraphicsItem.GraphicsItemFlag ItemIsSelectable = ... # type: QGraphicsItem.GraphicsItemFlag @@ -3107,6 +3191,7 @@ class QGraphicsItem(PyQt6.sip.wrapper): ItemIsPanel = ... # type: QGraphicsItem.GraphicsItemFlag ItemSendsScenePositionChanges = ... # type: QGraphicsItem.GraphicsItemFlag ItemContainsChildrenInShape = ... # type: QGraphicsItem.GraphicsItemFlag + class GraphicsItemChange(enum.Enum): ItemPositionChange = ... # type: QGraphicsItem.GraphicsItemChange ItemVisibleChange = ... # type: QGraphicsItem.GraphicsItemChange @@ -3141,12 +3226,14 @@ class QGraphicsItem(PyQt6.sip.wrapper): ItemScaleHasChanged = ... # type: QGraphicsItem.GraphicsItemChange ItemTransformOriginPointChange = ... # type: QGraphicsItem.GraphicsItemChange ItemTransformOriginPointHasChanged = ... # type: QGraphicsItem.GraphicsItemChange + class CacheMode(enum.Enum): NoCache = ... # type: QGraphicsItem.CacheMode ItemCoordinateCache = ... # type: QGraphicsItem.CacheMode DeviceCoordinateCache = ... # type: QGraphicsItem.CacheMode Type = ... # type: int UserType = ... # type: int + def __init__(self, parent: typing.Optional["QGraphicsItem"] = ...) -> None: ... def updateMicroFocus(self) -> None: ... def setInputMethodHints(self, hints: QtCore.Qt.InputMethodHint) -> None: ... @@ -3581,8 +3668,8 @@ class QGraphicsObject(QtCore.QObject, QGraphicsItem): visibleChanged: typing.ClassVar[QtCore.pyqtSignal] opacityChanged: typing.ClassVar[QtCore.pyqtSignal] parentChanged: typing.ClassVar[QtCore.pyqtSignal] - def ungrabGesture(self, type: int) -> None: ... - def grabGesture(self, type: int, flags: QtCore.Qt.GestureFlag = ...) -> None: ... + def ungrabGesture(self, type: QtCore.Qt.GestureType) -> None: ... + def grabGesture(self, type: QtCore.Qt.GestureType, flags: QtCore.Qt.GestureFlag = ...) -> None: ... class QGraphicsTextItem(QGraphicsObject): @typing.overload @@ -3668,6 +3755,7 @@ class QGraphicsLinearLayout(QGraphicsLayout): class QGraphicsWidget(QGraphicsObject, QGraphicsLayoutItem): def __init__(self, parent: typing.Optional[QGraphicsItem] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + geometryChanged: typing.ClassVar[QtCore.pyqtSignal] def setAutoFillBackground(self, enabled: bool) -> None: ... def autoFillBackground(self) -> bool: ... @@ -3806,6 +3894,7 @@ class QGraphicsScene(QtCore.QObject): BackgroundLayer = ... # type: QGraphicsScene.SceneLayer ForegroundLayer = ... # type: QGraphicsScene.SceneLayer AllLayers = ... # type: QGraphicsScene.SceneLayer + class ItemIndexMethod(enum.Enum): BspTreeIndex = ... # type: QGraphicsScene.ItemIndexMethod NoIndex = ... # type: QGraphicsScene.ItemIndexMethod @@ -4027,6 +4116,7 @@ class QGraphicsTransform(QtCore.QObject): class QGraphicsScale(QGraphicsTransform): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + zScaleChanged: typing.ClassVar[QtCore.pyqtSignal] yScaleChanged: typing.ClassVar[QtCore.pyqtSignal] xScaleChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -4044,6 +4134,7 @@ class QGraphicsScale(QGraphicsTransform): class QGraphicsRotation(QGraphicsTransform): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + axisChanged: typing.ClassVar[QtCore.pyqtSignal] angleChanged: typing.ClassVar[QtCore.pyqtSignal] originChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -4062,20 +4153,24 @@ class QGraphicsView(QAbstractScrollArea): class OptimizationFlag(enum.Flag): DontSavePainterState = ... # type: QGraphicsView.OptimizationFlag DontAdjustForAntialiasing = ... # type: QGraphicsView.OptimizationFlag + class ViewportUpdateMode(enum.Enum): FullViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode MinimalViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode SmartViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode BoundingRectViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode NoViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode + class ViewportAnchor(enum.Enum): NoAnchor = ... # type: QGraphicsView.ViewportAnchor AnchorViewCenter = ... # type: QGraphicsView.ViewportAnchor AnchorUnderMouse = ... # type: QGraphicsView.ViewportAnchor + class DragMode(enum.Enum): NoDrag = ... # type: QGraphicsView.DragMode ScrollHandDrag = ... # type: QGraphicsView.DragMode RubberBandDrag = ... # type: QGraphicsView.DragMode + class CacheModeFlag(enum.Flag): CacheNone = ... # type: QGraphicsView.CacheModeFlag CacheBackground = ... # type: QGraphicsView.CacheModeFlag @@ -4083,6 +4178,7 @@ class QGraphicsView(QAbstractScrollArea): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload def __init__(self, scene: QGraphicsScene, parent: typing.Optional[QWidget] = ...) -> None: ... + rubberBandChanged: typing.ClassVar[QtCore.pyqtSignal] def rubberBandRect(self) -> QtCore.QRect: ... def isTransformed(self) -> bool: ... @@ -4308,6 +4404,7 @@ class QHeaderView(QAbstractItemView): ResizeToContents = ... # type: QHeaderView.ResizeMode Custom = ... # type: QHeaderView.ResizeMode def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QWidget] = ...) -> None: ... + sortIndicatorClearableChanged: typing.ClassVar[QtCore.pyqtSignal] def isSortIndicatorClearable(self) -> bool: ... def setSortIndicatorClearable(self, clearable: bool) -> None: ... @@ -4436,6 +4533,7 @@ class QInputDialog(QDialog): TextInput = ... # type: QInputDialog.InputMode IntInput = ... # type: QInputDialog.InputMode DoubleInput = ... # type: QInputDialog.InputMode + class InputDialogOption(enum.Flag): NoButtons = ... # type: QInputDialog.InputDialogOption UseListViewForComboBoxItems = ... # type: QInputDialog.InputDialogOption @@ -4552,6 +4650,9 @@ class QKeySequenceEdit(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload def __init__(self, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], parent: typing.Optional[QWidget] = ...) -> None: ... + def isClearButtonEnabled(self) -> bool: ... + def setClearButtonEnabled(self, enable: bool) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... @@ -4654,6 +4755,7 @@ class QLCDNumber(QFrame): Outline = ... # type: QLCDNumber.SegmentStyle Filled = ... # type: QLCDNumber.SegmentStyle Flat = ... # type: QLCDNumber.SegmentStyle + class Mode(enum.Enum): Hex = ... # type: QLCDNumber.Mode Dec = ... # type: QLCDNumber.Mode @@ -4692,6 +4794,7 @@ class QLineEdit(QWidget): class ActionPosition(enum.Enum): LeadingPosition = ... # type: QLineEdit.ActionPosition TrailingPosition = ... # type: QLineEdit.ActionPosition + class EchoMode(enum.Enum): Normal = ... # type: QLineEdit.EchoMode NoEcho = ... # type: QLineEdit.EchoMode @@ -4701,10 +4804,11 @@ class QLineEdit(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload def __init__(self, contents: str, parent: typing.Optional[QWidget] = ...) -> None: ... + inputRejected: typing.ClassVar[QtCore.pyqtSignal] def selectionLength(self) -> int: ... def selectionEnd(self) -> int: ... - @typing.overload + @typing.overload # type: ignore[override] def addAction(self, a0: QtGui.QAction) -> None: ... @typing.overload def addAction(self, action: QtGui.QAction, position: "QLineEdit.ActionPosition") -> None: ... @@ -4809,15 +4913,19 @@ class QListView(QAbstractItemView): class ViewMode(enum.Enum): ListMode = ... # type: QListView.ViewMode IconMode = ... # type: QListView.ViewMode + class LayoutMode(enum.Enum): SinglePass = ... # type: QListView.LayoutMode Batched = ... # type: QListView.LayoutMode + class ResizeMode(enum.Enum): Fixed = ... # type: QListView.ResizeMode Adjust = ... # type: QListView.ResizeMode + class Flow(enum.Enum): LeftToRight = ... # type: QListView.Flow TopToBottom = ... # type: QListView.Flow + class Movement(enum.Enum): Static = ... # type: QListView.Movement Free = ... # type: QListView.Movement @@ -4902,6 +5010,7 @@ class QListWidgetItem(PyQt6.sip.wrapper): def __init__(self, icon: QtGui.QIcon, text: str, parent: typing.Optional["QListWidget"] = ..., type: int = ...) -> None: ... @typing.overload def __init__(self, other: "QListWidgetItem") -> None: ... + def __ge__(self, other: "QListWidgetItem") -> bool: ... def isHidden(self) -> bool: ... def setHidden(self, ahide: bool) -> None: ... def isSelected(self) -> bool: ... @@ -4920,12 +5029,16 @@ class QListWidgetItem(PyQt6.sip.wrapper): def type(self) -> int: ... def write(self, out: QtCore.QDataStream) -> None: ... def read(self, in_: QtCore.QDataStream) -> None: ... + def __lt__(self, other: "QListWidgetItem") -> bool: ... def setData(self, role: int, value: typing.Any) -> None: ... def data(self, role: int) -> typing.Any: ... def setSizeHint(self, size: QtCore.QSize) -> None: ... def sizeHint(self) -> QtCore.QSize: ... def setCheckState(self, state: QtCore.Qt.CheckState) -> None: ... def checkState(self) -> QtCore.Qt.CheckState: ... + @typing.overload + def setTextAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + @typing.overload def setTextAlignment(self, alignment: int) -> None: ... def textAlignment(self) -> int: ... def font(self) -> QtGui.QFont: ... @@ -4952,7 +5065,7 @@ class QListWidget(QListView): def event(self, e: QtCore.QEvent) -> bool: ... def supportedDropActions(self) -> QtCore.Qt.DropAction: ... def dropMimeData(self, index: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... - def mimeData(self, items: typing.Iterable[QListWidgetItem]) -> QtCore.QMimeData: ... + def mimeData(self, items: typing.Iterable[QListWidgetItem]) -> QtCore.QMimeData | None: ... def mimeTypes(self) -> typing.List[str]: ... itemSelectionChanged: typing.ClassVar[QtCore.pyqtSignal] currentRowChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -5082,9 +5195,11 @@ class QMdiArea(QAbstractScrollArea): CreationOrder = ... # type: QMdiArea.WindowOrder StackingOrder = ... # type: QMdiArea.WindowOrder ActivationHistoryOrder = ... # type: QMdiArea.WindowOrder + class ViewMode(enum.Enum): SubWindowView = ... # type: QMdiArea.ViewMode TabbedView = ... # type: QMdiArea.ViewMode + class AreaOption(enum.Flag): DontMaximizeSubWindowOnActivation = ... # type: QMdiArea.AreaOption def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @@ -5181,6 +5296,8 @@ class QMenu(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload def __init__(self, title: str, parent: typing.Optional[QWidget] = ...) -> None: ... + @staticmethod + def menuInAction(action: QtGui.QAction) -> "QMenu": ... @typing.overload def showTearOffMenu(self) -> None: ... @typing.overload @@ -5253,16 +5370,6 @@ class QMenu(QWidget): def addMenu(self, title: str) -> "QMenu": ... @typing.overload def addMenu(self, icon: QtGui.QIcon, title: str) -> "QMenu": ... - @typing.overload - def addAction(self, a0: QtGui.QAction) -> None: ... - @typing.overload - def addAction(self, text: str) -> QtGui.QAction: ... - @typing.overload - def addAction(self, text: str, slot: PYQT_SLOT, shortcut: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int] = ...) -> QtGui.QAction: ... - @typing.overload - def addAction(self, icon: QtGui.QIcon, text: str) -> QtGui.QAction: ... - @typing.overload - def addAction(self, icon: QtGui.QIcon, text: str, slot: PYQT_SLOT, shortcut: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int] = ...) -> QtGui.QAction: ... class QMenuBar(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @@ -5307,12 +5414,6 @@ class QMenuBar(QWidget): def addMenu(self, title: str) -> QMenu: ... @typing.overload def addMenu(self, icon: QtGui.QIcon, title: str) -> QMenu: ... - @typing.overload - def addAction(self, a0: QtGui.QAction) -> None: ... - @typing.overload - def addAction(self, text: str) -> QtGui.QAction: ... - @typing.overload - def addAction(self, text: str, slot: PYQT_SLOT) -> QtGui.QAction: ... class QMessageBox(QDialog): class StandardButton(enum.IntFlag): @@ -5343,12 +5444,14 @@ class QMessageBox(QDialog): Escape = ... # type: QMessageBox.StandardButton FlagMask = ... # type: QMessageBox.StandardButton ButtonMask = ... # type: QMessageBox.StandardButton + class Icon(enum.Enum): NoIcon = ... # type: QMessageBox.Icon Information = ... # type: QMessageBox.Icon Warning = ... # type: QMessageBox.Icon Critical = ... # type: QMessageBox.Icon Question = ... # type: QMessageBox.Icon + class ButtonRole(enum.Enum): InvalidRole = ... # type: QMessageBox.ButtonRole AcceptRole = ... # type: QMessageBox.ButtonRole @@ -5759,11 +5862,13 @@ class QScroller(QtCore.QObject): InputPress = ... # type: QScroller.Input InputMove = ... # type: QScroller.Input InputRelease = ... # type: QScroller.Input + class ScrollerGestureType(enum.Enum): TouchGesture = ... # type: QScroller.ScrollerGestureType LeftMouseButtonGesture = ... # type: QScroller.ScrollerGestureType RightMouseButtonGesture = ... # type: QScroller.ScrollerGestureType MiddleMouseButtonGesture = ... # type: QScroller.ScrollerGestureType + class State(enum.Enum): Inactive = ... # type: QScroller.State Pressed = ... # type: QScroller.State @@ -5802,9 +5907,9 @@ class QScroller(QtCore.QObject): @staticmethod def ungrabGesture(target: QtCore.QObject) -> None: ... @staticmethod - def grabbedGesture(target: QtCore.QObject) -> int: ... + def grabbedGesture(target: QtCore.QObject) -> QtCore.Qt.GestureType: ... @staticmethod - def grabGesture(target: QtCore.QObject, scrollGestureType: "QScroller.ScrollerGestureType" = ...) -> int: ... + def grabGesture(target: QtCore.QObject, scrollGestureType: "QScroller.ScrollerGestureType" = ...) -> QtCore.Qt.GestureType: ... @staticmethod def scroller(target: QtCore.QObject) -> "QScroller": ... @staticmethod @@ -5833,11 +5938,13 @@ class QScrollerProperties(PyQt6.sip.simplewrapper): VerticalOvershootPolicy = ... # type: QScrollerProperties.ScrollMetric FrameRate = ... # type: QScrollerProperties.ScrollMetric ScrollMetricCount = ... # type: QScrollerProperties.ScrollMetric + class FrameRates(enum.Enum): Standard = ... # type: QScrollerProperties.FrameRates Fps60 = ... # type: QScrollerProperties.FrameRates Fps30 = ... # type: QScrollerProperties.FrameRates Fps20 = ... # type: QScrollerProperties.FrameRates + class OvershootPolicy(enum.Enum): OvershootWhenScrollable = ... # type: QScrollerProperties.OvershootPolicy OvershootAlwaysOff = ... # type: QScrollerProperties.OvershootPolicy @@ -5852,6 +5959,8 @@ class QScrollerProperties(PyQt6.sip.simplewrapper): def unsetDefaultScrollerProperties() -> None: ... @staticmethod def setDefaultScrollerProperties(sp: "QScrollerProperties") -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QSizeGrip(QWidget): def __init__(self, parent: QWidget) -> None: ... @@ -5884,6 +5993,7 @@ class QSizePolicy(PyQt6.sip.simplewrapper): SpinBox = ... # type: QSizePolicy.ControlType TabWidget = ... # type: QSizePolicy.ControlType ToolButton = ... # type: QSizePolicy.ControlType + class Policy(enum.Enum): Fixed = ... # type: QSizePolicy.Policy Minimum = ... # type: QSizePolicy.Policy @@ -5892,6 +6002,7 @@ class QSizePolicy(PyQt6.sip.simplewrapper): MinimumExpanding = ... # type: QSizePolicy.Policy Expanding = ... # type: QSizePolicy.Policy Ignored = ... # type: QSizePolicy.Policy + class PolicyFlag(enum.IntFlag): GrowFlag = ... # type: QSizePolicy.PolicyFlag ExpandFlag = ... # type: QSizePolicy.PolicyFlag @@ -5918,6 +6029,8 @@ class QSizePolicy(PyQt6.sip.simplewrapper): def setHorizontalStretch(self, stretchFactor: int) -> None: ... def verticalStretch(self) -> int: ... def horizontalStretch(self) -> int: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... def hasHeightForWidth(self) -> bool: ... def setHeightForWidth(self, b: bool) -> None: ... def expandingDirections(self) -> QtCore.Qt.Orientation: ... @@ -6177,8 +6290,10 @@ class QStyleFactory(PyQt6.sip.simplewrapper): class QStyleOption(PyQt6.sip.simplewrapper): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOption.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOption.StyleOptionType + class OptionType(enum.Enum): SO_Default = ... # type: QStyleOption.OptionType SO_FocusRect = ... # type: QStyleOption.OptionType @@ -6214,6 +6329,7 @@ class QStyleOption(PyQt6.sip.simplewrapper): styleObject = ... # type: QtCore.QObject type = ... # type: int version = ... # type: int + @typing.overload def __init__(self, version: int = ..., type: int = ...) -> None: ... @typing.overload @@ -6223,9 +6339,11 @@ class QStyleOption(PyQt6.sip.simplewrapper): class QStyleOptionFocusRect(QStyleOption): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionFocusRect.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionFocusRect.StyleOptionType backgroundColor = ... # type: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int, QtGui.QGradient] + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6236,14 +6354,17 @@ class QStyleOptionFrame(QStyleOption): None_ = ... # type: QStyleOptionFrame.FrameFeature Flat = ... # type: QStyleOptionFrame.FrameFeature Rounded = ... # type: QStyleOptionFrame.FrameFeature + class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionFrame.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionFrame.StyleOptionType features = ... # type: 'QStyleOptionFrame.FrameFeature' frameShape = ... # type: QFrame.Shape lineWidth = ... # type: int midLineWidth = ... # type: int + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6252,6 +6373,7 @@ class QStyleOptionFrame(QStyleOption): class QStyleOptionTabWidgetFrame(QStyleOption): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionTabWidgetFrame.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionTabWidgetFrame.StyleOptionType leftCornerWidgetSize = ... # type: QtCore.QSize @@ -6262,6 +6384,7 @@ class QStyleOptionTabWidgetFrame(QStyleOption): shape = ... # type: 'QTabBar.Shape' tabBarRect = ... # type: QtCore.QRect tabBarSize = ... # type: QtCore.QSize + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6270,12 +6393,14 @@ class QStyleOptionTabWidgetFrame(QStyleOption): class QStyleOptionTabBarBase(QStyleOption): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionTabBarBase.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionTabBarBase.StyleOptionType documentMode = ... # type: bool selectedTabRect = ... # type: QtCore.QRect shape = ... # type: 'QTabBar.Shape' tabBarRect = ... # type: QtCore.QRect + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6286,18 +6411,22 @@ class QStyleOptionHeader(QStyleOption): None_ = ... # type: QStyleOptionHeader.SortIndicator SortUp = ... # type: QStyleOptionHeader.SortIndicator SortDown = ... # type: QStyleOptionHeader.SortIndicator + class SelectedPosition(enum.Enum): NotAdjacent = ... # type: QStyleOptionHeader.SelectedPosition NextIsSelected = ... # type: QStyleOptionHeader.SelectedPosition PreviousIsSelected = ... # type: QStyleOptionHeader.SelectedPosition NextAndPreviousAreSelected = ... # type: QStyleOptionHeader.SelectedPosition + class SectionPosition(enum.Enum): Beginning = ... # type: QStyleOptionHeader.SectionPosition Middle = ... # type: QStyleOptionHeader.SectionPosition End = ... # type: QStyleOptionHeader.SectionPosition OnlyOneSection = ... # type: QStyleOptionHeader.SectionPosition + class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionHeader.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionHeader.StyleOptionType icon = ... # type: QtGui.QIcon @@ -6309,6 +6438,7 @@ class QStyleOptionHeader(QStyleOption): sortIndicator = ... # type: 'QStyleOptionHeader.SortIndicator' text = ... # type: str textAlignment = ... # type: QtCore.Qt.AlignmentFlag + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6317,10 +6447,12 @@ class QStyleOptionHeader(QStyleOption): class QStyleOptionHeaderV2(QStyleOptionHeader): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionHeaderV2.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionHeaderV2.StyleOptionType isSectionDragTarget = ... # type: bool textElideMode = ... # type: QtCore.Qt.TextElideMode + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6334,14 +6466,17 @@ class QStyleOptionButton(QStyleOption): DefaultButton = ... # type: QStyleOptionButton.ButtonFeature AutoDefaultButton = ... # type: QStyleOptionButton.ButtonFeature CommandLinkButton = ... # type: QStyleOptionButton.ButtonFeature + class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionButton.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionButton.StyleOptionType features = ... # type: 'QStyleOptionButton.ButtonFeature' icon = ... # type: QtGui.QIcon iconSize = ... # type: QtCore.QSize text = ... # type: str + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6351,21 +6486,26 @@ class QStyleOptionTab(QStyleOption): class TabFeature(enum.Flag): None_ = ... # type: QStyleOptionTab.TabFeature HasFrame = ... # type: QStyleOptionTab.TabFeature + class CornerWidget(enum.Flag): NoCornerWidgets = ... # type: QStyleOptionTab.CornerWidget LeftCornerWidget = ... # type: QStyleOptionTab.CornerWidget RightCornerWidget = ... # type: QStyleOptionTab.CornerWidget + class SelectedPosition(enum.Enum): NotAdjacent = ... # type: QStyleOptionTab.SelectedPosition NextIsSelected = ... # type: QStyleOptionTab.SelectedPosition PreviousIsSelected = ... # type: QStyleOptionTab.SelectedPosition + class TabPosition(enum.Enum): Beginning = ... # type: QStyleOptionTab.TabPosition Middle = ... # type: QStyleOptionTab.TabPosition End = ... # type: QStyleOptionTab.TabPosition OnlyOneTab = ... # type: QStyleOptionTab.TabPosition + class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionTab.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionTab.StyleOptionType cornerWidgets = ... # type: 'QStyleOptionTab.CornerWidget' @@ -6381,6 +6521,7 @@ class QStyleOptionTab(QStyleOption): shape = ... # type: 'QTabBar.Shape' tabIndex = ... # type: int text = ... # type: str + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6389,6 +6530,7 @@ class QStyleOptionTab(QStyleOption): class QStyleOptionProgressBar(QStyleOption): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionProgressBar.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionProgressBar.StyleOptionType bottomToTop = ... # type: bool @@ -6399,6 +6541,7 @@ class QStyleOptionProgressBar(QStyleOption): text = ... # type: str textAlignment = ... # type: QtCore.Qt.AlignmentFlag textVisible = ... # type: bool + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6409,6 +6552,7 @@ class QStyleOptionMenuItem(QStyleOption): NotCheckable = ... # type: QStyleOptionMenuItem.CheckType Exclusive = ... # type: QStyleOptionMenuItem.CheckType NonExclusive = ... # type: QStyleOptionMenuItem.CheckType + class MenuItemType(enum.Enum): Normal = ... # type: QStyleOptionMenuItem.MenuItemType DefaultItem = ... # type: QStyleOptionMenuItem.MenuItemType @@ -6418,8 +6562,10 @@ class QStyleOptionMenuItem(QStyleOption): TearOff = ... # type: QStyleOptionMenuItem.MenuItemType Margin = ... # type: QStyleOptionMenuItem.MenuItemType EmptyArea = ... # type: QStyleOptionMenuItem.MenuItemType + class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionMenuItem.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionMenuItem.StyleOptionType checkType = ... # type: 'QStyleOptionMenuItem.CheckType' @@ -6432,6 +6578,7 @@ class QStyleOptionMenuItem(QStyleOption): menuRect = ... # type: QtCore.QRect reservedShortcutWidth = ... # type: int text = ... # type: str + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6440,6 +6587,7 @@ class QStyleOptionMenuItem(QStyleOption): class QStyleOptionDockWidget(QStyleOption): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionDockWidget.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionDockWidget.StyleOptionType closable = ... # type: bool @@ -6447,6 +6595,7 @@ class QStyleOptionDockWidget(QStyleOption): movable = ... # type: bool title = ... # type: str verticalTitleBar = ... # type: bool + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6459,6 +6608,7 @@ class QStyleOptionViewItem(QStyleOption): Middle = ... # type: QStyleOptionViewItem.ViewItemPosition End = ... # type: QStyleOptionViewItem.ViewItemPosition OnlyOne = ... # type: QStyleOptionViewItem.ViewItemPosition + class ViewItemFeature(enum.Flag): None_ = ... # type: QStyleOptionViewItem.ViewItemFeature WrapText = ... # type: QStyleOptionViewItem.ViewItemFeature @@ -6466,13 +6616,16 @@ class QStyleOptionViewItem(QStyleOption): HasCheckIndicator = ... # type: QStyleOptionViewItem.ViewItemFeature HasDisplay = ... # type: QStyleOptionViewItem.ViewItemFeature HasDecoration = ... # type: QStyleOptionViewItem.ViewItemFeature + class Position(enum.Enum): Left = ... # type: QStyleOptionViewItem.Position Right = ... # type: QStyleOptionViewItem.Position Top = ... # type: QStyleOptionViewItem.Position Bottom = ... # type: QStyleOptionViewItem.Position + class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionViewItem.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionViewItem.StyleOptionType backgroundBrush = ... # type: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, int, QtGui.QGradient] @@ -6491,6 +6644,7 @@ class QStyleOptionViewItem(QStyleOption): textElideMode = ... # type: QtCore.Qt.TextElideMode viewItemPosition = ... # type: 'QStyleOptionViewItem.ViewItemPosition' widget = ... # type: QWidget + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6501,19 +6655,23 @@ class QStyleOptionToolBox(QStyleOption): NotAdjacent = ... # type: QStyleOptionToolBox.SelectedPosition NextIsSelected = ... # type: QStyleOptionToolBox.SelectedPosition PreviousIsSelected = ... # type: QStyleOptionToolBox.SelectedPosition + class TabPosition(enum.Enum): Beginning = ... # type: QStyleOptionToolBox.TabPosition Middle = ... # type: QStyleOptionToolBox.TabPosition End = ... # type: QStyleOptionToolBox.TabPosition OnlyOneTab = ... # type: QStyleOptionToolBox.TabPosition + class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionToolBox.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionToolBox.StyleOptionType icon = ... # type: QtGui.QIcon position = ... # type: 'QStyleOptionToolBox.TabPosition' selectedPosition = ... # type: 'QStyleOptionToolBox.SelectedPosition' text = ... # type: str + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6522,10 +6680,12 @@ class QStyleOptionToolBox(QStyleOption): class QStyleOptionRubberBand(QStyleOption): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionRubberBand.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionRubberBand.StyleOptionType opaque = ... # type: bool shape = ... # type: QRubberBand.Shape + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6534,10 +6694,12 @@ class QStyleOptionRubberBand(QStyleOption): class QStyleOptionComplex(QStyleOption): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionComplex.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionComplex.StyleOptionType activeSubControls = ... # type: QStyle.SubControl subControls = ... # type: QStyle.SubControl + @typing.overload def __init__(self, version: int = ..., type: int = ...) -> None: ... @typing.overload @@ -6546,6 +6708,7 @@ class QStyleOptionComplex(QStyleOption): class QStyleOptionSlider(QStyleOptionComplex): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionSlider.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionSlider.StyleOptionType dialWrapping = ... # type: bool @@ -6561,6 +6724,7 @@ class QStyleOptionSlider(QStyleOptionComplex): tickInterval = ... # type: int tickPosition = ... # type: QSlider.TickPosition upsideDown = ... # type: bool + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6569,11 +6733,13 @@ class QStyleOptionSlider(QStyleOptionComplex): class QStyleOptionSpinBox(QStyleOptionComplex): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionSpinBox.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionSpinBox.StyleOptionType buttonSymbols = ... # type: QAbstractSpinBox.ButtonSymbols frame = ... # type: bool stepEnabled = ... # type: QAbstractSpinBox.StepEnabledFlag + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6587,8 +6753,10 @@ class QStyleOptionToolButton(QStyleOptionComplex): PopupDelay = ... # type: QStyleOptionToolButton.ToolButtonFeature MenuButtonPopup = ... # type: QStyleOptionToolButton.ToolButtonFeature HasMenu = ... # type: QStyleOptionToolButton.ToolButtonFeature + class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionToolButton.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionToolButton.StyleOptionType arrowType = ... # type: QtCore.Qt.ArrowType @@ -6599,6 +6767,7 @@ class QStyleOptionToolButton(QStyleOptionComplex): pos = ... # type: QtCore.QPoint text = ... # type: str toolButtonStyle = ... # type: QtCore.Qt.ToolButtonStyle + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6607,6 +6776,7 @@ class QStyleOptionToolButton(QStyleOptionComplex): class QStyleOptionComboBox(QStyleOptionComplex): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionComboBox.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionComboBox.StyleOptionType currentIcon = ... # type: QtGui.QIcon @@ -6616,6 +6786,7 @@ class QStyleOptionComboBox(QStyleOptionComplex): iconSize = ... # type: QtCore.QSize popupRect = ... # type: QtCore.QRect textAlignment = ... # type: QtCore.Qt.AlignmentFlag + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6624,12 +6795,14 @@ class QStyleOptionComboBox(QStyleOptionComplex): class QStyleOptionTitleBar(QStyleOptionComplex): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionTitleBar.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionTitleBar.StyleOptionType icon = ... # type: QtGui.QIcon text = ... # type: str titleBarFlags = ... # type: QtCore.Qt.WindowType titleBarState = ... # type: int + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6638,14 +6811,17 @@ class QStyleOptionTitleBar(QStyleOptionComplex): class QStyleHintReturn(PyQt6.sip.simplewrapper): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleHintReturn.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleHintReturn.StyleOptionType + class HintReturnType(enum.Enum): SH_Default = ... # type: QStyleHintReturn.HintReturnType SH_Mask = ... # type: QStyleHintReturn.HintReturnType SH_Variant = ... # type: QStyleHintReturn.HintReturnType type = ... # type: int version = ... # type: int + @typing.overload def __init__(self, version: int = ..., type: int = ...) -> None: ... @typing.overload @@ -6654,9 +6830,11 @@ class QStyleHintReturn(PyQt6.sip.simplewrapper): class QStyleHintReturnMask(QStyleHintReturn): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleHintReturnMask.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleHintReturnMask.StyleOptionType region = ... # type: QtGui.QRegion + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6666,13 +6844,16 @@ class QStyleOptionToolBar(QStyleOption): class ToolBarFeature(enum.Flag): None_ = ... # type: QStyleOptionToolBar.ToolBarFeature Movable = ... # type: QStyleOptionToolBar.ToolBarFeature + class ToolBarPosition(enum.Enum): Beginning = ... # type: QStyleOptionToolBar.ToolBarPosition Middle = ... # type: QStyleOptionToolBar.ToolBarPosition End = ... # type: QStyleOptionToolBar.ToolBarPosition OnlyOne = ... # type: QStyleOptionToolBar.ToolBarPosition + class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionToolBar.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionToolBar.StyleOptionType features = ... # type: 'QStyleOptionToolBar.ToolBarFeature' @@ -6681,6 +6862,7 @@ class QStyleOptionToolBar(QStyleOption): positionOfLine = ... # type: 'QStyleOptionToolBar.ToolBarPosition' positionWithinLine = ... # type: 'QStyleOptionToolBar.ToolBarPosition' toolBarArea = ... # type: QtCore.Qt.ToolBarArea + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6689,6 +6871,7 @@ class QStyleOptionToolBar(QStyleOption): class QStyleOptionGroupBox(QStyleOptionComplex): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionGroupBox.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionGroupBox.StyleOptionType features = ... # type: QStyleOptionFrame.FrameFeature @@ -6697,6 +6880,7 @@ class QStyleOptionGroupBox(QStyleOptionComplex): text = ... # type: str textAlignment = ... # type: QtCore.Qt.AlignmentFlag textColor = ... # type: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int, QtGui.QGradient] + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6705,9 +6889,11 @@ class QStyleOptionGroupBox(QStyleOptionComplex): class QStyleOptionSizeGrip(QStyleOptionComplex): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionSizeGrip.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionSizeGrip.StyleOptionType corner = ... # type: QtCore.Qt.Corner + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6716,9 +6902,11 @@ class QStyleOptionSizeGrip(QStyleOptionComplex): class QStyleOptionGraphicsItem(QStyleOption): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleOptionGraphicsItem.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleOptionGraphicsItem.StyleOptionType exposedRect = ... # type: QtCore.QRectF + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6729,9 +6917,11 @@ class QStyleOptionGraphicsItem(QStyleOption): class QStyleHintReturnVariant(QStyleHintReturn): class StyleOptionVersion(enum.Enum): Version = ... # type: QStyleHintReturnVariant.StyleOptionVersion + class StyleOptionType(enum.Enum): Type = ... # type: QStyleHintReturnVariant.StyleOptionType variant = ... # type: typing.Any + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -6761,6 +6951,7 @@ class QSystemTrayIcon(QtCore.QObject): Information = ... # type: QSystemTrayIcon.MessageIcon Warning = ... # type: QSystemTrayIcon.MessageIcon Critical = ... # type: QSystemTrayIcon.MessageIcon + class ActivationReason(enum.Enum): Unknown = ... # type: QSystemTrayIcon.ActivationReason Context = ... # type: QSystemTrayIcon.ActivationReason @@ -6799,9 +6990,11 @@ class QTabBar(QWidget): SelectLeftTab = ... # type: QTabBar.SelectionBehavior SelectRightTab = ... # type: QTabBar.SelectionBehavior SelectPreviousTab = ... # type: QTabBar.SelectionBehavior + class ButtonPosition(enum.Enum): LeftSide = ... # type: QTabBar.ButtonPosition RightSide = ... # type: QTabBar.ButtonPosition + class Shape(enum.Enum): RoundedNorth = ... # type: QTabBar.Shape RoundedSouth = ... # type: QTabBar.Shape @@ -6981,6 +7174,8 @@ class QTableWidgetSelectionRange(PyQt6.sip.simplewrapper): def __init__(self, top: int, left: int, bottom: int, right: int) -> None: ... @typing.overload def __init__(self, a0: "QTableWidgetSelectionRange") -> None: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... def columnCount(self) -> int: ... def rowCount(self) -> int: ... def rightColumn(self) -> int: ... @@ -7000,6 +7195,7 @@ class QTableWidgetItem(PyQt6.sip.wrapper): def __init__(self, icon: QtGui.QIcon, text: str, type: int = ...) -> None: ... @typing.overload def __init__(self, other: "QTableWidgetItem") -> None: ... + def __ge__(self, other: "QTableWidgetItem") -> bool: ... def isSelected(self) -> bool: ... def setSelected(self, aselect: bool) -> None: ... def column(self) -> int: ... @@ -7020,10 +7216,14 @@ class QTableWidgetItem(PyQt6.sip.wrapper): def type(self) -> int: ... def write(self, out: QtCore.QDataStream) -> None: ... def read(self, in_: QtCore.QDataStream) -> None: ... + def __lt__(self, other: "QTableWidgetItem") -> bool: ... def setData(self, role: int, value: typing.Any) -> None: ... def data(self, role: int) -> typing.Any: ... def setCheckState(self, state: QtCore.Qt.CheckState) -> None: ... def checkState(self) -> QtCore.Qt.CheckState: ... + @typing.overload + def setTextAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + @typing.overload def setTextAlignment(self, alignment: int) -> None: ... def textAlignment(self) -> int: ... def font(self) -> QtGui.QFont: ... @@ -7055,7 +7255,7 @@ class QTableWidget(QTableView): def items(self, data: QtCore.QMimeData) -> typing.List[QTableWidgetItem]: ... def supportedDropActions(self) -> QtCore.Qt.DropAction: ... def dropMimeData(self, row: int, column: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... - def mimeData(self, items: typing.Iterable[QTableWidgetItem]) -> QtCore.QMimeData: ... + def mimeData(self, items: typing.Iterable[QTableWidgetItem]) -> QtCore.QMimeData | None: ... def mimeTypes(self) -> typing.List[str]: ... currentCellChanged: typing.ClassVar[QtCore.pyqtSignal] cellChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -7134,6 +7334,7 @@ class QTabWidget(QWidget): class TabShape(enum.Enum): Rounded = ... # type: QTabWidget.TabShape Triangular = ... # type: QTabWidget.TabShape + class TabPosition(enum.Enum): North = ... # type: QTabWidget.TabPosition South = ... # type: QTabWidget.TabPosition @@ -7215,19 +7416,23 @@ class QTextEdit(QAbstractScrollArea): AutoNone = ... # type: QTextEdit.AutoFormattingFlag AutoBulletList = ... # type: QTextEdit.AutoFormattingFlag AutoAll = ... # type: QTextEdit.AutoFormattingFlag + class LineWrapMode(enum.Enum): NoWrap = ... # type: QTextEdit.LineWrapMode WidgetWidth = ... # type: QTextEdit.LineWrapMode FixedPixelWidth = ... # type: QTextEdit.LineWrapMode FixedColumnWidth = ... # type: QTextEdit.LineWrapMode + class ExtraSelection(PyQt6.sip.simplewrapper): cursor = ... # type: QtGui.QTextCursor format = ... # type: QtGui.QTextCharFormat + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, a0: "QTextEdit.ExtraSelection") -> None: ... + @typing.overload def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload @@ -7439,16 +7644,6 @@ class QToolBar(QWidget): def addWidget(self, widget: QWidget) -> QtGui.QAction: ... def insertSeparator(self, before: QtGui.QAction) -> QtGui.QAction: ... def addSeparator(self) -> QtGui.QAction: ... - @typing.overload - def addAction(self, a0: QtGui.QAction) -> None: ... - @typing.overload - def addAction(self, text: str) -> QtGui.QAction: ... - @typing.overload - def addAction(self, icon: QtGui.QIcon, text: str) -> QtGui.QAction: ... - @typing.overload - def addAction(self, text: str, slot: PYQT_SLOT) -> QtGui.QAction: ... - @typing.overload - def addAction(self, icon: QtGui.QIcon, text: str, slot: PYQT_SLOT) -> QtGui.QAction: ... def clear(self) -> None: ... def orientation(self) -> QtCore.Qt.Orientation: ... def setOrientation(self, orientation: QtCore.Qt.Orientation) -> None: ... @@ -7654,6 +7849,7 @@ class QTreeWidgetItem(PyQt6.sip.wrapper): ShowIndicator = ... # type: QTreeWidgetItem.ChildIndicatorPolicy DontShowIndicator = ... # type: QTreeWidgetItem.ChildIndicatorPolicy DontShowIndicatorWhenChildless = ... # type: QTreeWidgetItem.ChildIndicatorPolicy + class ItemType(enum.IntEnum): Type = ... # type: QTreeWidgetItem.ItemType UserType = ... # type: QTreeWidgetItem.ItemType @@ -7675,6 +7871,7 @@ class QTreeWidgetItem(PyQt6.sip.wrapper): def __init__(self, type: int = ...) -> None: ... @typing.overload def __init__(self, other: "QTreeWidgetItem") -> None: ... + def __ge__(self, other: "QTreeWidgetItem") -> bool: ... def emitDataChanged(self) -> None: ... def isDisabled(self) -> bool: ... def setDisabled(self, disabled: bool) -> None: ... @@ -7717,10 +7914,14 @@ class QTreeWidgetItem(PyQt6.sip.wrapper): def parent(self) -> "QTreeWidgetItem": ... def write(self, out: QtCore.QDataStream) -> None: ... def read(self, in_: QtCore.QDataStream) -> None: ... + def __lt__(self, other: "QTreeWidgetItem") -> bool: ... def setData(self, column: int, role: int, value: typing.Any) -> None: ... def data(self, column: int, role: int) -> typing.Any: ... def setCheckState(self, column: int, state: QtCore.Qt.CheckState) -> None: ... def checkState(self, column: int) -> QtCore.Qt.CheckState: ... + @typing.overload + def setTextAlignment(self, column: int, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + @typing.overload def setTextAlignment(self, column: int, alignment: int) -> None: ... def textAlignment(self, column: int) -> int: ... def font(self, column: int) -> QtGui.QFont: ... @@ -7749,7 +7950,7 @@ class QTreeWidget(QTreeView): def indexFromItem(self, item: QTreeWidgetItem, column: int = ...) -> QtCore.QModelIndex: ... def supportedDropActions(self) -> QtCore.Qt.DropAction: ... def dropMimeData(self, parent: QTreeWidgetItem, index: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... - def mimeData(self, items: typing.Iterable[QTreeWidgetItem]) -> QtCore.QMimeData: ... + def mimeData(self, items: typing.Iterable[QTreeWidgetItem]) -> QtCore.QMimeData | None: ... def mimeTypes(self) -> typing.List[str]: ... itemSelectionChanged: typing.ClassVar[QtCore.pyqtSignal] currentItemChanged: typing.ClassVar[QtCore.pyqtSignal] @@ -7824,11 +8025,13 @@ class QTreeWidgetItemIterator(PyQt6.sip.simplewrapper): NotEditable = ... # type: QTreeWidgetItemIterator.IteratorFlag UserFlag = ... # type: QTreeWidgetItemIterator.IteratorFlag @typing.overload - def __init__(self, it: "QTreeWidgetItemIterator") -> None: ... + def __init__(self, item: QTreeWidgetItem, flags: "QTreeWidgetItemIterator.IteratorFlag" = ...) -> None: ... @typing.overload def __init__(self, widget: QTreeWidget, flags: "QTreeWidgetItemIterator.IteratorFlag" = ...) -> None: ... @typing.overload - def __init__(self, item: QTreeWidgetItem, flags: "QTreeWidgetItemIterator.IteratorFlag" = ...) -> None: ... + def __init__(self, it: "QTreeWidgetItemIterator") -> None: ... + def __isub__(self, n: int) -> "QTreeWidgetItemIterator": ... + def __iadd__(self, n: int) -> "QTreeWidgetItemIterator": ... def value(self) -> QTreeWidgetItem: ... class QUndoView(QListView): @@ -7893,16 +8096,19 @@ class QWizard(QDialog): HaveCustomButton2 = ... # type: QWizard.WizardOption HaveCustomButton3 = ... # type: QWizard.WizardOption NoCancelButtonOnLastPage = ... # type: QWizard.WizardOption + class WizardStyle(enum.Enum): ClassicStyle = ... # type: QWizard.WizardStyle ModernStyle = ... # type: QWizard.WizardStyle MacStyle = ... # type: QWizard.WizardStyle AeroStyle = ... # type: QWizard.WizardStyle + class WizardPixmap(enum.Enum): WatermarkPixmap = ... # type: QWizard.WizardPixmap LogoPixmap = ... # type: QWizard.WizardPixmap BannerPixmap = ... # type: QWizard.WizardPixmap BackgroundPixmap = ... # type: QWizard.WizardPixmap + class WizardButton(enum.Enum): BackButton = ... # type: QWizard.WizardButton NextButton = ... # type: QWizard.WizardButton @@ -7915,6 +8121,7 @@ class QWizard(QDialog): CustomButton3 = ... # type: QWizard.WizardButton Stretch = ... # type: QWizard.WizardButton def __init__(self, parent: typing.Optional[QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + def setCurrentId(self, id: int) -> None: ... pageRemoved: typing.ClassVar[QtCore.pyqtSignal] pageAdded: typing.ClassVar[QtCore.pyqtSignal] def sideWidget(self) -> QWidget: ... diff --git a/PyQt6-stubs/QtXml.pyi b/PyQt6-stubs/QtXml.pyi index e305351..5216de5 100644 --- a/PyQt6-stubs/QtXml.pyi +++ b/PyQt6-stubs/QtXml.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtXml module. # -# Generated by SIP 6.5.1 +# Generated by SIP 6.7.0 # # Copyright (c) 2022 Riverbank Computing Limited # @@ -48,11 +48,14 @@ class QDomImplementation(PyQt6.sip.simplewrapper): def createDocument(self, nsURI: str, qName: str, doctype: "QDomDocumentType") -> "QDomDocument": ... def createDocumentType(self, qName: str, publicId: str, systemId: str) -> "QDomDocumentType": ... def hasFeature(self, feature: str, version: str) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QDomNode(PyQt6.sip.simplewrapper): class EncodingPolicy(enum.Enum): EncodingFromDocument = ... # type: QDomNode.EncodingPolicy EncodingFromTextStream = ... # type: QDomNode.EncodingPolicy + class NodeType(enum.Enum): ElementNode = ... # type: QDomNode.NodeType AttributeNode = ... # type: QDomNode.NodeType @@ -134,6 +137,8 @@ class QDomNode(PyQt6.sip.simplewrapper): def replaceChild(self, newChild: "QDomNode", oldChild: "QDomNode") -> "QDomNode": ... def insertAfter(self, newChild: "QDomNode", refChild: "QDomNode") -> "QDomNode": ... def insertBefore(self, newChild: "QDomNode", refChild: "QDomNode") -> "QDomNode": ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QDomNodeList(PyQt6.sip.simplewrapper): @typing.overload @@ -147,6 +152,8 @@ class QDomNodeList(PyQt6.sip.simplewrapper): def length(self) -> int: ... def at(self, index: int) -> QDomNode: ... def item(self, index: int) -> QDomNode: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QDomDocumentType(QDomNode): @typing.overload @@ -223,6 +230,8 @@ class QDomNamedNodeMap(PyQt6.sip.simplewrapper): def removeNamedItem(self, name: str) -> QDomNode: ... def setNamedItem(self, newNode: QDomNode) -> QDomNode: ... def namedItem(self, name: str) -> QDomNode: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... class QDomDocumentFragment(QDomNode): @typing.overload diff --git a/PyQt6-stubs/sip.pyi b/PyQt6-stubs/sip.pyi index bd775f5..00d91d4 100644 --- a/PyQt6-stubs/sip.pyi +++ b/PyQt6-stubs/sip.pyi @@ -1,4 +1,4 @@ -# Copyright (c) 2021, Riverbank Computing Limited +# Copyright (c) 2022, Riverbank Computing Limited # All rights reserved. # # This copy of SIP is licensed for use under the terms of the SIP License @@ -20,50 +20,62 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -from typing import Generic, TypeVar, Union, overload +from typing import Any, Generic, Iterable, Sequence, TypeVar, Union, overload + +# PEP 484 has no explicit support for the buffer protocol so we just name types +# we know that implement it. +Buffer = Union[bytes, bytearray, memoryview, "array", "voidptr"] # Constants. SIP_VERSION = ... # type: int SIP_VERSION_STR = ... # type: str # The bases for SIP generated types. -class wrappertype: ... -class simplewrapper: ... +class wrappertype: + def __init__(self, *args, **kwargs) -> None: ... + +class simplewrapper: + def __init__(self, *args, **kwargs) -> None: ... + class wrapper(simplewrapper): ... # The array type. -T = TypeVar("T") +_T = TypeVar("_T") -class array(Generic[T]): +class array(Sequence[_T], Generic[_T]): + @overload + def __getitem__(self, key: int) -> _T: ... + @overload + def __getitem__(self, key: slice) -> "array[_T]": ... @overload - def __getitem__(self, i: int) -> T: ... + def __setitem__(self, key: int, value: _T) -> None: ... @overload - def __getitem__(self, s: slice) -> array[T]: ... + def __setitem__(self, key: slice, value: Iterable[_T]) -> None: ... + @overload + def __delitem__(self, key: int) -> None: ... + @overload + def __delitem__(self, key: slice) -> None: ... def __len__(self) -> int: ... # The voidptr type. class voidptr: - def __init__(addr: Union[int, Buffer], size: int = -1, writeable: bool = True) -> None: ... + def __init__(self, addr: Union[int, Buffer], size: int = -1, writeable: bool = True) -> None: ... def __int__(self) -> int: ... @overload def __getitem__(self, i: int) -> bytes: ... @overload - def __getitem__(self, s: slice) -> voidptr: ... - def __hex__(self) -> str: ... + def __getitem__(self, s: slice) -> "voidptr": ... def __len__(self) -> int: ... def __setitem__(self, i: Union[int, slice], v: Buffer) -> None: ... def asarray(self, size: int = -1) -> array[int]: ... + # Python doesn't expose the capsule type. - # def ascapsule(self) -> capsule: ... + def ascapsule(self) -> Any: ... def asstring(self, size: int = -1) -> bytes: ... def getsize(self) -> int: ... def getwriteable(self) -> bool: ... def setsize(self, size: int) -> None: ... - def setwriteable(self, bool: bool) -> None: ... - -# PEP 484 has no explicit support for the buffer protocol so we just name types -# we know that implement it. -Buffer = Union[bytes, bytearray, memoryview, array, voidptr] + def setwriteable(self, writeable: bool) -> None: ... # Remaining functions. def assign(obj: simplewrapper, other: simplewrapper) -> None: ... diff --git a/PyQt6-stubs/uic/Compiler/indenter.pyi b/PyQt6-stubs/uic/Compiler/indenter.pyi index 67f649c..0d36c2a 100644 --- a/PyQt6-stubs/uic/Compiler/indenter.pyi +++ b/PyQt6-stubs/uic/Compiler/indenter.pyi @@ -1,10 +1,10 @@ -from typing import Any +from _typeshed import Incomplete indentwidth: int class _IndentedCodeWriter: level: int - output: Any + output: Incomplete def __init__(self, output) -> None: ... def indent(self) -> None: ... def dedent(self) -> None: ... diff --git a/PyQt6-stubs/uic/Compiler/misc.pyi b/PyQt6-stubs/uic/Compiler/misc.pyi index 85f4972..cdf2fc0 100644 --- a/PyQt6-stubs/uic/Compiler/misc.pyi +++ b/PyQt6-stubs/uic/Compiler/misc.pyi @@ -1,8 +1,8 @@ -from typing import Any +from _typeshed import Incomplete def moduleMember(module, name): ... class Literal: - string: Any + string: Incomplete def __init__(self, string) -> None: ... def __or__(self, r_op): ... diff --git a/PyQt6-stubs/uic/Compiler/qobjectcreator.pyi b/PyQt6-stubs/uic/Compiler/qobjectcreator.pyi index 4be41d5..61688de 100644 --- a/PyQt6-stubs/uic/Compiler/qobjectcreator.pyi +++ b/PyQt6-stubs/uic/Compiler/qobjectcreator.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from .as_string import as_string as as_string from .indenter import write_code as write_code @@ -7,18 +7,18 @@ from .qtproxies import QtGui as QtGui from .qtproxies import QtWidgets as QtWidgets from .qtproxies import strict_getattr as strict_getattr -logger: Any -DEBUG: Any +logger: Incomplete +DEBUG: Incomplete class _QtWrapper: @classmethod def search(cls, name): ... class _QtGuiWrapper(_QtWrapper): - module: Any + module: Incomplete class _QtWidgetsWrapper(_QtWrapper): - module: Any + module: Incomplete class _ModuleWrapper: def __init__(self, name, classes) -> None: ... diff --git a/PyQt6-stubs/uic/Compiler/qtproxies.pyi b/PyQt6-stubs/uic/Compiler/qtproxies.pyi index b7c11b5..5f69e3d 100644 --- a/PyQt6-stubs/uic/Compiler/qtproxies.pyi +++ b/PyQt6-stubs/uic/Compiler/qtproxies.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from .as_string import as_string as as_string from .indenter import write_code as write_code @@ -6,7 +6,7 @@ from .misc import Literal as Literal from .misc import moduleMember as moduleMember from .proxy_metaclass import ProxyMetaclass as ProxyMetaclass -i18n_strings: Any +i18n_strings: Incomplete i18n_context: str def i18n_print(string) -> None: ... @@ -15,17 +15,17 @@ def i18n_func(name): ... def strict_getattr(module, clsname): ... class i18n_string: - string: Any - disambig: Any + string: Incomplete + disambig: Incomplete def __init__(self, string, disambig) -> None: ... AS_ARGUMENT: int AS_SIGNAL: int class ProxyClassMember: - proxy: Any - function_name: Any - flags: Any + proxy: Incomplete + function_name: Incomplete + flags: Incomplete def __init__(self, proxy, function_name, flags) -> None: ... def __call__(self, *args): ... def __getattribute__(self, attribute): ... @@ -43,24 +43,27 @@ class ProxyClass(ProxyBase): def __getattribute__(self, attribute): ... class LiteralProxyClass(ProxyClass): - flags: Any + flags: Incomplete def __init__(self, *args) -> None: ... class ProxyNamespace(ProxyBase): ... class QtCore(ProxyNamespace): class Qt(ProxyNamespace): ... + class QMetaObject(ProxyClass): @classmethod def connectSlotsByName(cls, *args) -> None: ... + class QObject(ProxyClass): - flags: Any + flags: Incomplete def metaObject(self): ... def objectName(self): ... class QtGui(ProxyNamespace): class QIcon(ProxyClass): class fromTheme(ProxyClass): ... + class QConicalGradient(ProxyClass): ... class QLinearGradient(ProxyClass): ... class QRadialGradient(ProxyClass): ... @@ -76,6 +79,7 @@ class QtWidgets(ProxyNamespace): class QApplication(QtCore.QObject): @staticmethod def translate(uiname, text, disambig): ... + class QSpacerItem(ProxyClass): ... class QSizePolicy(ProxyClass): ... class QButtonGroup(QtCore.QObject): ... @@ -85,10 +89,12 @@ class QtWidgets(ProxyNamespace): class QHBoxLayout(QBoxLayout): ... class QVBoxLayout(QBoxLayout): ... class QFormLayout(QLayout): ... + class QWidget(QtCore.QObject): def font(self): ... def minimumSizeHint(self): ... def sizePolicy(self): ... + class QDialog(QWidget): ... class QColorDialog(QDialog): ... class QFileDialog(QDialog): ... @@ -100,11 +106,14 @@ class QtWidgets(ProxyNamespace): class QDial(QAbstractSlider): ... class QScrollBar(QAbstractSlider): ... class QSlider(QAbstractSlider): ... + class QMenu(QWidget): def menuAction(self): ... + class QTabWidget(QWidget): def addTab(self, *args) -> None: ... def indexOf(self, page): ... + class QComboBox(QWidget): ... class QFontComboBox(QComboBox): ... class QAbstractSpinBox(QWidget): ... @@ -118,12 +127,15 @@ class QtWidgets(ProxyNamespace): class QLCDNumber(QFrame): ... class QSplitter(QFrame): ... class QStackedWidget(QFrame): ... + class QToolBox(QFrame): def addItem(self, *args) -> None: ... def indexOf(self, page): ... def layout(self): ... + class QAbstractScrollArea(QFrame): def viewport(self): ... + class QGraphicsView(QAbstractScrollArea): ... class QMdiArea(QAbstractScrollArea): ... class QPlainTextEdit(QAbstractScrollArea): ... @@ -134,31 +146,40 @@ class QtWidgets(ProxyNamespace): class QColumnView(QAbstractItemView): ... class QHeaderView(QAbstractItemView): ... class QListView(QAbstractItemView): ... + class QTableView(QAbstractItemView): def horizontalHeader(self): ... def verticalHeader(self): ... + class QTreeView(QAbstractItemView): def header(self): ... + class QUndoView(QListView): ... class QListWidgetItem(ProxyClass): ... + class QListWidget(QListView): - setSortingEnabled: Any - isSortingEnabled: Any - item: Any + setSortingEnabled: Incomplete + isSortingEnabled: Incomplete + item: Incomplete + class QTableWidgetItem(ProxyClass): ... + class QTableWidget(QTableView): - setSortingEnabled: Any - isSortingEnabled: Any - item: Any - horizontalHeaderItem: Any - verticalHeaderItem: Any + setSortingEnabled: Incomplete + isSortingEnabled: Incomplete + item: Incomplete + horizontalHeaderItem: Incomplete + verticalHeaderItem: Incomplete + class QTreeWidgetItem(ProxyClass): def child(self, index): ... + class QTreeWidget(QTreeView): - setSortingEnabled: Any - isSortingEnabled: Any + setSortingEnabled: Incomplete + isSortingEnabled: Incomplete def headerItem(self): ... def topLevelItem(self, index): ... + class QAbstractButton(QWidget): ... class QCheckBox(QAbstractButton): ... class QRadioButton(QAbstractButton): ... diff --git a/PyQt6-stubs/uic/Loader/loader.pyi b/PyQt6-stubs/uic/Loader/loader.pyi index 8bf7b4c..445e47f 100644 --- a/PyQt6-stubs/uic/Loader/loader.pyi +++ b/PyQt6-stubs/uic/Loader/loader.pyi @@ -1,5 +1,4 @@ -from typing import Any - +from _typeshed import Incomplete from PyQt6 import QtCore as QtCore from PyQt6 import QtGui as QtGui from PyQt6 import QtWidgets as QtWidgets @@ -10,5 +9,5 @@ from .qobjectcreator import LoaderCreatorPolicy as LoaderCreatorPolicy class DynamicUILoader(UIParser): def __init__(self, package) -> None: ... def createToplevelWidget(self, classname, widgetname): ... - toplevelInst: Any + toplevelInst: Incomplete def loadUi(self, filename, toplevelInst): ... diff --git a/PyQt6-stubs/uic/Loader/qobjectcreator.pyi b/PyQt6-stubs/uic/Loader/qobjectcreator.pyi index c9ee9b1..8ed2a48 100644 --- a/PyQt6-stubs/uic/Loader/qobjectcreator.pyi +++ b/PyQt6-stubs/uic/Loader/qobjectcreator.pyi @@ -1,5 +1,4 @@ -from typing import Any - +from _typeshed import Incomplete from PyQt6 import QtGui as QtGui from PyQt6 import QtWidgets as QtWidgets @@ -8,10 +7,10 @@ class _QtWrapper: def search(cls, name): ... class _QtGuiWrapper(_QtWrapper): - module: Any + module: Incomplete class _QtWidgetsWrapper(_QtWrapper): - module: Any + module: Incomplete class _ModuleWrapper: def __init__(self, moduleName, classes) -> None: ... diff --git a/PyQt6-stubs/uic/compile_ui.pyi b/PyQt6-stubs/uic/compile_ui.pyi index bed17e4..1d2c4dc 100644 --- a/PyQt6-stubs/uic/compile_ui.pyi +++ b/PyQt6-stubs/uic/compile_ui.pyi @@ -1,7 +1,7 @@ -from typing import Any +from _typeshed import Incomplete from .Compiler import compiler as compiler from .Compiler import indenter as indenter -def compileUiDir(dir, recurse: bool = ..., map: Any | None = ..., **compileUi_args) -> None: ... +def compileUiDir(dir, recurse: bool = ..., map: Incomplete | None = ..., **compileUi_args) -> None: ... def compileUi(uifile, pyfile, execute: bool = ..., indent: int = ...) -> None: ... diff --git a/PyQt6-stubs/uic/enum_map.pyi b/PyQt6-stubs/uic/enum_map.pyi index 4d29af8..0214ffd 100644 --- a/PyQt6-stubs/uic/enum_map.pyi +++ b/PyQt6-stubs/uic/enum_map.pyi @@ -1,3 +1,3 @@ -from typing import Any +from _typeshed import Incomplete -EnumMap: Any +EnumMap: Incomplete diff --git a/PyQt6-stubs/uic/icon_cache.pyi b/PyQt6-stubs/uic/icon_cache.pyi index e579a75..b98ff8d 100644 --- a/PyQt6-stubs/uic/icon_cache.pyi +++ b/PyQt6-stubs/uic/icon_cache.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete class IconCache: def __init__(self, object_factory, qtgui_module) -> None: ... @@ -6,7 +6,7 @@ class IconCache: def get_icon(self, iconset): ... class _IconSet: - icon: Any + icon: Incomplete def __init__(self, iconset, base_dir) -> None: ... def set_icon(self, icon, qtgui_module) -> None: ... def __eq__(self, other): ... diff --git a/PyQt6-stubs/uic/load_ui.pyi b/PyQt6-stubs/uic/load_ui.pyi index 0c1077b..35a784b 100644 --- a/PyQt6-stubs/uic/load_ui.pyi +++ b/PyQt6-stubs/uic/load_ui.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete def loadUiType(uifile): ... -def loadUi(uifile, baseinstance: Any | None = ..., package: str = ...): ... +def loadUi(uifile, baseinstance: Incomplete | None = ..., package: str = ...): ... diff --git a/PyQt6-stubs/uic/objcreator.pyi b/PyQt6-stubs/uic/objcreator.pyi index 8f816bf..717e73b 100644 --- a/PyQt6-stubs/uic/objcreator.pyi +++ b/PyQt6-stubs/uic/objcreator.pyi @@ -1,9 +1,9 @@ -from typing import Any +from _typeshed import Incomplete from .exceptions import NoSuchWidgetError as NoSuchWidgetError from .exceptions import WidgetPluginError as WidgetPluginError -widgetPluginPath: Any +widgetPluginPath: Incomplete MATCH: bool NO_MATCH: bool MODULE: int diff --git a/PyQt6-stubs/uic/properties.pyi b/PyQt6-stubs/uic/properties.pyi index aecf447..2936366 100644 --- a/PyQt6-stubs/uic/properties.pyi +++ b/PyQt6-stubs/uic/properties.pyi @@ -1,51 +1,51 @@ -from typing import Any +from _typeshed import Incomplete from .enum_map import EnumMap as EnumMap from .exceptions import NoSuchClassError as NoSuchClassError from .exceptions import UnsupportedPropertyError as UnsupportedPropertyError from .icon_cache import IconCache as IconCache -logger: Any -DEBUG: Any -QtCore: Any -QtGui: Any -QtWidgets: Any +logger: Incomplete +DEBUG: Incomplete +QtCore: Incomplete +QtGui: Incomplete +QtWidgets: Incomplete def int_list(prop): ... def float_list(prop): ... -bool_: Any +bool_: Incomplete def qfont_style_strategy(v): ... def needsWidget(func): ... def ascii_upper(s): ... class Properties: - factory: Any + factory: Incomplete def __init__(self, factory, qtcore_module, qtgui_module, qtwidgets_module) -> None: ... def set_base_dir(self, base_dir) -> None: ... - buddies: Any - delayed_props: Any - icon_cache: Any + buddies: Incomplete + delayed_props: Incomplete + icon_cache: Incomplete def reset(self) -> None: ... - def convert(self, prop, widget: Any | None = ...): ... - def getProperty(self, elem, name, default: Any | None = ...): ... - def getAttribute(self, elem, name, default: Any | None = ...): ... + def convert(self, prop, widget: Incomplete | None = ...): ... + def getProperty(self, elem, name, default: Incomplete | None = ...): ... + def getAttribute(self, elem, name, default: Incomplete | None = ...): ... def setProperties(self, widget, elem) -> None: ... - currentIndex: Any - currentRow: Any - showDropIndicator: Any - intValue: Any - value: Any - objectName: Any - margin: Any - leftMargin: Any - topMargin: Any - rightMargin: Any - bottomMargin: Any - spacing: Any - horizontalSpacing: Any - verticalSpacing: Any + currentIndex: Incomplete + currentRow: Incomplete + showDropIndicator: Incomplete + intValue: Incomplete + value: Incomplete + objectName: Incomplete + margin: Incomplete + leftMargin: Incomplete + topMargin: Incomplete + rightMargin: Incomplete + bottomMargin: Incomplete + spacing: Incomplete + horizontalSpacing: Incomplete + verticalSpacing: Incomplete def tabSpacing(self, widget, prop) -> None: ... def buddy(self, widget, prop) -> None: ... def geometry(self, widget, prop) -> None: ... diff --git a/PyQt6-stubs/uic/ui_file.pyi b/PyQt6-stubs/uic/ui_file.pyi index af62b27..aeb17fb 100644 --- a/PyQt6-stubs/uic/ui_file.pyi +++ b/PyQt6-stubs/uic/ui_file.pyi @@ -1,11 +1,11 @@ -from typing import Any +from _typeshed import Incomplete class UIFile: - button_groups: Any - connections: Any - custom_widgets: Any - layout_default: Any - tab_stops: Any - widget: Any - class_name: Any + button_groups: Incomplete + connections: Incomplete + custom_widgets: Incomplete + layout_default: Incomplete + tab_stops: Incomplete + widget: Incomplete + class_name: Incomplete def __init__(self, ui_file) -> None: ... diff --git a/PyQt6-stubs/uic/uiparser.pyi b/PyQt6-stubs/uic/uiparser.pyi index d56168f..0d67fda 100644 --- a/PyQt6-stubs/uic/uiparser.pyi +++ b/PyQt6-stubs/uic/uiparser.pyi @@ -1,17 +1,17 @@ -from typing import Any +from _typeshed import Incomplete from .objcreator import QObjectCreator as QObjectCreator from .properties import Properties as Properties from .ui_file import UIFile as UIFile -logger: Any -DEBUG: Any -QtCore: Any -QtGui: Any -QtWidgets: Any +logger: Incomplete +DEBUG: Incomplete +QtCore: Incomplete +QtGui: Incomplete +QtWidgets: Incomplete class WidgetStack(list): - topwidget: Any + topwidget: Incomplete def push(self, item) -> None: ... def popLayout(self): ... def popWidget(self): ... @@ -21,29 +21,29 @@ class WidgetStack(list): class ButtonGroup: exclusive: bool - object: Any + object: Incomplete def __init__(self) -> None: ... class UIParser: - factory: Any - wprops: Any + factory: Incomplete + wprops: Incomplete def __init__(self, qtcore_module, qtgui_module, qtwidgets_module, creatorPolicy) -> None: ... def uniqueName(self, name): ... - toplevelWidget: Any - stack: Any - name_suffixes: Any - defaults: Any - actions: Any - currentActionGroup: Any - button_groups: Any + toplevelWidget: Incomplete + stack: Incomplete + name_suffixes: Incomplete + defaults: Incomplete + actions: Incomplete + currentActionGroup: Incomplete + button_groups: Incomplete def reset(self) -> None: ... def setupObject(self, clsname, parent, branch, is_attribute: bool = ...): ... def getProperty(self, elem, name): ... column_counter: int row_counter: int item_nr: int - itemstack: Any - sorting_enabled: Any + itemstack: Incomplete + sorting_enabled: Incomplete def createWidget(self, elem) -> None: ... def handleHeaderView(self, elem, name, header) -> None: ... def createSpacer(self, elem) -> None: ... @@ -60,7 +60,7 @@ class UIParser: def setZOrder(self, elem) -> None: ... def createAction(self, elem) -> None: ... def createActionGroup(self, elem) -> None: ... - widgetTreeItemHandlers: Any + widgetTreeItemHandlers: Incomplete def traverseWidgetTree(self, elem) -> None: ... def addActions(self) -> None: ... def setDelayedProps(self) -> None: ... @@ -68,5 +68,5 @@ class UIParser: def setContext(self, context) -> None: ... def createToplevelWidget(self, classname, widgetname) -> None: ... def finalize(self) -> None: ... - uiname: Any + uiname: Incomplete def parse(self, filename): ... diff --git a/fixes/annotation_fixer.py b/fixes/annotation_fixer.py index 09fc99d..7ad4544 100644 --- a/fixes/annotation_fixer.py +++ b/fixes/annotation_fixer.py @@ -30,6 +30,7 @@ parse_expression, parse_statement, ) +from libcst.helpers import get_full_name_for_node from libcst.metadata import PositionProvider from fixes.annotation_fixes import ( @@ -354,8 +355,8 @@ def _get_fix(self) -> AnnotationFix | None: not fix.static and child_count - 1 != len(fix.params) ): # If the number of Parameters does not match the number of - # Parameters to fix, we return. - return None + # Parameters to fix, continue to next potential fix. + continue if not self._check_parameters(fix): continue @@ -434,18 +435,15 @@ def _attribute_code(attribute: Attribute) -> str: @staticmethod def _code_for_subscript(subscript: Subscript) -> str: """Return the code for a Subscript.""" - if isinstance(subscript.value, Attribute) and isinstance( - subscript.value.value, Name - ): - subscript_str = ( - f"{subscript.value.value.value}." - f"{subscript.value.attr.value}" - ) + if isinstance(subscript.value, Attribute): + subscript_str = get_full_name_for_node(subscript.value) slices = [] for sub_slice in subscript.slice: if isinstance(sub_slice.slice, Index): if isinstance(sub_slice.slice.value, (Name, SimpleString)): slices.append(sub_slice.slice.value.value) + elif isinstance(sub_slice.slice.value, Attribute): + slices.append(get_full_name_for_node(sub_slice.slice.value)) elif isinstance(sub_slice.slice.value, Subscript): slices.append( AnnotationFixer._code_for_subscript( diff --git a/fixes/annotation_fixes.py b/fixes/annotation_fixes.py index 82452f4..c1abe2a 100644 --- a/fixes/annotation_fixes.py +++ b/fixes/annotation_fixes.py @@ -84,6 +84,201 @@ class AddAnnotationFix: "setwriteable", [FixParameter("bool", "bool", None)], ), + + AnnotationFix( + "QtCore", + "QAbstractEventDispatcher", + "filterNativeEvent", + [ + FixParameter("eventType", 'typing.Union["QByteArray", bytes, bytearray]', '"QByteArray"'), + FixParameter("message", "PyQt6.sip.voidptr", "PyQt6.sip.voidptr"), + ], + ), + + + AnnotationFix( + "QtCore", + "QAbstractNativeEventFilter", + "nativeEventFilter", + [ + FixParameter("eventType", 'typing.Union["QByteArray", bytes, bytearray]', '"QByteArray"'), + FixParameter("message", "PyQt6.sip.voidptr", "PyQt6.sip.voidptr"), + ], + ), + + AnnotationFix( + "QtCore", + "QBuffer", + "setData", + [ + FixParameter("data", 'typing.Union["QByteArray", bytes, bytearray]', '"QByteArray"'), + ], + ), + + + AnnotationFix( + "QtCore", + "QByteArray", + "__init__", + [ + FixParameter("a", 'typing.Union["QByteArray", bytes, bytearray]', '"QByteArray"'), + ], + ), + + AnnotationFix( + "QtCore", + "QByteArray", + "fromBase64Encoding", + [ + FixParameter("base64", 'typing.Union["QByteArray", bytes, bytearray]', '"QByteArray"'), + FixParameter("options", '"QByteArray.Base64Option"', '"QByteArray.Base64Option"'), + ], + static = True, + ), + + AnnotationFix( + "QtCore", + "QByteArray", + "fromPercentEncoding", + [ + FixParameter("input", 'typing.Union["QByteArray", bytes, bytearray]', '"QByteArray"'), + FixParameter("percent", "str", "str"), + ], + static = True, + ), + + AnnotationFix( + "QtCore", + "QByteArray", + "toPercentEncoding", + [ + FixParameter("exclude", 'typing.Union["QByteArray", bytes, bytearray]', '"QByteArray"'), + FixParameter("include", 'typing.Union["QByteArray", bytes, bytearray]', '"QByteArray"'), + FixParameter("percent", "str", "str"), + ], + ), + + AnnotationFix( + "QtCore", + "QByteArray", + "fromHex", + [ + FixParameter("hexEncoded", 'typing.Union["QByteArray", bytes, bytearray]', '"QByteArray"'), + ], + static = True, + ), + + + AnnotationFix( + "QtCore", + "QByteArrayMatcher", + "setPattern", + [ + FixParameter("pattern", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + AnnotationFix( + "QtCore", + "QCborStreamReader", + "__init__", + [ + FixParameter("data", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + AnnotationFix( + "QtCore", + "QCborStreamReader", + "addData", + [ + FixParameter("data", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + AnnotationFix( + "QtCore", + "QDynamicPropertyChangeEvent", + "__init__", + [ + FixParameter("name", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + + AnnotationFix( + "QtCore", + "QFile", + "decodeName", + [ + FixParameter("localFileName", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + static = True, + ), + + AnnotationFix( + "QtCore", + "QJsonDocument", + "fromJson", + [ + FixParameter("json", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + FixParameter("error", "typing.Optional[QJsonParseError]", "typing.Optional[QJsonParseError]"), + ], + static = True, + ), + + AnnotationFix( + "QtCore", + "QMessageAuthenticationCode", + "__init__", + [ + FixParameter("method", "QCryptographicHash.Algorithm", "QCryptographicHash.Algorithm"), + FixParameter("key", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + AnnotationFix( + "QtCore", + "QMessageAuthenticationCode", + "hash", + [ + FixParameter("message", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + FixParameter("key", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + FixParameter("method", "QCryptographicHash.Algorithm", "QCryptographicHash.Algorithm") + ], + static = True, + ), + + AnnotationFix( + "QtCore", + "QMimeData", + "setData", + [ + FixParameter("mimetype", "str", "str"), + FixParameter("data", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + AnnotationFix( + "QtCore", + "QMimeDatabase", + "mimeTypeForFileNameAndData", + [ + FixParameter("fileName", "str", "str"), + FixParameter("data", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + AnnotationFix( + "QtCore", + "QMimeDatabase", + "mimeTypeForData", + [ + FixParameter("data", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + AnnotationFix( "QtCore", "QObject", @@ -412,6 +607,27 @@ class AddAnnotationFix: 'def __truediv__(self, divisor: float) -> "QPointF": ...', ], ), + + AnnotationFix( + "QtCore", + "QPropertyAnimation", + "__init__", + [ + FixParameter("target", "QObject", "QObject"), + FixParameter("propertyName", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + FixParameter("parent", "typing.Optional[QObject]", "typing.Optional[QObject]"), + ], + ), + + AnnotationFix( + "QtCore", + "QPropertyAnimation", + "setPropertyName", + [ + FixParameter("propertyName", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + AddAnnotationFix( "QtCore", "QSize", @@ -446,6 +662,174 @@ class AddAnnotationFix: 'def __itruediv__(self, value: float) -> "QSizeF": ...', ], ), + + + AnnotationFix( + "QtCore", + "QTimeZone", + "__init__", + [ + FixParameter("ianaId", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + AnnotationFix( + "QtCore", + "QTimeZone", + "__init__", + [ + FixParameter("zoneId", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + FixParameter("offsetSeconds", "int", "int"), + FixParameter("name", "str", "str"), + FixParameter("abbreviation", "str", "str"), + FixParameter("territory", "QLocale.Country", "QLocale.Country"), + FixParameter("comment", "str", "str"), + ], + ), + AnnotationFix( + "QtCore", + "QTimeZone", + "windowsIdToIanaIds", + [ + FixParameter("windowsId", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + static=True, + ), + AnnotationFix( + "QtCore", + "QTimeZone", + "windowsIdToDefaultIanaId", + [ + FixParameter("windowsId", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + static=True, + ), + AnnotationFix( + "QtCore", + "QTimeZone", + "windowsIdToDefaultIanaId", + [ + FixParameter("windowsId", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + FixParameter("territory", "QLocale.Country", "QLocale.Country"), + ], + static=True, + ), + AnnotationFix( + "QtCore", + "QTimeZone", + "ianaIdToWindowsId", + [ + FixParameter("ianaId", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + static=True, + ), + AnnotationFix( + "QtCore", + "QTimeZone", + "isTimeZoneIdAvailable", + [ + FixParameter("ianaId", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + static=True, + ), + + + AnnotationFix( + "QtCore", + "QUrl", + "fromAce", + [ + FixParameter("domain", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + FixParameter("options", '"QUrl.AceProcessingOption"', '"QUrl.AceProcessingOption"'), + ], + static=True, + ), + AnnotationFix( + "QtCore", + "QUrl", + "toPercentEncoding", + [ + FixParameter("input", "str", "str"), + FixParameter("exclude", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + FixParameter("include", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + static=True, + ), + AnnotationFix( + "QtCore", + "QUrl", + "fromPercentEncoding", + [ + FixParameter("a0", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + static=True, + ), + AnnotationFix( + "QtCore", + "QUrl", + "fromEncoded", + [ + FixParameter("u", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + FixParameter("mode", '"QUrl.ParsingMode"', '"QUrl.ParsingMode"'), + ], + static=True, + ), + + AnnotationFix( + "QtCore", + "QUuid", + "__init__", + [ + FixParameter("string", "typing.Union[QByteArray, str, bytes, bytearray]", "typing.Union[QByteArray, str]"), + ], + ), + AnnotationFix( + "QtCore", + "QUuid", + "createUuidV5", + [ + FixParameter("ns", '"QUuid"', '"QUuid"'), + FixParameter("baseData", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + static=True, + ), + AnnotationFix( + "QtCore", + "QUuid", + "createUuidV3", + [ + FixParameter("ns", '"QUuid"', '"QUuid"'), + FixParameter("baseData", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + static=True, + ), + + AnnotationFix( + "QtCore", + "QXmlStreamReader", + "__init__", + [ + FixParameter("data", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + AnnotationFix( + "QtCore", + "QXmlStreamReader", + "addData", + [ + FixParameter("data", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + + AnnotationFix( + "QtCore", + "QXmlStreamWriter", + "__init__", + [ + FixParameter("array", "typing.Union[QByteArray, bytes, bytearray]", "QByteArray"), + ], + ), + AnnotationFix( "QtGui", "QPainter", @@ -593,4 +977,626 @@ class AddAnnotationFix: FixParameter("*a2", "int", None), ], ), + + AnnotationFix( + "QtGui", + "QPixmap", + "loadFromData", + [ + FixParameter("buf", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("format", "typing.Optional[str]", "typing.Optional[str]"), + FixParameter("flags", "QtCore.Qt.ImageConversionFlag", "QtCore.Qt.ImageConversionFlag"), + ], + ), + + AnnotationFix( + "QtGui", + "QColor", + "isValidColorName", + [ + FixParameter("a0", "typing.Union[QtCore.QByteArray, bytes, bytearray, str]", "typing.Union[QtCore.QByteArray, str]"), + ], + static=True, + ), + AnnotationFix( + "QtGui", + "QColor", + "fromString", + [ + FixParameter("name", "typing.Union[QtCore.QByteArray, bytes, bytearray, str]", "typing.Union[QtCore.QByteArray, str]"), + ], + static=True, + ), + + + AnnotationFix( + "QtGui", + "QColorSpace", + "fromIccProfile", + [ + FixParameter("iccProfile", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + static=True, + ), + + AnnotationFix( + "QtGui", + "QFontDatabase", + "addApplicationFontFromData", + [ + FixParameter("fontData", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + static=True, + ), + + AnnotationFix( + "QtGui", + "QImageIOHandler", + "setFormat", + [ + FixParameter("format", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtGui", + "QImageReader", + "__init__", + [ + FixParameter("device", "QtCore.QIODevice", "QtCore.QIODevice"), + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtGui", + "QImageReader", + "__init__", + [ + FixParameter("fileName", "str", "str"), + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtGui", + "QImageReader", + "imageFormatsForMimeType", + [ + FixParameter("mimeType", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + static=True, + ), + AnnotationFix( + "QtGui", + "QImageReader", + "setFormat", + [ + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtGui", + "QImageWriter", + "__init__", + [ + FixParameter("device", "QtCore.QIODevice", "QtCore.QIODevice"), + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtGui", + "QImageWriter", + "__init__", + [ + FixParameter("fileName", "str", "str"), + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtGui", + "QImageWriter", + "imageFormatsForMimeType", + [ + FixParameter("mimeType", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + static=True, + ), + AnnotationFix( + "QtGui", + "QImageWriter", + "setSubType", + [ + FixParameter("type", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtGui", + "QImageWriter", + "setFormat", + [ + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtGui", + "QMovie", + "__init__", + [ + FixParameter("device", "QtCore.QIODevice", "QtCore.QIODevice"), + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("parent", "typing.Optional[QtCore.QObject]", "typing.Optional[QtCore.QObject]"), + ], + ), + AnnotationFix( + "QtGui", + "QMovie", + "__init__", + [ + FixParameter("fileName", "str", "str"), + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("parent", "typing.Optional[QtCore.QObject]", "typing.Optional[QtCore.QObject]"), + ], + ), + AnnotationFix( + "QtGui", + "QMovie", + "setFormat", + [ + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtGui", + "QOpenGLContext", + "hasExtension", + [ + FixParameter("extension", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtGui", + "QOpenGLContext", + "getProcAddress", + [ + FixParameter("procName", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtGui", + "QPdfWriter", + "setDocumentXmpMetadata", + [ + FixParameter("xmpMetadata", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtGui", + "QRawFont", + "__init__", + [ + FixParameter("fontData", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("pixelSize", "float", "float"), + FixParameter("hintingPreference", "QFont.HintingPreference", "QFont.HintingPreference"), + ], + ), + AnnotationFix( + "QtGui", + "QRawFont", + "loadFromData", + [ + FixParameter("fontData", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("pixelSize", "float", "float"), + FixParameter("hintingPreference", "QFont.HintingPreference", "QFont.HintingPreference"), + ], + ), + + AnnotationFix( + "QtGui", + "QStandardItemModel", + "setItemRoleNames", + [ + FixParameter("roleNames", "typing.Dict[int, typing.Union[QtCore.QByteArray, bytes, bytearray]]", "typing.Dict[int, QtCore.QByteArray]"), + ], + ), + + AnnotationFix( + "QtGui", + "QTextDocumentWriter", + "__init__", + [ + FixParameter("device", "QtCore.QIODevice", "QtCore.QIODevice"), + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtGui", + "QTextDocumentWriter", + "__init__", + [ + FixParameter("fileName", "str", "str"), + FixParameter("format", "typing.Union[QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtGui", + "QTextDocumentWriter", + "setFormat", + [ + FixParameter("format", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtNetwork", + "QHttpPart", + "setBody", + [ + FixParameter("body", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QHttpPart", + "setRawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("headerValue", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QHttpMultiPart", + "setBoundary", + [ + FixParameter("boundary", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtNetwork", + "QNetworkAccessManager", + "put", + [ + FixParameter("request", '"QNetworkRequest"', '"QNetworkRequest"'), + FixParameter("data", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QNetworkAccessManager", + "post", + [ + FixParameter("request", '"QNetworkRequest"', '"QNetworkRequest"'), + FixParameter("data", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtNetwork", + "QNetworkCookie", + "__init__", + [ + FixParameter("name", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("value", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + AnnotationFix( + "QtNetwork", + "QSslCertificate", + "__init__", + [ + FixParameter("data", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("format", "QSsl.EncodingFormat", "QSsl.EncodingFormat"), + ], + ), + + AnnotationFix( + "QtNetwork", + "QNetworkCookie", + "parseCookies", + [ + FixParameter("cookieString", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + static=True, + ), + AnnotationFix( + "QtNetwork", + "QNetworkProxy", + "setRawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("value", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QNetworkProxy", + "rawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QNetworkProxy", + "hasRawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QNetworkReply", + "setRawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("value", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QNetworkReply", + "rawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QNetworkReply", + "hasRawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QNetworkRequest", + "setRawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("value", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QNetworkRequest", + "rawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QNetworkRequest", + "hasRawHeader", + [ + FixParameter("headerName", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QSslCertificate", + "importPkcs12", + [ + FixParameter("device", "QtCore.QIODevice", "QtCore.QIODevice"), + FixParameter("key", '"QSslKey"', '"QSslKey"'), + FixParameter("certificate", '"QSslCertificate"', '"QSslCertificate"'), + FixParameter("caCertificates", 'typing.Optional[typing.Iterable["QSslCertificate"]]', 'typing.Optional[typing.Iterable["QSslCertificate"]]'), + FixParameter("passPhrase", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + static=True + ), + AnnotationFix( + "QtNetwork", + "QSslCertificate", + "fromData", + [ + FixParameter("data", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("format", "QSsl.EncodingFormat", "QSsl.EncodingFormat"), + ], + static=True + ), + AnnotationFix( + "QtNetwork", + "QSslCertificate", + "subjectInfo", + [ + FixParameter("attribute", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QSslCertificate", + "issuerInfo", + [ + FixParameter("attribute", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + #AnnotationFix( + # "QtNetwork", + # "QSslConfiguration", + # "setBackendConfiguration", + # [ + # FixParameter("backendConfiguration", "typing.Dict[typing.Union[QtCore.QByteArray, bytes, bytearray], typing.Any]", "typing.Dict[QtCore.QByteArray, typing.Any]"), + # ], + #), + AnnotationFix( + "QtNetwork", + "QSslConfiguration", + "setBackendConfigurationOption", + [ + FixParameter("name", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("value", "typing.Any", "typing.Any"), + ], + ), + AnnotationFix( + "QtNetwork", + "QSslConfiguration", + "setPreSharedKeyIdentityHint", + [ + FixParameter("hint", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + #AnnotationFix( + # "QtNetwork", + # "QSslConfiguration", + # "setAllowedNextProtocols", + # [ + # FixParameter("protocols", "typing.Iterable[typing.Union[QtCore.QByteArray, bytes, bytearray]]", "typing.Iterable[QtCore.QByteArray]"), + # ], + #), + AnnotationFix( + "QtNetwork", + "QSslConfiguration", + "setSessionTicket", + [ + FixParameter("sessionTicket", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QSslDiffieHellmanParameters", + "fromEncoded", + [ + FixParameter("encoded", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + FixParameter("encoding", "QSsl.EncodingFormat", "QSsl.EncodingFormat"), + ], + static=True + ), + AnnotationFix( + "QtNetwork", + "QSslKey", + "toDer", + [ + FixParameter("passPhrase", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QSslKey", + "toPem", + [ + FixParameter("passPhrase", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QSslPreSharedKeyAuthenticator", + "setPreSharedKey", + [ + FixParameter("preSharedKey", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QSslPreSharedKeyAuthenticator", + "setIdentity", + [ + FixParameter("identity", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + AnnotationFix( + "QtNetwork", + "QSslSocket", + "setPrivateKey", + [ + FixParameter("fileName", "str", "str"), + FixParameter("algorithm", "QSsl.KeyAlgorithm", "QSsl.KeyAlgorithm"), + FixParameter("format", "QSsl.EncodingFormat", "QSsl.EncodingFormat"), + FixParameter("passPhrase", "typing.Union[QtCore.QByteArray, bytes, bytearray]", "QtCore.QByteArray"), + ], + ), + + #{ mimeData fixes + AnnotationFix( + "QtCore", + "QAbstractItemModel", + "mimeData", + [ + FixParameter("indexes", "typing.Iterable[QModelIndex]", "typing.Iterable[QModelIndex]"), + ], + return_value = '"QMimeData" | None', + ), + + AnnotationFix( + "QtCore", + "QAbstractProxyModel", + "mimeData", + [ + FixParameter("indexes", "typing.Iterable[QModelIndex]", "typing.Iterable[QModelIndex]"), + ], + return_value = '"QMimeData" | None', + ), + AnnotationFix( + "QtCore", + "QConcatenateTablesProxyModel", + "mimeData", + [ + FixParameter("indexes", "typing.Iterable[QModelIndex]", "typing.Iterable[QModelIndex]"), + ], + return_value = '"QMimeData" | None', + ), + AnnotationFix( + "QtCore", + "QSortFilterProxyModel", + "mimeData", + [ + FixParameter("indexes", "typing.Iterable[QModelIndex]", "typing.Iterable[QModelIndex]"), + ], + return_value = '"QMimeData" | None', + ), + + AnnotationFix( + "QtGui", + "QFileSystemModel", + "mimeData", + [ + FixParameter("indexes", "typing.Iterable[QtCore.QModelIndex]", "typing.Iterable[QtCore.QModelIndex]"), + ], + return_value = "QtCore.QMimeData | None", + ), + AnnotationFix( + "QtGui", + "QStandardItemModel", + "mimeData", + [ + FixParameter("indexes", "typing.Iterable[QtCore.QModelIndex]", "typing.Iterable[QtCore.QModelIndex]"), + ], + return_value = "QtCore.QMimeData | None", + ), + + AnnotationFix( + "QtWidgets", + "QListWidget", + "mimeData", + [ + FixParameter("items", "typing.Iterable[QListWidgetItem]", "typing.Iterable[QListWidgetItem]"), + ], + return_value = "QtCore.QMimeData | None", + ), + AnnotationFix( + "QtWidgets", + "QTableWidget", + "mimeData", + [ + FixParameter("items", "typing.Iterable[QTableWidgetItem]", "typing.Iterable[QTableWidgetItem]"), + ], + return_value = "QtCore.QMimeData | None", + ), + AnnotationFix( + "QtWidgets", + "QTreeWidget", + "mimeData", + [ + FixParameter("items", "typing.Iterable[QTreeWidgetItem]", "typing.Iterable[QTreeWidgetItem]"), + ], + return_value = "QtCore.QMimeData | None", + ), + #} ] diff --git a/fixes/mypy_visitor.py b/fixes/mypy_visitor.py index 69112a5..4af52e6 100644 --- a/fixes/mypy_visitor.py +++ b/fixes/mypy_visitor.py @@ -76,7 +76,7 @@ def _parse_mypy_result(self) -> None: continue match = self.RE_NAME_NOT_DEFINED.match(error_msg) - if match: + if match and match.group(1) != "QMenu": self._missing_imports.append(match.group(1)) elif error_msg == ( 'Overload does not consistently use the "@staticmethod" ' diff --git a/version.py b/version.py index 0e197ee..297f715 100644 --- a/version.py +++ b/version.py @@ -1,3 +1,3 @@ """Version numbers.""" -PYQT_VERSION = (6, 2, 3) +PYQT_VERSION = (6, 4, 0) STUB_VERSION = 1