diff --git a/cloudevents/pydantic/v1/event.py b/cloudevents/pydantic/v1/event.py index cd38701..d18736a 100644 --- a/cloudevents/pydantic/v1/event.py +++ b/cloudevents/pydantic/v1/event.py @@ -186,7 +186,7 @@ class CloudEvent(abstract.CloudEvent, BaseModel): # type: ignore ) attributes = {k.lower(): v for k, v in attributes.items()} kwargs.update(attributes) - super(CloudEvent, self).__init__(data=data, **kwargs) + super().__init__(data=data, **kwargs) class Config: extra: str = "allow" # this is the way we implement extensions diff --git a/cloudevents/pydantic/v2/event.py b/cloudevents/pydantic/v2/event.py index 17ed8d9..890c03d 100644 --- a/cloudevents/pydantic/v2/event.py +++ b/cloudevents/pydantic/v2/event.py @@ -134,7 +134,7 @@ class CloudEvent(abstract.CloudEvent, BaseModel): # type: ignore ) attributes = {k.lower(): v for k, v in attributes.items()} kwargs.update(attributes) - super(CloudEvent, self).__init__(data=data, **kwargs) + super().__init__(data=data, **kwargs) model_config = ConfigDict( extra="allow", # this is the way we implement extensions