Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta committed Sep 18, 2024
1 parent f1fa327 commit b762584
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scrapy_playwright/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class PageMethod:
Represents a method to be called (and awaited if necessary) on a
Playwright page, such as "click", "screenshot", "evaluate", etc.
If a callable is received, it will be called with the page as its only argument.
If a callable is received, it will be called with the page as its first argument.
Any additional arguments are passed positionally to the callable after the page.
"""

def __init__(self, method: Union[str, Callable[[Page], Any]], *args, **kwargs) -> None:
Expand Down

0 comments on commit b762584

Please sign in to comment.