mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-30 19:24:31 +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
|
||||
-------------------
|
||||
.. - 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.
|
||||
|
||||
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__ = (
|
||||
'DeclarativeContainerMetaClass',
|
||||
'DeclarativeContainer',
|
||||
|
|
Loading…
Reference in New Issue
Block a user