diffsync 2.2.2__py3-none-any.whl → 2.2.3__py3-none-any.whl

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/__init__.py CHANGED
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: diffsync
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: Library to easily sync/diff/update 2 different data sources
5
5
  License: Apache-2.0
6
6
  Keywords: source-of-truth,synchronization
@@ -1,4 +1,4 @@
1
- diffsync/__init__.py,sha256=oW3EE6wYeIWbDJ9ggjG3FL9LWs2_yIDD9HtTV2Ptsiw,38977
1
+ diffsync/__init__.py,sha256=noZgQ9A98kg5KuMwACRrb9P2ttI5sSLjAN1D3ok1bQU,38360
2
2
  diffsync/diff.py,sha256=g8zgqbTTBDijs6LWovwOOYUPCQEDTW7NWKwpfXWKIsw,16188
3
3
  diffsync/enum.py,sha256=0H5R7u9oqp7cbMBBt8VU32DgoT0i8ZRr_V5MzIij4-o,3672
4
4
  diffsync/exceptions.py,sha256=aN6Us7Dic7nyjvJNpisjdqDT31jVrwK8jJf9puMgS6E,2333
@@ -10,7 +10,7 @@ diffsync/store/__init__.py,sha256=paa3tADw-rN01WTRXyP5DMosjctknsM_Zg62JqsUyqc,99
10
10
  diffsync/store/local.py,sha256=gSW_loGD1W2Bocrhpt9LYvCV66dh2EbWuujZ43xhVl0,5081
11
11
  diffsync/store/redis.py,sha256=vls8xDzp8VZdqyVORk1ACL8pQFYbE8Efls10cYCMJCk,7884
12
12
  diffsync/utils.py,sha256=hh5KPPuMrrX2oh0-EOItFiXLlKQJ7L8dxeOVjPdAVUY,3814
13
- diffsync-2.2.2.dist-info/LICENSE,sha256=smEeHEeq8znW7t8syhtRJKWhFldiszc9_f9U1dK0XmM,591
14
- diffsync-2.2.2.dist-info/METADATA,sha256=yhcupz_W0HSSKzhetzMFIMFKG8yiOQKzNn4WIpVHXjY,7045
15
- diffsync-2.2.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
- diffsync-2.2.2.dist-info/RECORD,,
13
+ diffsync-2.2.3.dist-info/LICENSE,sha256=smEeHEeq8znW7t8syhtRJKWhFldiszc9_f9U1dK0XmM,591
14
+ diffsync-2.2.3.dist-info/METADATA,sha256=U24VgOFY0HFAzC94f5wG383WE4uBkVK3Xa5Ym6axR_s,7045
15
+ diffsync-2.2.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
+ diffsync-2.2.3.dist-info/RECORD,,