Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dependency_injector/ext/aiohttp.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Awaitable as _Awaitable, TypeVar
from typing import Awaitable as _Awaitable, TypeVar

from dependency_injector import providers

Expand Down
2 changes: 1 addition & 1 deletion src/dependency_injector/ext/flask.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Callable as _Callable, Optional, TypeVar, Union
from typing import Callable as _Callable, Optional, TypeVar, Union

from flask.wrappers import Request

Expand Down
1 change: 0 additions & 1 deletion src/dependency_injector/providers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ from typing import (
Callable as _Callable,
Coroutine as _Coroutine,
Dict as _Dict,
Generator as _Generator,
Generic,
Iterable as _Iterable,
Iterator as _Iterator,
Expand Down
2 changes: 1 addition & 1 deletion tests/typing/aggregate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dependency_injector import providers
from typing_extensions import assert_type, Any
from typing_extensions import assert_type


class Animal: ...
Expand Down
2 changes: 1 addition & 1 deletion tests/typing/coroutine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Awaitable, Coroutine, Any
from typing import Coroutine, Any
from typing_extensions import assert_type

from dependency_injector import providers
Expand Down
2 changes: 1 addition & 1 deletion tests/typing/factory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Callable, Dict, Optional, Tuple, Type
from typing import Any, Callable, Dict, Tuple, Type
from typing_extensions import assert_type

from dependency_injector import providers
Expand Down
1 change: 0 additions & 1 deletion tests/unit/samples/wiring/asyncinjections.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio

from typing_extensions import Annotated

from dependency_injector import containers, providers
from dependency_injector.wiring import Closing, Provide, inject
Expand Down
3 changes: 0 additions & 3 deletions tests/unit/samples/wiringfastapi/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
from typing_extensions import Annotated

from fastapi import FastAPI, Depends
from fastapi import (
Request,
) # See: https://github.com/ets-labs/python-dependency-injector/issues/398
from fastapi.security import HTTPBasic, HTTPBasicCredentials
from dependency_injector import containers, providers
from dependency_injector.wiring import inject, Provide
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/wiring/provider_ids/test_main_annotated_py36.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import typing

from dependency_injector import errors
from dependency_injector.wiring import Closing, Provide, Provider, wire
from pytest import fixture, mark, raises
from pytest import fixture, raises

from samples.wiring import module_annotated as module, package, resourceclosing
from samples.wiring.service import Service
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/wiring/test_fastapi_py36.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from httpx import ASGITransport, AsyncClient
from pytest import fixture, mark
from pytest import mark
from pytest_asyncio import fixture as aio_fixture

# Runtime import to avoid syntax errors in samples on Python < 3.5 and reach top-dir
Expand Down