-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove fastapi-utls #17202
Remove fastapi-utls #17202
Conversation
@@ -2,16 +2,16 @@ aiohttp==3.9.1 ; python_version >= "3.8" and python_version < "3.12" | |||
aiosignal==1.3.1 ; python_version >= "3.8" and python_version < "3.12" | |||
alabaster==0.7.13 ; python_version >= "3.8" and python_version < "3.12" | |||
amqp==5.2.0 ; python_version >= "3.8" and python_version < "3.12" | |||
anyio==4.1.0 ; python_version >= "3.8" and python_version < "3.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd only remove fastapi-utils without all the unrelated dependencies updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely! I think I ran the update script, but I don't have to. I'll fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
edf6542
to
1220475
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is heading the right direction, as discussed extensively on the backend channel.
I've provided a summary of my point in the accompanying issue. |
Superseded by #17205 |
Ref #17185, #12541
This removes the dependency on fastapi-utils that is a blocker for SQLAlchemy 2.0. See #17185 for rationale. There has also been a discussion on the backend channel on Dec 15 (ref)
To simplify the review of this PR (re: discussion on the channel), I've split it into the following commits:
self
parameter from the method definition (thus making the methods static). There is almost no indentation change here, which, I hope, will simplify reviewing.A few exceptions:
cbv
definition and update the dependencies.item_tags
still has a class. However, here we have 3 classes dynamically generated, and keeping the endpoint-handling methods as static methods works just as fine.So, overall, the process went as follows:
cbv
self
parameter from each method.self.
)self
parameter, and pass the dependency to them.grep cbv
is not empty.I hope this helps.
License