19 lines
411 B
Python
19 lines
411 B
Python
from typing import TypeVar
|
|
|
|
from rainbowadn.hashing.rainbow_factory import RainbowFactory
|
|
|
|
__all__ = ('Mentionable',)
|
|
|
|
Mentioned = TypeVar('Mentioned')
|
|
|
|
|
|
class Mentionable:
|
|
def __bytes__(self):
|
|
raise NotImplementedError
|
|
|
|
def __factory__(self: Mentioned) -> RainbowFactory[Mentioned]:
|
|
raise NotImplementedError
|
|
|
|
def __topology_hash__(self) -> bytes:
|
|
raise NotImplementedError
|