refactor: use anycloudevent for generics

Signed-off-by: Alexander Tkachev <sasha64sasha@gmail.com>
This commit is contained in:
Alexander Tkachev 2022-07-24 21:48:38 +03:00
parent a96bd6cdde
commit 3845aa7295
1 changed files with 1 additions and 1 deletions

View File

@ -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