Skip to content

Return bytes from fetch_data_from_url()#4653

Merged
svartkanin merged 1 commit into
archlinux:masterfrom
codefiles:fetch-url-return-bytes
Jul 23, 2026
Merged

Return bytes from fetch_data_from_url()#4653
svartkanin merged 1 commit into
archlinux:masterfrom
codefiles:fetch-url-return-bytes

Conversation

@codefiles

@codefiles codefiles commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

model_validate_json can handle bytes.

https://pydantic.dev/docs/validation/latest/api/pydantic/base_model/#pydantic.BaseModel.model_validate_json

Imported profiles were decoded from bytes to be encoded back into bytes before the write as well.

@codefiles
codefiles requested a review from Torxed as a code owner July 22, 2026 00:06
@svartkanin
svartkanin merged commit a68dcd6 into archlinux:master Jul 23, 2026
11 checks passed
@codefiles
codefiles deleted the fetch-url-return-bytes branch July 24, 2026 02:23
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