Skip to content

Commit

Permalink
Make QWebEngineView.setPage() parameter optional (#212)
Browse files Browse the repository at this point in the history
This change allows the page passed to setPage() to be None, which is a
valid technique and often needed.
  • Loading branch information
bluebird75 authored Jul 23, 2023
2 parents bd1c7e0 + a2e2067 commit 5047549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyQt5-stubs/QtWebEngineWidgets.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1037,5 +1037,5 @@ class QWebEngineView(QtWidgets.QWidget):
def load(self, url: QtCore.QUrl) -> None: ...
@typing.overload
def load(self, request: QtWebEngineCore.QWebEngineHttpRequest) -> None: ...
def setPage(self, page: QWebEnginePage) -> None: ...
def setPage(self, page: typing.Optional[QWebEnginePage]) -> None: ...
def page(self) -> QWebEnginePage: ...

0 comments on commit 5047549

Please sign in to comment.