From 7d26530640eb406479f1604cb64748d278081864 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Tue, 31 May 2022 07:46:37 -0700 Subject: chore: move `RequiredOptional` to the `gitlab.types` module By having `RequiredOptional` in the `gitlab.base` module it makes it difficult with circular imports. Move it to the `gitlab.types` module which has no dependencies on any other gitlab module. --- gitlab/v4/objects/snippets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gitlab/v4/objects/snippets.py') diff --git a/gitlab/v4/objects/snippets.py b/gitlab/v4/objects/snippets.py index 83b1378..597a3aa 100644 --- a/gitlab/v4/objects/snippets.py +++ b/gitlab/v4/objects/snippets.py @@ -5,8 +5,9 @@ import requests from gitlab import cli from gitlab import exceptions as exc from gitlab import utils -from gitlab.base import RequiredOptional, RESTManager, RESTObject, RESTObjectList +from gitlab.base import RESTManager, RESTObject, RESTObjectList from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin, UserAgentDetailMixin +from gitlab.types import RequiredOptional from .award_emojis import ProjectSnippetAwardEmojiManager # noqa: F401 from .discussions import ProjectSnippetDiscussionManager # noqa: F401 -- cgit v1.2.1