diff options
author | John L. Villalovos <john@sodarock.com> | 2022-01-03 22:11:46 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-01-03 22:11:46 -0800 |
commit | 6b3e7c0f5f77baed94cc807b7087feaaf0fac121 (patch) | |
tree | a9d8d3b3f04b072e6707f775861e1835e94afc8d /gitlab/v4/objects/groups.py | |
parent | 789122d5df9b4f39331e23c7fdb6e9021e7836cf (diff) | |
download | gitlab-jlvillal/relative_imports.tar.gz |
chore: convert to using relative importsjlvillal/relative_imports
Switch to using relative imports to ensure that we are importing from
within our library.
Also use the form:
from foo import bar as bar
When we want to signify that we want the import to be re-exported.
https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport
Diffstat (limited to 'gitlab/v4/objects/groups.py')
-rw-r--r-- | gitlab/v4/objects/groups.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gitlab/v4/objects/groups.py b/gitlab/v4/objects/groups.py index 7479cfb..8492eca 100644 --- a/gitlab/v4/objects/groups.py +++ b/gitlab/v4/objects/groups.py @@ -2,13 +2,11 @@ from typing import Any, BinaryIO, cast, Dict, List, Optional, Type, TYPE_CHECKIN import requests -import gitlab -from gitlab import cli -from gitlab import exceptions as exc -from gitlab import types -from gitlab.base import RequiredOptional, RESTManager, RESTObject -from gitlab.mixins import CRUDMixin, ListMixin, ObjectDeleteMixin, SaveMixin - +from ... import cli, client +from ... import exceptions as exc +from ... import types +from ...base import RequiredOptional, RESTManager, RESTObject +from ...mixins import CRUDMixin, ListMixin, ObjectDeleteMixin, SaveMixin from .access_requests import GroupAccessRequestManager # noqa: F401 from .audit_events import GroupAuditEventManager # noqa: F401 from .badges import GroupBadgeManager # noqa: F401 @@ -97,7 +95,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject): @exc.on_http_error(exc.GitlabSearchError) def search( self, scope: str, search: str, **kwargs: Any - ) -> Union[gitlab.GitlabList, List[Dict[str, Any]]]: + ) -> Union[client.GitlabList, List[Dict[str, Any]]]: """Search the group resources matching the provided string.' Args: |