playwright-python
playwright-python copied to clipboard
[Docs]: Page.route parameters out of date
Page(s)
Description
The doc comments for the Page.route handler are out of date, the handler takes either a Route or a Route and a Request as correctly shown by doc info in VS Code on hover:
handler: ((Route) -> Any) | ((Route, Request) -> Any),
The docs site shows Callable[Route, Request]:Promise[Any] | Any#
So it's missing the one argument version.