Skip to content

Commit b058739

Browse files
committed
PTHMINT-41: Fix error ANN003 occurences
1 parent accf037 commit b058739

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
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-
"ANN003",
102101
"ANN101", # missing type annotation for self
103102
"ANN102", # missing type annotation for cls
104103
"ANN201",

src/multisafepay/api/base/listings/listing.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ class Listing(Generic[T], BaseModel):
2424

2525
data: List[T]
2626

27-
def __init__(self, data: List[Any], class_type: type, **kwargs):
27+
def __init__(
28+
self,
29+
data: list[Any],
30+
class_type: type,
31+
**kwargs: dict[str, Any],
32+
):
2833
"""
2934
Initialize the Listing with data and a class type.
3035

src/multisafepay/api/base/response/custom_api_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CustomApiResponse(ApiResponse):
2222

2323
data: Optional[Any]
2424

25-
def __init__(self: "CustomApiResponse", data: Optional[Any], **kwargs):
25+
def __init__(self: "CustomApiResponse", data: Optional[Any], **kwargs: dict[str, Any]):
2626
"""
2727
Initialize the CustomApiResponse with optional data and additional keyword arguments.
2828

0 commit comments

Comments
 (0)