9 lines
152 B
Python
9 lines
152 B
Python
from typing import Generic, TypeVar
|
|
from pydantic import BaseModel
|
|
|
|
T = TypeVar('T')
|
|
|
|
class ReturnValue(BaseModel, Generic[T]):
|
|
status: int
|
|
data: T
|