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

Update FastAPI, python-multipart, and mypy #295

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Update FastAPI, python-multipart, and mypy #295

merged 1 commit into from
Dec 19, 2024

Conversation

scy
Copy link
Collaborator

@scy scy commented Dec 19, 2024

Part of #269.

Originally wanted to update just python-multipart, but then it complained about FastAPI's old way of importing it; thus I've decided to update FastAPI as well. And mypy also made sense, to reduce some of the false positives.

FastAPI is now using examples=[…] instead of example=….

Got rid of some type: ignore markers by debugging the root cause.

Updated the log filter to return bools instead of 0 and 1.

The new type: ignore markers in progress.py are unfortunate, but that code is complicated and I don't have the time to thoroughly fix it, and especially make sure that I didn't break anything, right now.

Originally wanted to update just python-multipart, but then it
complained about FastAPI's old way of importing it; thus I've decided to
update FastAPI as well. And mypy also made sense, to reduce some of the
false positives.

FastAPI is now using `examples=[…]` instead of `example=…`.

Got rid of some `type: ignore` markers by debugging the root cause.

Updated the log filter to return bools instead of 0 and 1.

The new `type: ignore` markers in `progress.py` are unfortunate, but
that code is complicated and I don't have the time to thoroughly fix it,
and especially make sure that I didn't break anything, right now.

Signed-off-by: Tim Weber <scy@scy.name>
@scy scy added type:bug Something isn't working area:backend Related to the server component flag:security Impacts the overall security of the system prio:A Blocker, needs to be addressed labels Dec 19, 2024
@scy scy added this to the 4.0: public release milestone Dec 19, 2024
@scy scy self-assigned this Dec 19, 2024
@scy scy merged commit ef58acf into main Dec 19, 2024
8 checks passed
@scy scy deleted the update-backend-deps branch December 19, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:backend Related to the server component flag:security Impacts the overall security of the system prio:A Blocker, needs to be addressed type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant