Skip to content

Commit b0880a9

Browse files
committed
Ignore mypy complaints
1 parent cedce7f commit b0880a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

diffsync/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ def __init_subclass__(cls) -> None:
481481
if not isclass(value) or not issubclass(value, DiffSyncModel):
482482
raise AttributeError(f'top_level references attribute "{name}" but it is not a DiffSyncModel subclass!')
483483

484-
def __new__(cls, **kwargs):
485-
""""""
484+
def __new__(cls, **kwargs): # type: ignore[no-untyped-def]
485+
"""Document keyword arguments that were used to initialize Adapter."""
486486
meta_kwargs = deepcopy(kwargs)
487487
instance = super().__new__(cls)
488488
instance._meta_kwargs = meta_kwargs

diffsync/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def symmetric_difference(lst1: List[T], lst2: List[T]) -> List[T]:
4444
class OrderedDefaultDict(OrderedDict, Generic[K, V]):
4545
"""A combination of collections.OrderedDict and collections.DefaultDict behavior."""
4646

47-
def __init__(self, dict_type: Callable[[], V] = dict) -> None:
47+
def __init__(self, dict_type: Callable[[], V] = dict) -> None: # type: ignore[assignment]
4848
"""Create a new OrderedDefaultDict."""
4949
self.factory = dict_type
5050
super().__init__(self)

0 commit comments

Comments
 (0)