Skip to content

Commit

Permalink
Fix annotation for QProgressDialog.setCancelButton
Browse files Browse the repository at this point in the history
´button´ can be a nullptr in the C++ Source which is a None value in PyQt.
  • Loading branch information
TilmanK authored Apr 7, 2020
1 parent bd9e93c commit 0e25609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyQt5-stubs/QtWidgets.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...


Expand Down

0 comments on commit 0e25609

Please sign in to comment.