From 50275699d94039b2c87160c1787d5901ce02e5c6 Mon Sep 17 00:00:00 2001 From: Marco Gil Date: Wed, 7 May 2025 11:06:55 +0200 Subject: [PATCH] PTHMINT-49: Fix ruff B006 --- pyproject.toml | 1 - src/multisafepay/api/base/decorator.py | 4 ++-- src/multisafepay/exception/api.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) 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.