mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 02:53:56 +03:00
codestyle fixes
This commit is contained in:
parent
b6961f9311
commit
76e14c1c79
|
@ -3,8 +3,15 @@ Callable provider examples.
|
|||
"""
|
||||
|
||||
from objects import AbstractCatalog
|
||||
from objects.providers import Singleton, Callable
|
||||
from objects.injections import Injection, InitArg, Attribute
|
||||
from objects.providers import (
|
||||
Singleton,
|
||||
Callable,
|
||||
)
|
||||
from objects.injections import (
|
||||
Injection,
|
||||
InitArg,
|
||||
Attribute,
|
||||
)
|
||||
|
||||
import sqlite3
|
||||
|
||||
|
|
|
@ -3,8 +3,14 @@ Concept example of objects catalogs.
|
|||
"""
|
||||
|
||||
from objects import AbstractCatalog
|
||||
from objects.providers import Singleton, NewInstance
|
||||
from objects.injections import InitArg, Attribute
|
||||
from objects.providers import (
|
||||
Singleton,
|
||||
NewInstance,
|
||||
)
|
||||
from objects.injections import (
|
||||
InitArg,
|
||||
Attribute,
|
||||
)
|
||||
|
||||
import sqlite3
|
||||
|
||||
|
|
|
@ -3,7 +3,10 @@ Config provider examples.
|
|||
"""
|
||||
|
||||
from objects import AbstractCatalog
|
||||
from objects.providers import Config, NewInstance
|
||||
from objects.providers import (
|
||||
Config,
|
||||
NewInstance,
|
||||
)
|
||||
from objects.injections import InitArg
|
||||
|
||||
|
||||
|
|
|
@ -3,10 +3,14 @@ Example of providers delegate.
|
|||
"""
|
||||
|
||||
from objects import AbstractCatalog
|
||||
from objects.providers import Singleton
|
||||
from objects.providers import NewInstance
|
||||
from objects.injections import InitArg
|
||||
from objects.injections import Attribute
|
||||
from objects.providers import (
|
||||
Singleton,
|
||||
NewInstance,
|
||||
)
|
||||
from objects.injections import (
|
||||
InitArg,
|
||||
Attribute,
|
||||
)
|
||||
|
||||
|
||||
import sqlite3
|
||||
|
|
|
@ -3,8 +3,11 @@ Concept example of objects catalogs.
|
|||
"""
|
||||
|
||||
from objects import AbstractCatalog
|
||||
from objects.providers import Singleton, NewInstance, ExternalDependency
|
||||
from objects.injections import InitArg, Attribute
|
||||
from objects.providers import Singleton
|
||||
from objects.providers import NewInstance
|
||||
from objects.providers import ExternalDependency
|
||||
from objects.injections import InitArg
|
||||
from objects.injections import Attribute
|
||||
|
||||
import sqlite3
|
||||
|
||||
|
|
|
@ -3,9 +3,18 @@ Concept example of objects overrides.
|
|||
"""
|
||||
|
||||
|
||||
from objects import AbstractCatalog, overrides
|
||||
from objects.providers import Singleton, NewInstance
|
||||
from objects.injections import InitArg, Attribute
|
||||
from objects import (
|
||||
AbstractCatalog,
|
||||
overrides,
|
||||
)
|
||||
from objects.providers import (
|
||||
Singleton,
|
||||
NewInstance,
|
||||
)
|
||||
from objects.injections import (
|
||||
InitArg,
|
||||
Attribute,
|
||||
)
|
||||
|
||||
import sqlite3
|
||||
|
||||
|
|
|
@ -3,8 +3,14 @@ Scoped provider examples.
|
|||
"""
|
||||
|
||||
from objects import AbstractCatalog
|
||||
from objects.providers import Singleton, Scoped
|
||||
from objects.injections import InitArg, Attribute
|
||||
from objects.providers import (
|
||||
Singleton,
|
||||
Scoped,
|
||||
)
|
||||
from objects.injections import (
|
||||
InitArg,
|
||||
Attribute,
|
||||
)
|
||||
|
||||
import sqlite3
|
||||
|
||||
|
|
|
@ -3,7 +3,12 @@ Standard providers.
|
|||
"""
|
||||
|
||||
from collections import Iterable
|
||||
from .injections import Injection, InitArg, Attribute, Method
|
||||
from .injections import (
|
||||
Injection,
|
||||
InitArg,
|
||||
Attribute,
|
||||
Method,
|
||||
)
|
||||
|
||||
|
||||
class Provider(object):
|
||||
|
|
Loading…
Reference in New Issue
Block a user