Skip to content

Commit 3d6c498

Browse files
committed
Fix and add typing in docs
1 parent 425fda0 commit 3d6c498

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/pluggable-browser-providers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class PatchrightBrowserProvider:
142142
async def launch_persistent_context(self, context_kwargs: dict):
143143
return await self.browser_type.launch_persistent_context(**context_kwargs)
144144

145-
async def close(self) ->:
145+
async def close(self) -> None:
146146
await self.stack.aclose()
147147
```
148148

@@ -169,7 +169,7 @@ class CamoufoxBrowserProvider:
169169
self.config = config
170170
self.stack = AsyncExitStack()
171171

172-
async def start(self):
172+
async def start(self) -> None:
173173
pass
174174

175175
async def launch_browser(self):
@@ -179,7 +179,7 @@ class CamoufoxBrowserProvider:
179179
AsyncCamoufox(**self.config.launch_options)
180180
)
181181

182-
async def launch_persistent_context(self, context_kwargs):
182+
async def launch_persistent_context(self, context_kwargs: dict):
183183
from camoufox.async_api import AsyncCamoufox
184184

185185
return await self.stack.enter_async_context(
@@ -190,7 +190,7 @@ class CamoufoxBrowserProvider:
190190
)
191191
)
192192

193-
async def close(self):
193+
async def close(self) -> None:
194194
await self.stack.aclose()
195195
```
196196

0 commit comments

Comments
 (0)