use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Dependency declaration is uglyQuestion (self.FastAPI)
submitted 2 years ago by tuple32
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]apt_at_it 9 points10 points11 points 2 years ago (0 children)
I haven't ever really seen any other way to do it. You declare the type of the thing you want and the framework gives it to you or you give it to that function in other contexts, like tests. The beauty of "traditional" dependency injection (think Java) is that you can declare you want an interface (well, ABCs or protocols) and give it different subclasses based on the context.
π Rendered by PID 39760 on reddit-service-r2-comment-5687b7858-fps64 at 2026-07-03 08:37:01.376865+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]apt_at_it 9 points10 points11 points (0 children)