diff --git a/playwright/async_api/_generated.py b/playwright/async_api/_generated.py index ee968c000..3730d8127 100644 --- a/playwright/async_api/_generated.py +++ b/playwright/async_api/_generated.py @@ -1148,6 +1148,7 @@ def is_closed(self) -> bool: class WebSocketRoute(AsyncBase): + @property def url(self) -> str: """WebSocketRoute.url diff --git a/playwright/sync_api/_generated.py b/playwright/sync_api/_generated.py index 63c093e57..773c763dd 100644 --- a/playwright/sync_api/_generated.py +++ b/playwright/sync_api/_generated.py @@ -1144,6 +1144,7 @@ def is_closed(self) -> bool: class WebSocketRoute(SyncBase): + @property def url(self) -> str: """WebSocketRoute.url diff --git a/scripts/expected_api_mismatch.txt b/scripts/expected_api_mismatch.txt index cc4c1c85f..c6b3c7a95 100644 --- a/scripts/expected_api_mismatch.txt +++ b/scripts/expected_api_mismatch.txt @@ -18,5 +18,5 @@ Parameter type mismatch in Page.add_locator_handler(handler=): documented as Cal Parameter type mismatch in BrowserContext.route_web_socket(handler=): documented as Callable[[WebSocketRoute], Union[Any, Any]], code has Callable[[WebSocketRoute], Any] Parameter type mismatch in Page.route_web_socket(handler=): documented as Callable[[WebSocketRoute], Union[Any, Any]], code has Callable[[WebSocketRoute], Any] -Parameter type mismatch in WebSocketRoute.on_close(handler=): documented as Callable[[Union[number, undefined]], Union[Any, Any]], code has Callable[[Union[int, None], Union[str, None]], Any] +Parameter type mismatch in WebSocketRoute.on_close(handler=): documented as Callable[[Union[int, undefined]], Union[Any, Any]], code has Callable[[Union[int, None], Union[str, None]], Any] Parameter type mismatch in WebSocketRoute.on_message(handler=): documented as Callable[[str], Union[Any, Any]], code has Callable[[Union[bytes, str]], Any] diff --git a/setup.py b/setup.py index c61bc053e..8a67ab2c8 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ InWheel = None from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand -driver_version = "1.48.0-beta-1728034490000" +driver_version = "1.48.1" def extractall(zip: zipfile.ZipFile, path: str) -> None: