diff --git a/PyQt5-stubs/QtWidgets.pyi b/PyQt5-stubs/QtWidgets.pyi index 0c683ba1..0ec7a4bc 100644 --- a/PyQt5-stubs/QtWidgets.pyi +++ b/PyQt5-stubs/QtWidgets.pyi @@ -6820,7 +6820,7 @@ class QProgressDialog(QDialog): def minimum(self) -> int: ... def wasCanceled(self) -> bool: ... def setBar(self, bar: QProgressBar) -> None: ... - def setCancelButton(self, button: QPushButton) -> None: ... + def setCancelButton(self, button: typing.Optional[QPushButton]) -> None: ... def setLabel(self, label: QLabel) -> None: ...