Skip to content

Commit 47caa7c

Browse files
authored
fix: mark Playwright.stop async (#1862)
1 parent 525dbce commit 47caa7c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

playwright/_impl/_playwright.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _set_selectors(self, selectors: Selectors) -> None:
7070
self.selectors = selectors
7171
self.selectors._add_channel(selectors_owner)
7272

73-
def stop(self) -> None:
73+
async def stop(self) -> None:
7474
pass
7575

7676

playwright/async_api/_generated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14966,7 +14966,7 @@ def request(self) -> "APIRequest":
1496614966
def __getitem__(self, value: str) -> "BrowserType":
1496714967
return mapping.from_impl(self._impl_obj.__getitem__(value=value))
1496814968

14969-
def stop(self) -> None:
14969+
async def stop(self) -> None:
1497014970
"""Playwright.stop
1497114971

1497214972
Terminates this instance of Playwright in case it was created bypassing the Python context manager. This is useful
@@ -14987,7 +14987,7 @@ def stop(self) -> None:
1498714987
```
1498814988
"""
1498914989

14990-
return mapping.from_maybe_impl(self._impl_obj.stop())
14990+
return mapping.from_maybe_impl(await self._impl_obj.stop())
1499114991

1499214992

1499314993
mapping.register(PlaywrightImpl, Playwright)

playwright/sync_api/_generated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15075,7 +15075,7 @@ def stop(self) -> None:
1507515075
```
1507615076
"""
1507715077

15078-
return mapping.from_maybe_impl(self._impl_obj.stop())
15078+
return mapping.from_maybe_impl(self._sync(self._impl_obj.stop()))
1507915079

1508015080

1508115081
mapping.register(PlaywrightImpl, Playwright)

0 commit comments

Comments
 (0)