diffsync 2.2.2__tar.gz → 2.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diffsync-2.2.2 → diffsync-2.2.3}/PKG-INFO +1 -1
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/__init__.py +0 -14
- {diffsync-2.2.2 → diffsync-2.2.3}/pyproject.toml +1 -1
- {diffsync-2.2.2 → diffsync-2.2.3}/LICENSE +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/README.md +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/diff.py +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/enum.py +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/exceptions.py +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/helpers.py +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/log.py +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/logging.py +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/py.typed +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/store/__init__.py +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/store/local.py +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/store/redis.py +0 -0
- {diffsync-2.2.2 → diffsync-2.2.3}/diffsync/utils.py +0 -0
|
@@ -16,7 +16,6 @@ limitations under the License.
|
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
import sys
|
|
19
|
-
from copy import deepcopy
|
|
20
19
|
from inspect import isclass
|
|
21
20
|
from typing import (
|
|
22
21
|
Any,
|
|
@@ -482,19 +481,6 @@ class Adapter: # pylint: disable=too-many-public-methods
|
|
|
482
481
|
if not isclass(value) or not issubclass(value, DiffSyncModel):
|
|
483
482
|
raise AttributeError(f'top_level references attribute "{name}" but it is not a DiffSyncModel subclass!')
|
|
484
483
|
|
|
485
|
-
def __new__(cls, **kwargs): # type: ignore[no-untyped-def]
|
|
486
|
-
"""Document keyword arguments that were used to initialize Adapter."""
|
|
487
|
-
meta_kwargs = {}
|
|
488
|
-
for key, value in kwargs.items():
|
|
489
|
-
try:
|
|
490
|
-
meta_kwargs[key] = deepcopy(value)
|
|
491
|
-
except Exception: # pylint: disable=broad-exception-caught
|
|
492
|
-
# Some objects (e.g. Kafka Consumer, DB connections) cannot be deep copied
|
|
493
|
-
meta_kwargs[key] = value
|
|
494
|
-
instance = super().__new__(cls)
|
|
495
|
-
instance._meta_kwargs = meta_kwargs
|
|
496
|
-
return instance
|
|
497
|
-
|
|
498
484
|
def __str__(self) -> StrType:
|
|
499
485
|
"""String representation of an Adapter."""
|
|
500
486
|
if self.type != self.name:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|