Skip to content

Commit

Permalink
feat: move internal entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
theodu committed Aug 21, 2023
1 parent 5f1eb85 commit 82b4f76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/kili/entrypoints/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from kili.core.graphql.graphql_client import GraphQLClient, GraphQLClientName
from kili.core.graphql.operations.api_key.queries import APIKeyQuery, APIKeyWhere
from kili.core.graphql.operations.user.queries import GQL_ME
from kili.entrypoints.client.internal import InternalEntrypoints
from kili.entrypoints.client.issue import IssueEntrypoints
from kili.entrypoints.mutations.asset import MutationsAsset
from kili.entrypoints.mutations.data_connection import MutationsDataConnection
from kili.entrypoints.mutations.issue import MutationsIssue
Expand All @@ -38,7 +40,6 @@
from kili.entrypoints.queries.user import QueriesUser
from kili.entrypoints.subscriptions.label import SubscriptionsLabel
from kili.exceptions import AuthenticationFailed, UserNotFoundError
from kili.internal import KiliInternal

warnings.filterwarnings("default", module="kili", category=DeprecationWarning)

Expand Down Expand Up @@ -172,7 +173,7 @@ def __init__(
api_key_query = APIKeyQuery(self.graphql_client, self.http_client)
self._check_expiry_of_key_is_close(api_key_query, self.api_key)

self.internal = KiliInternal(self)
self.internal = InternalEntrypoints(self)

def _check_api_key_valid(self) -> None:
"""Check that the api_key provided is valid."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from kili.entrypoints.queries.api_key import QueriesApiKey


class KiliInternal(MutationsOrganization, QueriesApiKey):
class InternalEntrypoints(MutationsOrganization, QueriesApiKey):
"""Inherit classes for internal use by Kili Technology only."""

def __init__(self, kili):
Expand Down

0 comments on commit 82b4f76

Please sign in to comment.