masto-bridges/masto_git_bridge/models.py

17 lines
312 B
Python
Raw Normal View History

2022-11-08 03:13:35 +00:00
from pydantic import BaseModel
2022-11-08 06:13:05 +00:00
class List(BaseModel):
"""A mastodon list!"""
id: str
title: str
class Config:
extra = 'ignore'
2022-11-08 03:13:35 +00:00
class Account(BaseModel):
"""Not transcribing full model now, just using to check"""
acct: str
id: int
class Config:
extra = 'ignore'