From d827f93816aa5c1cd3b83bcebefa0839628b1433 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Thu, 30 Sep 2021 15:16:17 -0400 Subject: [PATCH] Update quotes in container examples --- examples/containers/check_dependencies.py | 2 +- examples/containers/declarative.py | 6 +++--- .../containers/declarative_copy_decorator1.py | 4 ++-- .../containers/declarative_copy_decorator2.py | 8 ++++---- examples/containers/declarative_inheritance.py | 12 ++++++------ examples/containers/declarative_injections.py | 4 ++-- .../declarative_override_decorator.py | 4 ++-- .../declarative_override_providers.py | 4 ++-- examples/containers/dynamic.py | 6 +++--- .../containers/dynamic_runtime_creation.py | 18 +++++++++--------- examples/containers/inject_self.py | 8 ++++---- examples/containers/override.py | 2 +- examples/containers/reset_singletons.py | 2 +- .../reset_singletons_subcontainers.py | 2 +- examples/containers/reset_singletons_with.py | 2 +- examples/containers/traverse.py | 10 +++++----- 16 files changed, 47 insertions(+), 47 deletions(-) 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> - # + #