diff --git a/pyproject.toml b/pyproject.toml index 9395b19..ab1f67c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,7 +98,6 @@ extend-safe-fixes = [ "D415", # docstrings should end with a period, question mark, or exclamation point ] ignore = [ - "B006", "B904", "BLE001", "D100", diff --git a/src/multisafepay/api/base/decorator.py b/src/multisafepay/api/base/decorator.py index 2bcd66f..0587bfe 100644 --- a/src/multisafepay/api/base/decorator.py +++ b/src/multisafepay/api/base/decorator.py @@ -20,7 +20,7 @@ class Decorator: dependencies: Optional[Dict] - def __init__(self: "Decorator", dependencies: Dict = {}) -> None: + def __init__(self: "Decorator", dependencies: Dict = None) -> None: """ Initialize the Decorator with optional dependencies. @@ -29,7 +29,7 @@ def __init__(self: "Decorator", dependencies: Dict = {}) -> None: dependencies (dict): A dictionary of dependencies to be used by the decorator, by default {}. """ - self.dependencies = dependencies + self.dependencies = dependencies if dependencies is not None else {} def adapt_checkout_options( self: "Decorator", diff --git a/src/multisafepay/exception/api.py b/src/multisafepay/exception/api.py index b4b799a..da3a63e 100644 --- a/src/multisafepay/exception/api.py +++ b/src/multisafepay/exception/api.py @@ -24,7 +24,7 @@ class ApiException(Exception): def __init__( self: "ApiException", message: str, - context: dict = {}, + context: dict = None, ) -> None: """ Initialize the ApiException.