10000 Fix #1766 - Ensure correct hooks types by WebReflection · Pull Request #1772 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

Fix #1766 - Ensure correct hooks types #1772

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

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Fix #1766 - Ensure correct hooks types #1772

merged 1 commit into from
Sep 29, 2023

Conversation

WebReflection
Copy link
Contributor

Description

This MR brings in the type-checked-collections module so that our hooks are now guarded to be of correct types.

This MR also adds the onWorkerReady hook which was missing.

Changes

  • used two different typed Set a function one and a string one
  • add logic for onWorkerReady as we were not exposing it before

Checklist

  • All tests pass locally
  • I have updated docs/changelog.md
  • I have created documentation for this(if applicable)

Copy link
Contributor
@antocuni antocuni left a comment

Choose a reason for hiding this comment

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

LGTM

@WebReflection WebReflection merged commit 5c4e400 into pyscript:main Sep 29, 2023
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.

2 participants
0