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 import AbstractCatalog
|
||||||
from objects.providers import Singleton, Callable
|
from objects.providers import (
|
||||||
from objects.injections import Injection, InitArg, Attribute
|
Singleton,
|
||||||
|
Callable,
|
||||||
|
)
|
||||||
|
from objects.injections import (
|
||||||
|
Injection,
|
||||||
|
InitArg,
|
||||||
|
Attribute,
|
||||||
|
)
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,14 @@ Concept example of objects catalogs.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from objects import AbstractCatalog
|
from objects import AbstractCatalog
|
||||||
from objects.providers import Singleton, NewInstance
|
from objects.providers import (
|
||||||
from objects.injections import InitArg, Attribute
|
Singleton,
|
||||||
|
NewInstance,
|
||||||
|
)
|
||||||
|
from objects.injections import (
|
||||||
|
InitArg,
|
||||||
|
Attribute,
|
||||||
|
)
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,10 @@ Config provider examples.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from objects import AbstractCatalog
|
from objects import AbstractCatalog
|
||||||
from objects.providers import Config, NewInstance
|
from objects.providers import (
|
||||||
|
Config,
|
||||||
|
NewInstance,
|
||||||
|
)
|
||||||
from objects.injections import InitArg
|
from objects.injections import InitArg
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,14 @@ Example of providers delegate.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from objects import AbstractCatalog
|
from objects import AbstractCatalog
|
||||||
from objects.providers import Singleton
|
from objects.providers import (
|
||||||
from objects.providers import NewInstance
|
Singleton,
|
||||||
from objects.injections import InitArg
|
NewInstance,
|
||||||
from objects.injections import Attribute
|
)
|
||||||
|
from objects.injections import (
|
||||||
|
InitArg,
|
||||||
|
Attribute,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
|
@ -3,8 +3,11 @@ Concept example of objects catalogs.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from objects import AbstractCatalog
|
from objects import AbstractCatalog
|
||||||
from objects.providers import Singleton, NewInstance, ExternalDependency
|
from objects.providers import Singleton
|
||||||
from objects.injections import InitArg, Attribute
|
from objects.providers import NewInstance
|
||||||
|
from objects.providers import ExternalDependency
|
||||||
|
from objects.injections import InitArg
|
||||||
|
from objects.injections import Attribute
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,18 @@ Concept example of objects overrides.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from objects import AbstractCatalog, overrides
|
from objects import (
|
||||||
from objects.providers import Singleton, NewInstance
|
AbstractCatalog,
|
||||||
from objects.injections import InitArg, Attribute
|
overrides,
|
||||||
|
)
|
||||||
|
from objects.providers import (
|
||||||
|
Singleton,
|
||||||
|
NewInstance,
|
||||||
|
)
|
||||||
|
from objects.injections import (
|
||||||
|
InitArg,
|
||||||
|
Attribute,
|
||||||
|
)
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,14 @@ Scoped provider examples.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from objects import AbstractCatalog
|
from objects import AbstractCatalog
|
||||||
from objects.providers import Singleton, Scoped
|
from objects.providers import (
|
||||||
from objects.injections import InitArg, Attribute
|
Singleton,
|
||||||
|
Scoped,
|
||||||
|
)
|
||||||
|
from objects.injections import (
|
||||||
|
InitArg,
|
||||||
|
Attribute,
|
||||||
|
)
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,12 @@ Standard providers.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from collections import Iterable
|
from collections import Iterable
|
||||||
from .injections import Injection, InitArg, Attribute, Method
|
from .injections import (
|
||||||
|
Injection,
|
||||||
|
InitArg,
|
||||||
|
Attribute,
|
||||||
|
Method,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Provider(object):
|
class Provider(object):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user