python-piped-api-client/piped_api/models/__init__.py

16 lines
313 B
Python
Raw Normal View History

2022-02-26 09:35:58 +00:00
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