- Notifications
You must be signed in to change notification settings - Fork674
chore: make RESTObject._short_print_attrs always present#1410
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
chore: make RESTObject._short_print_attrs always present#1410
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Always create RESTObject._short_print_attrs with a default value ofNone.This way we don't need to use hasattr() and we will know the type ofthe attribute.
codecov-commenter commentedApr 24, 2021
Codecov Report
@@ Coverage Diff @@## master #1410 +/- ##======================================= Coverage 80.20% 80.20% ======================================= Files 73 73 Lines 4067 4067 ======================================= Hits 3262 3262 Misses 805 805
Flags with carried forward coverage won't be shown.Click here to find out more.
Continue to review full report at Codecov.
|
max-wittig commentedApr 25, 2021
Makes sense |
Always create RESTObject._short_print_attrs with a default value of
None.
This way we don't need to use hasattr() and we will know the type of
the attribute.