Skip to content

Commit

Permalink
Use fallback import
Browse files Browse the repository at this point in the history
  • Loading branch information
maldoinc committed Sep 13, 2023
1 parent 445923b commit 74fe957
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/test_container.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import unittest
from dataclasses import dataclass
from typing_extensions import Annotated
from unittest.mock import Mock, patch

from test import services
Expand All @@ -13,6 +12,11 @@
from wireup.ioc.parameter import ParameterBag, TemplatedString
from wireup.ioc.util import find_classes_in_module

try:
from typing import Annotated
except ImportError:
from typing_extensions import Annotated


class TestContainer(unittest.IsolatedAsyncioTestCase):
def setUp(self) -> None:
Expand Down
6 changes: 5 additions & 1 deletion test/test_util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import inspect
import unittest
from typing_extensions import Annotated

from test import services
from test.services.baz_service import BazService
Expand All @@ -14,6 +13,11 @@
AnnotatedParameter,
)

try:
from typing import Annotated
except ImportError:
from typing_extensions import Annotated


class TestUtilityFunctions(unittest.TestCase):
def test_find_classes_in_package(self):
Expand Down

0 comments on commit 74fe957

Please sign in to comment.