docs: not implemented errors

Signed-off-by: Alexander Tkachev <sasha64sasha@gmail.com>
This commit is contained in:
Alexander Tkachev 2022-07-24 21:59:53 +03:00
parent ecf9418a1b
commit b9e8763594
1 changed files with 13 additions and 0 deletions

View File

@ -68,9 +68,22 @@ class CloudEvent(abc.ABC):
pass
def __setitem__(self, key: str, value: typing.Any) -> None:
"""
:param key: Event attribute name to change the value of.
:param value: The new event attribute value
"""
# requiring the user to implement the setting of the value because the read
# model is READ-ONLY.
# The abstract class SHOULD NOT know how is the concrete class is implemented
raise NotImplementedError()
def __delitem__(self, key: str) -> None:
"""
:param key: Event attribute name to delete the value of.
"""
# requiring the user to implement the deletion of the value because the read
# model is READ-ONLY.
# The abstract class SHOULD NOT know how is the concrete class is implemented
raise NotImplementedError()
def __eq__(self, other: typing.Any) -> bool: