Skip to content

Commit 0861d3a

Browse files
committed
Update to PyQt 5.14.1
1 parent 1d4363b commit 0861d3a

File tree

15 files changed

+75
-62
lines changed

15 files changed

+75
-62
lines changed

PyQt5-stubs/QtCore.pyi

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtCore module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#
@@ -1650,6 +1650,10 @@ class QObject(sip.wrapper):
16501650

16511651
def __init__(self, parent: typing.Optional['QObject'] = ...) -> None: ...
16521652

1653+
@typing.overload
1654+
@staticmethod
1655+
def disconnect(a0: 'QMetaObject.Connection') -> bool: ...
1656+
@typing.overload # type: ignore # fixes issue #1
16531657
def disconnect(self) -> None: ...
16541658
def isSignalConnected(self, signal: 'QMetaMethod') -> bool: ...
16551659
def senderSignalIndex(self) -> int: ...
@@ -4084,17 +4088,17 @@ class QJsonDocument(sip.simplewrapper):
40844088
@typing.overload
40854089
def __init__(self) -> None: ...
40864090
@typing.overload
4087-
def __init__(self, object: typing.Dict[str, 'QJsonValue']) -> None: ...
4091+
def __init__(self, object: typing.Dict[str, typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], bool, int, float, str]]) -> None: ...
40884092
@typing.overload
4089-
def __init__(self, array: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> None: ...
4093+
def __init__(self, array: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> None: ... # Keep primitive types
40904094
@typing.overload
40914095
def __init__(self, other: 'QJsonDocument') -> None: ...
40924096

40934097
def isNull(self) -> bool: ...
4094-
def setArray(self, array: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> None: ...
4095-
def setObject(self, object: typing.Dict[str, 'QJsonValue']) -> None: ...
4098+
def setArray(self, array: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> None: ... # Keep primitive types
4099+
def setObject(self, object: typing.Dict[str, typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], bool, int, float, str]]) -> None: ...
40964100
def array(self) -> typing.List['QJsonValue']: ...
4097-
def object(self) -> typing.Dict[str, 'QJsonValue']: ...
4101+
def object(self) -> typing.Dict[str, typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], bool, int, float, str]]: ...
40984102
def isObject(self) -> bool: ...
40994103
def isArray(self) -> bool: ...
41004104
def isEmpty(self) -> bool: ...
@@ -4129,20 +4133,20 @@ class QJsonValue(sip.simplewrapper):
41294133
@typing.overload
41304134
def __init__(self, type: 'QJsonValue.Type' = ...) -> None: ...
41314135
@typing.overload
4132-
def __init__(self, other: typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]) -> None: ...
4136+
def __init__(self, other: typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], typing.Dict[str, 'QJsonValue'], bool, int, float, str]) -> None: ... # Still have iterables
41334137

41344138
@typing.overload
41354139
def toString(self) -> str: ...
41364140
@typing.overload
41374141
def toString(self, defaultValue: str) -> str: ...
41384142
@typing.overload
4139-
def toObject(self) -> typing.Dict[str, 'QJsonValue']: ...
4143+
def toObject(self) -> typing.Dict[str, typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], bool, int, float, str]]: ...
41404144
@typing.overload
4141-
def toObject(self, defaultValue: typing.Dict[str, 'QJsonValue']) -> typing.Dict[str, 'QJsonValue']: ...
4145+
def toObject(self, defaultValue: typing.Dict[str, typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], bool, int, float, str]]) -> typing.Dict[str, typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], bool, int, float, str]]: ...
41424146
@typing.overload
41434147
def toArray(self) -> typing.List['QJsonValue']: ...
41444148
@typing.overload
4145-
def toArray(self, defaultValue: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> typing.List['QJsonValue']: ...
4149+
def toArray(self, defaultValue: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> typing.List['QJsonValue']: ... # Keep primitive types
41464150
def toDouble(self, defaultValue: float = ...) -> float: ...
41474151
def toInt(self, defaultValue: int = ...) -> int: ...
41484152
def toBool(self, defaultValue: bool = ...) -> bool: ...

PyQt5-stubs/QtDBus.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtDBus module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#

PyQt5-stubs/QtGui.pyi

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtGui module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#
@@ -219,13 +219,13 @@ class QPixmap(QPaintDevice):
219219
def scaled(self, width: int, height: int, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ...
220220
@typing.overload
221221
def scaled(self, size: QtCore.QSize, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ...
222-
def createMaskFromColor(self, maskColor: typing.Union['QColor', QtCore.Qt.GlobalColor, 'QGradient'], mode: QtCore.Qt.MaskMode = ...) -> 'QBitmap': ...
222+
def createMaskFromColor(self, maskColor: typing.Union['QColor', QtCore.Qt.GlobalColor], mode: QtCore.Qt.MaskMode = ...) -> 'QBitmap': ...
223223
def createHeuristicMask(self, clipTight: bool = ...) -> 'QBitmap': ...
224224
def hasAlphaChannel(self) -> bool: ...
225225
def hasAlpha(self) -> bool: ...
226226
def setMask(self, a0: 'QBitmap') -> None: ...
227227
def mask(self) -> 'QBitmap': ...
228-
def fill(self, color: typing.Union['QColor', QtCore.Qt.GlobalColor, 'QGradient'] = ...) -> None: ...
228+
def fill(self, color: typing.Union['QColor', QtCore.Qt.GlobalColor] = ...) -> None: ...
229229
@staticmethod
230230
def defaultDepth() -> int: ...
231231
def depth(self) -> int: ...
@@ -291,7 +291,7 @@ class QColor(sip.simplewrapper):
291291
@typing.overload
292292
def __init__(self, aname: str) -> None: ...
293293
@typing.overload
294-
def __init__(self, acolor: typing.Union['QColor', QtCore.Qt.GlobalColor, 'QGradient']) -> None: ...
294+
def __init__(self, acolor: typing.Union['QColor', QtCore.Qt.GlobalColor]) -> None: ...
295295

296296
@typing.overload
297297
@staticmethod
@@ -412,9 +412,9 @@ class QBrush(sip.simplewrapper):
412412
@typing.overload
413413
def __init__(self, bs: QtCore.Qt.BrushStyle) -> None: ...
414414
@typing.overload
415-
def __init__(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, 'QGradient'], style: QtCore.Qt.BrushStyle = ...) -> None: ...
415+
def __init__(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor], style: QtCore.Qt.BrushStyle = ...) -> None: ...
416416
@typing.overload
417-
def __init__(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, 'QGradient'], pixmap: QPixmap) -> None: ...
417+
def __init__(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor], pixmap: QPixmap) -> None: ...
418418
@typing.overload
419419
def __init__(self, pixmap: QPixmap) -> None: ...
420420
@typing.overload
@@ -605,8 +605,18 @@ class QCursor(sip.simplewrapper):
605605
@typing.overload
606606
@staticmethod
607607
def setPos(p: QtCore.QPoint) -> None: ...
608+
@typing.overload
609+
@staticmethod
610+
def setPos(screen: 'QScreen', x: int, y: int) -> None: ...
611+
@typing.overload
612+
@staticmethod
613+
def setPos(screen: 'QScreen', p: QtCore.QPoint) -> None: ...
614+
@typing.overload
608615
@staticmethod
609616
def pos() -> QtCore.QPoint: ...
617+
@typing.overload
618+
@staticmethod
619+
def pos(screen: 'QScreen') -> QtCore.QPoint: ...
610620
def hotSpot(self) -> QtCore.QPoint: ...
611621
def pixmap(self) -> QPixmap: ...
612622
def mask(self) -> QBitmap: ...
@@ -6108,7 +6118,7 @@ class QRgba64(sip.simplewrapper):
61086118
@typing.overload
61096119
def __init__(self, a0: 'QRgba64') -> None: ...
61106120

6111-
def __long__(self) -> int: ...
6121+
def __int__(self) -> int: ...
61126122
def unpremultiplied(self) -> 'QRgba64': ...
61136123
def premultiplied(self) -> 'QRgba64': ...
61146124
def toRgb16(self) -> int: ...

PyQt5-stubs/QtNetwork.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtNetwork module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#

PyQt5-stubs/QtOpenGL.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtOpenGL module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#

PyQt5-stubs/QtPrintSupport.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtPrintSupport module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#

PyQt5-stubs/QtSql.pyi

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtSql module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#
@@ -553,8 +553,8 @@ class QSqlRelationalTableModel(QSqlTableModel):
553553
def setTable(self, tableName: str) -> None: ...
554554
def select(self) -> bool: ...
555555
def clear(self) -> None: ...
556-
def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
557-
def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
556+
def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ... # Rename first argument from item to index
557+
def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... # Rename first argument from item to index
558558

559559

560560
class QSqlResult(sip.wrapper):
@@ -655,4 +655,3 @@ class QSql(sip.simplewrapper):
655655
def __bool__(self) -> int: ...
656656
def __invert__(self) -> 'QSql.ParamType': ...
657657
def __int__(self) -> int: ...
658-

PyQt5-stubs/QtTest.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtTest module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#

PyQt5-stubs/QtWidgets.pyi

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtWidgets module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#
@@ -1542,7 +1542,7 @@ class QColorDialog(QDialog):
15421542
@typing.overload
15431543
def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ...
15441544
@typing.overload
1545-
def __init__(self, initial: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient], parent: typing.Optional[QWidget] = ...) -> None: ...
1545+
def __init__(self, initial: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor], parent: typing.Optional[QWidget] = ...) -> None: ...
15461546

