From 3845aa72951bfbe17177360cb91b9fa70602be20 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Sun, 24 Jul 2022 21:48:38 +0300 Subject: [PATCH] refactor: use anycloudevent for generics Signed-off-by: Alexander Tkachev --- cloudevents/abstract/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudevents/abstract/event.py b/cloudevents/abstract/event.py index d0d4b7f..1bf65b1 100644 --- a/cloudevents/abstract/event.py +++ b/cloudevents/abstract/event.py @@ -14,7 +14,7 @@ class CloudEvent(abc.ABC): cls, attributes: typing.Dict[str, typing.Any], data: typing.Optional[typing.Any], - ) -> "CloudEvent": + ) -> "AnyCloudEvent": """ Factory function. We SHOULD NOT use the __init__ function as the factory because