- Notifications
You must be signed in to change notification settings - Fork675
chore: add type-hints to remaining gitlab/v4/objects/*.py files#1695
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
57cd034 tobb1a454Comparecodecov-commenter commentedNov 17, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## main #1695 +/- ##==========================================- Coverage 91.53% 91.46% -0.08%========================================== Files 75 75 Lines 4574 4616 +42 ==========================================+ Hits 4187 4222 +35- Misses 387 394 +7
Flags with carried forward coverage won't be shown.Click here to find out more.
|
Uh oh!
There was an error while loading.Please reload this page.
bb1a454 tofbf2bfeCompare1ecb0a6 toccd93e3Comparecf0049b tod18987fCompareWhen attempting to add type-hints to the the 'manager' attribute intoa RESTObject derived class it would break things.This was because our auto-manager creation code would automaticallyadd the specified annotated manager to the 'manager' attribute. Thisbreaks things.Now check in our auto-manager creation if our attribute is called'manager'. If so we ignore it.
d18987f to0c22bd9CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Fixed a bug in the auto-manager creation code if we added a type-hint for the
managerattribute.Add type-hints for the remainder of the code base.
Finally! 😊