rainbowadn/rainbowadn/core/origin.py
2022-07-10 21:14:02 +03:00

17 lines
380 B
Python

from typing import Generic, TypeVar
from .rainbow_factory import *
__all__ = ('Origin',)
Mentioned = TypeVar('Mentioned')
class Origin(Generic[Mentioned]):
def __init__(self, factory: RainbowFactory[Mentioned]):
assert isinstance(factory, RainbowFactory)
self.factory = factory
async def resolve(self) -> Mentioned:
raise NotImplementedError