From 4dcf03a3eca465baecaf2374bda55a61e7b6a886 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Sun, 15 Nov 2020 15:26:36 -0500 Subject: [PATCH] Fix flake8 errors --- src/dependency_injector/wiring.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/dependency_injector/wiring.py b/src/dependency_injector/wiring.py index 6a5f176e..1ba73639 100644 --- a/src/dependency_injector/wiring.py +++ b/src/dependency_injector/wiring.py @@ -6,7 +6,19 @@ import importlib import pkgutil import sys from types import ModuleType -from typing import Optional, Iterable, Iterator, Callable, Any, Tuple, Dict, Generic, TypeVar, Type, cast +from typing import ( + Optional, + Iterable, + Iterator, + Callable, + Any, + Tuple, + Dict, + Generic, + TypeVar, + Type, + cast, +) if sys.version_info < (3, 7): from typing import GenericMeta @@ -172,7 +184,7 @@ class ProvidersMap: return providers_map -def wire( +def wire( # noqa: C901 container: Container, *, modules: Optional[Iterable[ModuleType]] = None,