Merge branch 'release/3.17.1' into master

This commit is contained in:
Roman Mogylatov 2020-06-23 12:48:37 -04:00
commit 3a0c746430
4 changed files with 994 additions and 850 deletions

View File

@ -7,6 +7,10 @@ that were made in every particular version.
From version 0.7.6 *Dependency Injector* framework strictly
follows `Semantic versioning`_
3.17.1
------
- Fix ``DynamicContainer`` deep-copying bug.
3.17.0
------
- Add ``Container`` provider.

View File

@ -1,6 +1,6 @@
"""Dependency injector top-level package."""
__version__ = '3.17.0'
__version__ = '3.17.1'
"""Version number that follows semantic versioning.
:type: str

File diff suppressed because it is too large Load Diff

View File

@ -62,9 +62,11 @@ class DynamicContainer(object):
copied = self.__class__()
copied.provider_type = Provider
copied.providers = deepcopy(self.providers, memo)
copied.overridden = deepcopy(self.overridden, memo)
for name, provider in deepcopy(self.providers, memo).items():
setattr(copied, name, provider)
return copied
def __setattr__(self, str name, object value):