refactor Filter class and add Filter test suite (#33)

This commit is contained in:
kdmukai
2023-01-26 07:39:04 -06:00
committed by GitHub
parent b8f2d79d2c
commit 8eda01180c
4 changed files with 513 additions and 37 deletions

View File

@@ -28,7 +28,7 @@ class Event():
signature: str=None) -> None:
if not isinstance(content, str):
raise TypeError("Argument 'content' must be of type str")
self.public_key = public_key
self.content = content
self.created_at = created_at or int(time.time())