Skip to content

Commit 5c8501a

Browse files
committed
ignore some more and test the result
1 parent 71c8daf commit 5c8501a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

PyQt5-stubs/QtWidgets.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6479,7 +6479,7 @@ class QMessageBox(QDialog):
64796479

64806480
class StandardButton(int):
64816481
@typing.overload # type: ignore[override]
6482-
def __or__(self, other: typing.Union['QMessageBox.StandardButton', 'QMessageBox.StandardButtons']) -> 'QMessageBox.StandardButtons': ...
6482+
def __or__(self, other: typing.Union['QMessageBox.StandardButton', 'QMessageBox.StandardButtons']) -> 'QMessageBox.StandardButtons': ... # type: ignore[misc]
64836483
@typing.overload
64846484
def __or__(self, other: int) -> int: ...
64856485

tests/qmessagebox.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
"Are you sure?",
77
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
88
)
9+
10+
a: QtWidgets.QMessageBox.StandardButtons = QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Ok
11+
b: int = QtWidgets.QMessageBox.Ok | 0

0 commit comments

Comments
 (0)