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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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