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

Add test for MutableMapping methods on object_maps and fix bug #3297

Merged
merged 13 commits into from
Nov 30, 2022

Conversation

hoodmane
Copy link
Member

@hoodmane hoodmane commented Nov 28, 2022

This adds tests of all the MutableMapping methods for objects returned by as_object_map. They all worked but I was accidentally adding only the non mutating methods. I also added JsMap to pyodide.ffi and fixed it so that isinstance works correctly and mypy agrees with the usage.

Checklists

Copy link
Member

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

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

Thanks, @hoodmane!

src/py/_pyodide/_core_docs.py Outdated Show resolved Hide resolved
@hoodmane hoodmane merged commit c2ac865 into pyodide:main Nov 30, 2022
@hoodmane hoodmane deleted the as-obj-map-mapping-methods branch November 30, 2022 19:07
dcherian added a commit to dcherian/pyodide that referenced this pull request Dec 13, 2022
* main: (45 commits)
  Remove pre-built docker image support (pyodide#3342)
  Remove "Python initialization complete" log line (pyodide#3247)
  Use a more robust method to improve our ModuleNotFound errors (pyodide#3263)
  Distinguish between sync and async JavaScript iterators when possible (pyodide#3339)
  [pre-commit.ci] pre-commit autoupdate (pyodide#3345)
  NFC Place js_flags in separate dict (pyodide#3338)
  NFC Use initialization function to load _pyodide_core (pyodide#3333)
  Make fs timestamps have millisecond resolution rather than second resolution (pyodide#3313)
  Add gensim package pyodide#2545 (pyodide#3326)
  [pre-commit.ci] pre-commit autoupdate (pyodide#3325)
  Update scikit-learn to 1.1.3 (pyodide#3324)
  Fix markdown in doc (pyodide#3323)
  Emscripten 3.1.27 (pyodide#3314)
  [pre-commit.ci] pre-commit autoupdate (pyodide#3254)
  Add a typeshed for the js module (pyodide#3298)
  Unpin host Python patch versions in GHA (pyodide#3309)
  Package pyinstrument (pyodide#3258)
  Add athrow and aclose to JsProxy of an AsyncGenerator (pyodide#3299)
  Add test for MutableMapping methods on object_maps and fix bug (pyodide#3297)
  Bump minimatch from 3.0.4 to 3.1.2 in /src/js (pyodide#3306)
  ...
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