diff --git a/examples/containers/check_dependencies.py b/examples/containers/check_dependencies.py index f9d1bac2..24b3b88e 100644 --- a/examples/containers/check_dependencies.py +++ b/examples/containers/check_dependencies.py @@ -9,7 +9,7 @@ class Container(containers.DeclarativeContainer): service2 = providers.Dependency() -if __name__ == '__main__': +if __name__ == "__main__": container = Container() container.check_dependencies() # <-- raises error: # Container has undefined dependencies: "Container.service1", "Container.service2" diff --git a/examples/containers/declarative.py b/examples/containers/declarative.py index 4fb7d795..21a43174 100644 --- a/examples/containers/declarative.py +++ b/examples/containers/declarative.py @@ -10,7 +10,7 @@ class Container(containers.DeclarativeContainer): factory2 = providers.Factory(object) -if __name__ == '__main__': +if __name__ == "__main__": container = Container() object1 = container.factory1() @@ -18,6 +18,6 @@ if __name__ == '__main__': print(container.providers) # { - # 'factory1': - # ) at 0x10d3a2820> + # + # ) at 0x10d3a2820> # ) at 0x10d346b40> - # + # # ) at 0x10d346bc0> - # + #