Skip to content

Commit e90f919

Browse files
committed
use modern super syntax
Signed-off-by: Yurii Serhiichuk <[email protected]>
1 parent cf26750 commit e90f919

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cloudevents/pydantic/v1/event.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def __init__( # type: ignore[no-untyped-def]
186186
)
187187
attributes = {k.lower(): v for k, v in attributes.items()}
188188
kwargs.update(attributes)
189-
super(CloudEvent, self).__init__(data=data, **kwargs)
189+
super().__init__(data=data, **kwargs)
190190

191191
class Config:
192192
extra: str = "allow" # this is the way we implement extensions

cloudevents/pydantic/v2/event.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __init__( # type: ignore[no-untyped-def]
134134
)
135135
attributes = {k.lower(): v for k, v in attributes.items()}
136136
kwargs.update(attributes)
137-
super(CloudEvent, self).__init__(data=data, **kwargs)
137+
super().__init__(data=data, **kwargs)
138138

139139
model_config = ConfigDict(
140140
extra="allow", # this is the way we implement extensions

0 commit comments

Comments
 (0)