This commit is contained in:
@ -1,11 +1,11 @@
|
||||
from typing import TypedDict
|
||||
|
||||
|
||||
class Notification(TypedDict):
|
||||
id: int
|
||||
title: str
|
||||
description: str
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class Notifications(TypedDict):
|
||||
notifications: list[Notification]
|
||||
notifications: list[dict[str, str | bool]]
|
||||
|
||||
|
||||
class Complaints(BaseModel):
|
||||
complaints: str
|
||||
|
||||
Reference in New Issue
Block a user