mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-22 05:26:09 +03:00
Fix flake8 errors
This commit is contained in:
parent
8d0b7050d2
commit
4dcf03a3ec
|
@ -6,7 +6,19 @@ import importlib
|
||||||
import pkgutil
|
import pkgutil
|
||||||
import sys
|
import sys
|
||||||
from types import ModuleType
|
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):
|
if sys.version_info < (3, 7):
|
||||||
from typing import GenericMeta
|
from typing import GenericMeta
|
||||||
|
@ -172,7 +184,7 @@ class ProvidersMap:
|
||||||
return providers_map
|
return providers_map
|
||||||
|
|
||||||
|
|
||||||
def wire(
|
def wire( # noqa: C901
|
||||||
container: Container,
|
container: Container,
|
||||||
*,
|
*,
|
||||||
modules: Optional[Iterable[ModuleType]] = None,
|
modules: Optional[Iterable[ModuleType]] = None,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user