chore: mypy fixes

This commit is contained in:
Vlad Stan 2023-02-15 18:18:46 +02:00
parent d0f38346e3
commit bc1af610db
7 changed files with 27 additions and 11 deletions

View file

@ -216,7 +216,7 @@ class NostrEvent(BaseModel):
def serialize_response(self, subscription_id):
return [NostrEventType.EVENT, subscription_id, dict(self)]
def tag_values(self, tag_name: str) -> List[List[str]]:
def tag_values(self, tag_name: str) -> List[str]:
return [t[1] for t in self.tags if t[0] == tag_name]
@classmethod