Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ extend-safe-fixes = [
"D415", # docstrings should end with a period, question mark, or exclamation point
]
ignore = [
"B006",
"B904",
"BLE001",
"D100",
Expand Down
4 changes: 2 additions & 2 deletions src/multisafepay/api/base/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/multisafepay/exception/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ApiException(Exception):
def __init__(
self: "ApiException",
message: str,
context: dict = {},
context: dict = None,
Copy link

Copilot AI May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The init method in ApiException should initialize context with an empty dictionary if None is provided, similar to the approach used in the Decorator class.

Copilot uses AI. Check for mistakes.
) -> None:
"""
Initialize the ApiException.
Expand Down