Skip to content

Commit

Permalink
Fix circular import
Browse files Browse the repository at this point in the history
Signed-off-by: Panu Oksiala <[email protected]>
  • Loading branch information
poksiala committed Sep 5, 2024
1 parent 29d68f0 commit 63edce0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions oras/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import Dict, Literal, Optional

import requests

from oras.auth.base import AuthBackend
Expand Down
6 changes: 3 additions & 3 deletions oras/auth/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import abc
from typing import Dict, Optional, Tuple

import requests

import oras.auth.utils as auth_utils
import oras.container
from oras.logger import logger
import oras.utils

import requests
from oras.logger import logger


class AuthBackend(abc.ABC):
Expand Down
4 changes: 3 additions & 1 deletion oras/auth/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
__copyright__ = "Copyright The ORAS Authors."
__license__ = "Apache-2.0"

import requests
from typing import Optional, Tuple

import requests

import oras.auth.utils as auth_utils
from oras.logger import logger

Expand Down
10 changes: 8 additions & 2 deletions oras/decorator.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
from __future__ import annotations

__author__ = "Vanessa Sochat"
__copyright__ = "Copyright The ORAS Authors."
__license__ = "Apache-2.0"

import time

import functools
import time
from typing import TYPE_CHECKING

from oras.logger import logger
from oras.provider import Registry

if TYPE_CHECKING:
from oras.provider import Registry


def ensure_container(fn):
Expand Down

0 comments on commit 63edce0

Please sign in to comment.