Skip to content

Commit ea41b3c

Browse files
authored
Merge pull request reagento#474 from chirizxc/chore/imports
chore: sort imports, remove unused imports
2 parents 4c1f9d2 + 862abb4 commit ea41b3c

21 files changed

+49
-39
lines changed

examples/integrations/aiohttp_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Annotated, Protocol
1+
from typing import Protocol
22

33
from aiohttp.web import run_app
44
from aiohttp.web_app import Application

examples/integrations/arq/run_with_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
2-
from typing import Protocol, Annotated, Any
2+
from typing import Any, Protocol
33

4-
from dishka import Provider, Scope, provide, make_async_container, FromDishka
4+
from dishka import FromDishka, Provider, Scope, make_async_container, provide
55
from dishka.integrations.arq import inject, setup_dishka
66

77
logger = logging.getLogger(__name__)

examples/integrations/arq/run_with_worker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import asyncio
22
import logging
3-
from typing import Protocol, Annotated, Any
3+
from typing import Any, Protocol
44

55
from arq.worker import create_worker
6-
from dishka import Provider, Scope, provide, make_async_container, FromDishka
6+
7+
from dishka import FromDishka, Provider, Scope, make_async_container, provide
78
from dishka.integrations.arq import inject, setup_dishka
89

910
logger = logging.getLogger(__name__)

examples/integrations/click_app/async_command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import click
77

88
from dishka import (
9-
make_container,
9+
FromDishka,
1010
Provider,
1111
Scope,
12+
make_container,
1213
provide,
13-
FromDishka,
1414
)
1515
from dishka.integrations.click import setup_dishka
1616

examples/integrations/click_app/sync_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import click
55

6-
from dishka import make_container, Provider, Scope, provide, FromDishka
6+
from dishka import FromDishka, Provider, Scope, make_container, provide
77
from dishka.integrations.click import setup_dishka
88

99

examples/integrations/fastapi_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
from abc import abstractmethod
33
from contextlib import asynccontextmanager
4-
from typing import Annotated, Protocol
4+
from typing import Protocol
55

66
import uvicorn
77
from fastapi import APIRouter, FastAPI

examples/integrations/faststream_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
from dishka import Provider, Scope, make_async_container, provide
55
from dishka.integrations.faststream import (
6-
FastStreamProvider, FromDishka, setup_dishka,
6+
FastStreamProvider,
7+
FromDishka,
8+
setup_dishka,
79
)
810

911

examples/integrations/flask_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from abc import abstractmethod
2-
from typing import Annotated, Protocol
2+
from typing import Protocol
33

44
from flask import Flask
55

examples/integrations/grpcio/di.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from dishka import Provider, Scope
2-
31
from grpcio.services.uuid_service import UUIDService, UUIDServiceImpl
42

3+
from dishka import Provider, Scope
4+
55

66
def service_provider() -> Provider:
77
provider = Provider()

examples/integrations/grpcio/grpc_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import grpc
2-
32
from grpcio.pb2.service_pb2 import RequestMessage
43
from grpcio.pb2.service_pb2_grpc import ExampleServiceStub
54

0 commit comments

Comments
 (0)