plugin.video.piped/lib/piped_api/models/__init__.py
2024-01-16 05:08:13 -05:00

15 lines
313 B
Python

import typing as t
class BasePipedModel:
"""
Base class for all Piped models.
"""
def __init__(self, data: t.Dict[str, t.Any]) -> None:
"""
### Parameters:
- `data` - The JSON (`dict`) data to initialize the model with.
"""
self.data = data