Simplify code syntax in several places#1753
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1753 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 235 235
Lines 6987 6985 -2
=========================================
- Hits 6987 6985 -2
Continue to review full report at Codecov.
|
|
في أربعاء، 22 يوليو، 2020 في 12:05 ص، كتب Angelo Cutaia <
notifications@github.com>:
… ***@***.**** approved this pull request.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1753 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQIQIRI6FDMMKZR25EWXMZLR4XYILANCNFSM4PDNA2UA>
pjjjiii.
|
Use base classes __init__ method where it possible.
ee8242d to
d691cc6
Compare
|
Thanks for your effort @uriyyo ! 🚀 And thanks for the discussion everyone. ☕ Nice trick with the I reverted a couple of the changes, some lists, because I find it more explicit with an explicit list than with a list comprehension when the logic starts to have some extra complexity. For some of the classes, I had intentionally not used And for the security classes, they don't really have any internal logic, they only set attributes, so I found it more explicit to duplicate those little bits that still needed some customization for each specific class in several cases than to pass everything to Thanks for your contribution! 🚀 🍰 |
Hi guys,
I enjoy to work with
FastAPI, it's really great 👍What was done in scope of this PR:
__init__method of a base class where it possible.dict.setdefaultmethod withcollections.defaultdict.