diff options
| author | John L. Villalovos <debian.org@sodarock.com> | 2021-02-22 16:19:17 -0800 |
|---|---|---|
| committer | John L. Villalovos <debian.org@sodarock.com> | 2021-02-23 16:33:03 -0800 |
| commit | c83eaf4f395300471311a67be34d8d306c2b3861 (patch) | |
| tree | 8dd8efc8026d1a02f9389767d636fb217e68673f /gitlab/v4/objects/issues.py | |
| parent | a7ec67f69a3177a9d6610ca7af80bcf09035cbbd (diff) | |
| download | gitlab-c83eaf4f395300471311a67be34d8d306c2b3861.tar.gz | |
chore: remove usage of 'from ... import *'
In gitlab/v4/objects/*.py remove usage of:
* from gitlab.base import *
* from gitlab.mixins import *
Change them to:
* from gitlab.base import CLASS_NAME
* from gitlab.mixins import CLASS_NAME
Programmatically update code to explicitly import needed classes only.
After the change the output of:
$ flake8 gitlab/v4/objects/*py | grep 'REST\|Mixin'
Is empty. Before many messages about unable to determine if it was a
valid name.
Diffstat (limited to 'gitlab/v4/objects/issues.py')
| -rw-r--r-- | gitlab/v4/objects/issues.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gitlab/v4/objects/issues.py b/gitlab/v4/objects/issues.py index 2d7d570..dfd43f5 100644 --- a/gitlab/v4/objects/issues.py +++ b/gitlab/v4/objects/issues.py @@ -1,7 +1,20 @@ from gitlab import cli, types from gitlab import exceptions as exc -from gitlab.base import * # noqa -from gitlab.mixins import * # noqa +from gitlab.base import RESTManager, RESTObject +from gitlab.mixins import ( + CRUDMixin, + CreateMixin, + DeleteMixin, + ListMixin, + ObjectDeleteMixin, + ParticipantsMixin, + RetrieveMixin, + SaveMixin, + SubscribableMixin, + TimeTrackingMixin, + TodoMixin, + UserAgentDetailMixin, +) from .award_emojis import ProjectIssueAwardEmojiManager from .discussions import ProjectIssueDiscussionManager from .events import ( |
