mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-07-30 23:38:02 -04:00
11 lines
206 B
Python
11 lines
206 B
Python
from dataclasses import dataclass
|
|
from typing import Generic, Optional, TypeVar
|
|
|
|
T = TypeVar("T")
|
|
|
|
|
|
@dataclass
|
|
class ProviderResult(Generic[T]):
|
|
data: Optional[T] = None
|
|
error: Optional[str] = None
|