1515limitations under the License.
1616"""
1717
18- from collections .abc import Iterable as ABCIterable , Mapping as ABCMapping
19- from typing import Callable , List , Optional , Tuple , Type , TYPE_CHECKING , Dict , Iterable
18+ from collections .abc import Iterable as ABCIterable
19+ from collections .abc import Mapping as ABCMapping
20+ from typing import TYPE_CHECKING , Callable , Dict , Iterable , List , Optional , Tuple , Type
2021
2122import structlog # type: ignore
2223
2324from .diff import Diff , DiffElement
24- from .enum import DiffSyncModelFlags , DiffSyncFlags , DiffSyncStatus , DiffSyncActions
25- from .exceptions import ObjectNotFound , ObjectNotCreated , ObjectNotUpdated , ObjectNotDeleted , ObjectCrudException
25+ from .enum import DiffSyncActions , DiffSyncFlags , DiffSyncModelFlags , DiffSyncStatus
26+ from .exceptions import ObjectCrudException , ObjectNotCreated , ObjectNotDeleted , ObjectNotFound , ObjectNotUpdated
2627from .utils import intersection , symmetric_difference
2728
2829if TYPE_CHECKING : # pragma: no cover
@@ -36,7 +37,7 @@ class DiffSyncDiffer: # pylint: disable=too-many-instance-attributes
3637 Independent from Diff and DiffElement as those classes are purely data objects, while this stores some state.
3738 """
3839
39- def __init__ ( # pylint: disable=too-many-arguments
40+ def __init__ ( # pylint: disable=too-many-arguments, too-many-positional-arguments
4041 self ,
4142 src_diffsync : "Adapter" ,
4243 dst_diffsync : "Adapter" ,
@@ -115,9 +116,9 @@ def diff_object_list(self, src: List["DiffSyncModel"], dst: List["DiffSyncModel"
115116
116117 combined_dict = {}
117118 for uid in dict_src :
118- combined_dict [uid ] = (dict_src .get (uid ), dict_dst .get (uid ))
119+ combined_dict [uid ] = (dict_src .get (uid ), dict_dst .get (uid )) # type: ignore
119120 for uid in dict_dst :
120- combined_dict [uid ] = (dict_src .get (uid ), dict_dst .get (uid ))
121+ combined_dict [uid ] = (dict_src .get (uid ), dict_dst .get (uid )) # type: ignore
121122 else :
122123 # In the future we might support set, etc...
123124 raise TypeError (f"Type combination { type (src )} /{ type (dst )} is not supported... for now" )
@@ -138,7 +139,7 @@ def diff_object_list(self, src: List["DiffSyncModel"], dst: List["DiffSyncModel"
138139
139140 @staticmethod
140141 def validate_objects_for_diff (
141- object_pairs : Iterable [Tuple [Optional ["DiffSyncModel" ], Optional ["DiffSyncModel" ]]]
142+ object_pairs : Iterable [Tuple [Optional ["DiffSyncModel" ], Optional ["DiffSyncModel" ]]],
142143 ) -> None :
143144 """Check whether all DiffSyncModels in the given dictionary are valid for comparison to one another.
144145
@@ -286,7 +287,7 @@ class DiffSyncSyncer: # pylint: disable=too-many-instance-attributes
286287 Independent from DiffSync and DiffSyncModel as those classes are purely data objects, while this stores some state.
287288 """
288289
289- def __init__ ( # pylint: disable=too-many-arguments
290+ def __init__ ( # pylint: disable=too-many-arguments, too-many-positional-arguments
290291 self ,
291292 diff : Diff ,
292293 src_diffsync : "Adapter" ,
0 commit comments