mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 03:36:41 +03:00
Change __module__ attribute for containers to point to package, not to submodules
This commit is contained in:
parent
42666390f4
commit
f72357e7ff
|
@ -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
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user