Skip to content
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

Merged
merged 4 commits into from
May 8, 2024

Conversation

mxschmitt
Copy link
Member

self.times = times

def __call__(self) -> Any:
arg_count = len(inspect.signature(self._handler).parameters)
Copy link
Member

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?

Copy link
Member Author

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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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():
Copy link
Member

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?

Copy link
Member Author

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

@mxschmitt mxschmitt merged commit e756233 into microsoft:main May 8, 2024
36 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants