Skip to content

Commit

Permalink
support python 3.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
RB387 committed Mar 25, 2024
1 parent 2bb8df8 commit dd1f60c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/python-poetry-env
Expand Down
3 changes: 1 addition & 2 deletions src/magic_di/_injector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Callable,
Iterable,
Iterator,
Self,
TypeVar,
cast,
get_origin,
Expand Down Expand Up @@ -166,7 +165,7 @@ async def disconnect(self) -> None:
except Exception:
self.logger.exception("Failed to disconnect %s", cls.__name__)

async def __aenter__(self) -> Self:
async def __aenter__(self) -> DependencyInjector: # noqa: PYI034
await self.connect()
return self

Expand Down

0 comments on commit dd1f60c

Please sign in to comment.