Skip to content

Commit 086793b

Browse files
fix ruff error
1 parent 0982985 commit 086793b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

aws_lambda_powertools/event_handler/middlewares/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __name__(self) -> str: # noqa A003
1919
...
2020

2121

22-
class BaseMiddlewareHandler(Generic[EventHandlerInstance], ABC):
22+
class BaseMiddlewareHandler(ABC, Generic[EventHandlerInstance]):
2323
"""Base implementation for Middlewares to run code before and after in a chain.
2424
2525

aws_lambda_powertools/utilities/kafka/schema_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(
6060
value_schema_type: Literal["AVRO", "PROTOBUF", "JSON"] | None = None,
6161
value_schema: str | None = None,
6262
value_output_serializer: Any | None = None,
63-
key_schema_type: Literal["AVRO", "PROTOBUF", "JSON", None] | None = None,
63+
key_schema_type: Literal["AVRO", "PROTOBUF", "JSON"] | None = None,
6464
key_schema: str | None = None,
6565
key_output_serializer: Any | None = None,
6666
):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from typing import Literal
22

3-
TransformOptions = Literal["json", "binary", "auto", None]
3+
TransformOptions = Literal["json", "binary", "auto"] | None

0 commit comments

Comments
 (0)