Skip to content

Commit

Permalink
Ensure all submodules are imported (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson authored Jul 4, 2024
1 parent 4e721b1 commit 04469f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions kr8s/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from functools import partial, update_wrapper
from typing import Optional, Union

from . import asyncio, objects, portforward
from ._api import ALL
from ._api import Api as _AsyncApi
from ._async_utils import run_sync as _run_sync
Expand Down Expand Up @@ -170,7 +171,10 @@ def whoami():
"ALL",
"api",
"api_resources",
"asyncio",
"get",
"objects",
"portforward",
"version",
"watch",
"whoami",
Expand Down
13 changes: 12 additions & 1 deletion kr8s/asyncio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@
# SPDX-License-Identifier: BSD 3-Clause License
from kr8s._api import Api

from . import objects, portforward
from ._api import api
from ._helpers import api_resources, get, version, watch, whoami

__all__ = ["api", "api_resources", "get", "version", "watch", "whoami", "Api"]
__all__ = [
"api",
"api_resources",
"get",
"objects",
"portforward",
"version",
"watch",
"whoami",
"Api",
]

0 comments on commit 04469f3

Please sign in to comment.