Change __module__ attribute for containers to point to package, not to submodules

This commit is contained in:
Roman Mogilatov 2017-03-24 23:46:19 +02:00
parent 42666390f4
commit f72357e7ff
2 changed files with 17 additions and 1 deletions

View File

@ -9,7 +9,13 @@ follows `Semantic versioning`_
Development version Development version
------------------- -------------------
.. - No features. - No features.
3.3.4
-----
- Change ``__module__`` attribute for all members of
``dependency_injector.containers`` package to point to package, but not to
package modules.
- Regenerate C sources using Cython 0.25.2. - Regenerate C sources using Cython 0.25.2.
3.3.3 3.3.3

View File

@ -14,6 +14,16 @@ from .utils import (
) )
# Set package name as a name of module for all public members of this package:
for item in (DeclarativeContainerMetaClass,
DeclarativeContainer,
DynamicContainer,
is_container,
override,
copy,):
item.__module__ = __name__
__all__ = ( __all__ = (
'DeclarativeContainerMetaClass', 'DeclarativeContainerMetaClass',
'DeclarativeContainer', 'DeclarativeContainer',