-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(roll): roll Playwright to v1.44.0 #2433
Conversation
self.times = times | ||
|
||
def __call__(self) -> Any: | ||
arg_count = len(inspect.signature(self._handler).parameters) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not require the param?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We treat it the same as for route() handling. In route() its either route or route + request.
if self._dispatcher_fiber: | ||
handler_finished_future = self._loop.create_future() | ||
|
||
def _handler() -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def _handler() -> None: | |
def handler() -> None: |
), | ||
is_internal=True, | ||
) | ||
except Error: | ||
pass | ||
|
||
async def remove_locator_handler(self, locator: "Locator") -> None: | ||
for uid, data in self._locator_handlers.copy().items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does python not support deletion during iteration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> for uid, data in self._locator_handlers.items():
E RuntimeError: dictionary changed size during iteration
#2385