diff --git a/qtpy/QtWidgets.py b/qtpy/QtWidgets.py index 1b225421..f0d0a317 100644 --- a/qtpy/QtWidgets.py +++ b/qtpy/QtWidgets.py @@ -79,11 +79,7 @@ def __getattr__(name): *args, **kwargs, ) - QApplication.exec_ = lambda *args, **kwargs: possibly_static_exec( - QApplication, - *args, - **kwargs, - ) + QApplication.exec_ = QApplication.exec QDialog.exec_ = lambda self, *args, **kwargs: self.exec(*args, **kwargs) QMenu.exec_ = lambda *args, **kwargs: possibly_static_exec( QMenu, @@ -149,11 +145,7 @@ def __getattr__(name): ) # Map DeprecationWarning methods - QApplication.exec_ = lambda *args, **kwargs: possibly_static_exec( - QApplication, - *args, - **kwargs, - ) + QApplication.exec_ = QApplication.exec QDialog.exec_ = lambda self, *args, **kwargs: self.exec(*args, **kwargs) QMenu.exec_ = lambda *args, **kwargs: possibly_static_exec( QMenu,