From c83eaf4f395300471311a67be34d8d306c2b3861 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Mon, 22 Feb 2021 16:19:17 -0800 Subject: 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. --- gitlab/v4/objects/discussions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitlab/v4/objects/discussions.py') diff --git a/gitlab/v4/objects/discussions.py b/gitlab/v4/objects/discussions.py index e9a12b3..b65c27b 100644 --- a/gitlab/v4/objects/discussions.py +++ b/gitlab/v4/objects/discussions.py @@ -1,5 +1,5 @@ -from gitlab.base import * # noqa -from gitlab.mixins import * # noqa +from gitlab.base import RESTManager, RESTObject +from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin from .notes import ( ProjectCommitDiscussionNoteManager, ProjectIssueDiscussionNoteManager, -- cgit v1.2.1