15471547
def setVisible(self, visible: bool) -> None: ...
15481548
@typing.overload
@@ -1555,23 +1555,23 @@ class QColorDialog(QDialog):
15551555
def setOption(self, option: 'QColorDialog.ColorDialogOption', on: bool = ...) -> None: ...
15561556
def selectedColor(self) -> QtGui.QColor: ...
15571557
def currentColor(self) -> QtGui.QColor: ...
1558-
def setCurrentColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ...
1558+
def setCurrentColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
15591559
def done(self, result: int) -> None: ...
15601560
def changeEvent(self, e: QtCore.QEvent) -> None: ...
1561-
def currentColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ...
1562-
def colorSelected(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ...
1561+
def currentColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
1562+
def colorSelected(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
15631563
@staticmethod
1564-
def setStandardColor(index: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ...
1564+
def setStandardColor(index: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
15651565
@staticmethod
15661566
def standardColor(index: int) -> QtGui.QColor: ...
15671567
@staticmethod
1568-
def setCustomColor(index: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ...
1568+
def setCustomColor(index: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
15691569
@staticmethod
15701570
def customColor(index: int) -> QtGui.QColor: ...
15711571
@staticmethod
15721572
def customCount() -> int: ...
15731573
@staticmethod
1574-
def getColor(initial: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ..., parent: typing.Optional[QWidget] = ..., title: str = ..., options: typing.Union['QColorDialog.ColorDialogOptions', 'QColorDialog.ColorDialogOption'] = ...) -> QtGui.QColor: ...
1574+
def getColor(initial: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor] = ..., parent: typing.Optional[QWidget] = ..., title: str = ..., options: typing.Union['QColorDialog.ColorDialogOptions', 'QColorDialog.ColorDialogOption'] = ...) -> QtGui.QColor: ...
15751575

15761576

15771577
class QColumnView(QAbstractItemView):
@@ -3012,11 +3012,11 @@ class QFileDialog(QDialog):
30123012
def supportedSchemes(self) -> typing.List[str]: ...
30133013
def setSupportedSchemes(self, schemes: typing.Iterable[str]) -> None: ...
30143014
@staticmethod
3015-
def getSaveFileUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[QtCore.QUrl, str]: ...
3015+
def getSaveFileUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[QtCore.QUrl, str]: ...
30163016
@staticmethod
3017-
def getOpenFileUrls(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[typing.List[QtCore.QUrl], str]: ...
3017+
def getOpenFileUrls(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[typing.List[QtCore.QUrl], str]: ...
30183018
@staticmethod
3019-
def getOpenFileUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[QtCore.QUrl, str]: ...
3019+
def getOpenFileUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[QtCore.QUrl, str]: ...
30203020
def directoryUrlEntered(self, directory: QtCore.QUrl) -> None: ...
30213021
def currentUrlChanged(self, url: QtCore.QUrl) -> None: ...
30223022
def urlsSelected(self, urls: typing.Iterable[QtCore.QUrl]) -> None: ...
@@ -3182,7 +3182,7 @@ class QFileSystemModel(QtCore.QAbstractItemModel):
31823182
def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ...
31833183
def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlags: ...
31843184
def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ...
3185-
def setData(self, idx: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
3185+
def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
31863186
def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
31873187
def myComputer(self, role: int = ...) -> typing.Any: ...
31883188
def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
@@ -3747,9 +3747,9 @@ class QGraphicsColorizeEffect(QGraphicsEffect):
37473747

37483748
def draw(self, painter: QtGui.QPainter) -> None: ...
37493749
def strengthChanged(self, strength: float) -> None: ...
3750-
def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ...
3750+
def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
37513751
def setStrength(self, strength: float) -> None: ...
3752-
def setColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ...
3752+
def setColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
37533753
def strength(self) -> float: ...
37543754
def color(self) -> QtGui.QColor: ...
37553755

@@ -3792,10 +3792,10 @@ class QGraphicsDropShadowEffect(QGraphicsEffect):
37923792
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
37933793

37943794
def draw(self, painter: QtGui.QPainter) -> None: ...
3795-
def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ...
3795+
def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
37963796
def blurRadiusChanged(self, blurRadius: float) -> None: ...
37973797
def offsetChanged(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ...
3798-
def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ...
3798+
def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
37993799
def setBlurRadius(self, blurRadius: float) -> None: ...
38003800
def setYOffset(self, dy: float) -> None: ...
38013801
def setXOffset(self, dx: float) -> None: ...

PyQt5-stubs/QtXml.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The PEP 484 type hints stub file for the QtXml module.
22
#
3-
# Generated by SIP 4.19.18
3+
# Generated by SIP 5.1.1
44
#
5-
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
5+
# Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
66
#
77
# This file is part of PyQt5.
88
#

0 commit comments

Comments
 (0)