mastodon-ld/masto_ld/models/thread.py

12 lines
270 B
Python
Raw Normal View History

2022-11-13 02:27:32 +00:00
from pydantic import BaseModel
from typing import List, Optional, Union
from masto_ld.models.post import Status
class Thread(BaseModel):
"""
Container for multiple posts, allowing appending, resolving of the last subject, etc.
"""
posts: List[Status]