Skip to content

Commit 91c90cf

Browse files
committed
Run black
1 parent 633f60a commit 91c90cf

File tree

6 files changed

+175
-140
lines changed

6 files changed

+175
-140
lines changed

examples/wiring/example.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@
55
from typing import Annotated
66

77

8-
class Service:
9-
...
8+
class Service: ...
109

1110

1211
class Container(containers.DeclarativeContainer):
1312

1413
service = providers.Factory(Service)
1514

15+
1616
# You can place marker on parameter default value
1717
@inject
18-
def main(service: Service = Provide[Container.service]) -> None:
19-
...
18+
def main(service: Service = Provide[Container.service]) -> None: ...
2019

2120

2221
# Also, you can place marker with typing.Annotated
2322
@inject
24-
def main_with_annotated(service: Annotated[Service, Provide[Container.service]]) -> None:
25-
...
23+
def main_with_annotated(
24+
service: Annotated[Service, Provide[Container.service]]
25+
) -> None: ...
2626

2727

2828
if __name__ == "__main__":

0 commit comments

Comments
 (0)