typingsfix

This commit is contained in:
2022-07-21 19:11:39 +03:00
parent 2ff715eb50
commit 817002b17b
7 changed files with 18 additions and 17 deletions

View File

@@ -38,7 +38,7 @@ class Reaction(Base):
oid: str = Column(String, nullable=True, comment="Old ID")
@property
async def stat(self) -> dict:
async def stat(self) -> Dict:
reacted = 0
try:
with local_session() as session:

View File

@@ -61,7 +61,7 @@ class Shout(Base):
oid: str = Column(String, nullable=True)
@property
async def stat(self) -> dict:
async def stat(self) -> Dict:
return {
"viewed": await ViewedStorage.get_shout(self.slug),
"reacted": await ReactionsStorage.by_shout(self.slug)