Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix path encoding#978

Merged
tiangolo merged 4 commits intofastapi:masterfrom
patrickmckenna:fix-path-encoding
Feb 16, 2020
Merged

Fix path encoding#978
tiangolo merged 4 commits intofastapi:masterfrom
patrickmckenna:fix-path-encoding

Conversation

@patrickmckenna
Copy link
Contributor

@patrickmckennapatrickmckenna commentedFeb 13, 2020
edited by tiangolo
Loading

This PR adds a case tojsonable_encoder so thatpathlib.PurePath objects are serializable. Related to#563.

I know there was some discussion in that thread about how to handle the OS-dependentstr representations ofpathlib.Path objects. Perhaps I'm misunderstanding something, but shouldn't users who need OS-agnostic treatment of paths be usingpathlib.Pure*Path types to getstr representations in their native form, no matter where their code is running?

/cc@devtud

@codecov
Copy link

codecovbot commentedFeb 13, 2020
edited
Loading

Codecov Report

Merging#978 intomaster willnot change coverage.
The diff coverage is100%.

Impacted file tree graph

@@          Coverage Diff          @@##           master   #978   +/-   ##=====================================  Coverage     100%   100%           =====================================  Files         294    294             Lines        7717   7732   +15     =====================================+ Hits         7717   7732   +15
Impacted FilesCoverage Δ
fastapi/encoders.py100% <100%> (ø)⬆️
tests/test_jsonable_encoder.py100% <100%> (ø)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update66954c7...379921a. Read thecomment docs.

@tiangolotiangolo merged commit3c18038 intofastapi:masterFeb 16, 2020
@tiangolo
Copy link
Member

Awesome! Thank you for your contribution! 🚀 🍰

patrickmckenna reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@patrickmckenna@tiangolo

Comments


[8]ページ先頭

©2009-2026 Movatter.jp