Skip to content

Commit fdcbfeb

Browse files
committed
PTHMINT-49: Fix ruff B006
1 parent 61bcb14 commit fdcbfeb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ extend-safe-fixes = [
9898
"D415", # docstrings should end with a period, question mark, or exclamation point
9999
]
100100
ignore = [
101-
"B006",
102101
"B904",
103102
"BLE001",
104103
"D100",

src/multisafepay/api/base/decorator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Decorator:
2020

2121
dependencies: Optional[Dict]
2222

23-
def __init__(self: "Decorator", dependencies: Dict = {}) -> None:
23+
def __init__(self: "Decorator", dependencies: Dict = None) -> None:
2424
"""
2525
Initialize the Decorator with optional dependencies.
2626
@@ -29,7 +29,7 @@ def __init__(self: "Decorator", dependencies: Dict = {}) -> None:
2929
dependencies (dict): A dictionary of dependencies to be used by the decorator, by default {}.
3030
3131
"""
32-
self.dependencies = dependencies
32+
self.dependencies = dependencies if dependencies is not None else {}
3333

3434
def adapt_checkout_options(
3535
self: "Decorator",

src/multisafepay/exception/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ApiException(Exception):
2424
def __init__(
2525
self: "ApiException",
2626
message: str,
27-
context: dict = {},
27+
context: dict = None,
2828
) -> None:
2929
"""
3030
Initialize the ApiException.

0 commit comments

Comments
 (0)