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

check items() exists before calling it a mapping #117

Merged
merged 2 commits into from
Jun 23, 2022

Conversation

samuelcolvin
Copy link
Member

PyO3/pyo3#2072

previously the

https://github.com/samuelcolvin/pydantic-core/blob/59ed7e071d6bc0b24f88b8e946081178885a1ee7/src/errors/kinds.rs#L64-L65

Error was raised for strings etc., now we correctly use DictType.

This also highlighted problems in how try_instance works which need to be fixed separately, see #109.

@codecov
Copy link

codecov bot commented Jun 23, 2022

Codecov Report

Merging #117 (5da73db) into main (59ed7e0) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #117      +/-   ##
==========================================
- Coverage   96.80%   96.67%   -0.14%     
==========================================
  Files          41       41              
  Lines        3666     3673       +7     
  Branches       28       28              
==========================================
+ Hits         3549     3551       +2     
- Misses        117      122       +5     
Impacted Files Coverage Δ
src/input/input_python.rs 93.63% <100.00%> (-2.14%) ⬇️
src/validators/model.rs 98.34% <100.00%> (ø)
src/input/input_json.rs 96.02% <0.00%> (+0.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59ed7e0...5da73db. Read the comment docs.

@samuelcolvin samuelcolvin merged commit ee7d0c4 into main Jun 23, 2022
@samuelcolvin samuelcolvin deleted the py-mapping-checks branch June 23, 2022 11:37
@samuelcolvin
Copy link
Member Author

This didn't quite work, we had to make more changes in #115.

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.

1 participant