codestyle fixes

This commit is contained in:
Roman Mogilatov 2015-02-23 10:47:38 +02:00
parent b6961f9311
commit 76e14c1c79
8 changed files with 60 additions and 17 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):