diff options
author | John L. Villalovos <john@sodarock.com> | 2021-03-01 13:41:29 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-04-24 10:12:20 -0700 |
commit | 565d5488b779de19a720d7a904c6fc14c394a4b9 (patch) | |
tree | a5db757a06c9387e8de19d70afa868a0409a25a0 /gitlab/v4/objects/deployments.py | |
parent | cfc42d246a4fc9a9afa9a676efcac0774e909aab (diff) | |
download | gitlab-565d5488b779de19a720d7a904c6fc14c394a4b9.tar.gz |
fix: add a check to ensure the MRO is correct
Add a check to ensure the MRO (Method Resolution Order) is correct for classes in
gitlab.v4.objects when doing type-checking.
An example of an incorrect definition:
class ProjectPipeline(RESTObject, RefreshMixin, ObjectDeleteMixin):
^^^^^^^^^^ This should be at the end.
Correct way would be:
class ProjectPipeline(RefreshMixin, ObjectDeleteMixin, RESTObject):
Correctly at the end ^^^^^^^^^^
Also fix classes which have the issue.
Diffstat (limited to 'gitlab/v4/objects/deployments.py')
-rw-r--r-- | gitlab/v4/objects/deployments.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects/deployments.py b/gitlab/v4/objects/deployments.py index 395bc24..64d779f 100644 --- a/gitlab/v4/objects/deployments.py +++ b/gitlab/v4/objects/deployments.py @@ -8,7 +8,7 @@ __all__ = [ ] -class ProjectDeployment(RESTObject, SaveMixin): +class ProjectDeployment(SaveMixin, RESTObject): pass |