refactor: use anycloudevent for generics
Signed-off-by: Alexander Tkachev <sasha64sasha@gmail.com>
This commit is contained in:
parent
a96bd6cdde
commit
3845aa7295
|
@ -14,7 +14,7 @@ class CloudEvent(abc.ABC):
|
||||||
cls,
|
cls,
|
||||||
attributes: typing.Dict[str, typing.Any],
|
attributes: typing.Dict[str, typing.Any],
|
||||||
data: typing.Optional[typing.Any],
|
data: typing.Optional[typing.Any],
|
||||||
) -> "CloudEvent":
|
) -> "AnyCloudEvent":
|
||||||
"""
|
"""
|
||||||
Factory function.
|
Factory function.
|
||||||
We SHOULD NOT use the __init__ function as the factory because
|
We SHOULD NOT use the __init__ function as the factory because
|
||||||
|
|
Loading…
Reference in New Issue