♻️ Move duplicated code portion to a static method in the APIKeyBase super class#3142
Merged
tiangolo merged 8 commits intofastapi:masterfrom Jan 30, 2025
Merged
Conversation
Contributor
cikay
suggested changes
Feb 3, 2022
Codecov Report
@@ Coverage Diff @@
## master #3142 +/- ##
===========================================
Coverage 100.00% 100.00%
===========================================
Files 243 531 +288
Lines 7419 13623 +6204
===========================================
+ Hits 7419 13623 +6204
Continue to review full report at Codecov.
|
Contributor
yezz123
approved these changes
May 13, 2022
BilalAlpaslan
approved these changes
May 15, 2022
Member
|
@patrick91 : could you have another look at this PR, as it's not succeeding the linting step? 🙏 [Update]: I've gone in and fixed it 😉 |
APIKeyBase super class
svlandeg
approved these changes
Sep 3, 2024
tiangolo
approved these changes
Jan 30, 2025
Member
tiangolo
left a comment
There was a problem hiding this comment.
Nice, thank you! 🚀
And thanks for the reviews and help! ☕
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The code block below was used 3 times:
I have moved this portion to the
staticmethodinto the super class as it will be shared by inheritance to all 3 subclasses.