Repository navigation
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.