9 lines
195 B
Python
9 lines
195 B
Python
from typing import Callable
|
|
|
|
from .typeexpr import TypeExpr
|
|
|
|
|
|
class TypeRouter[S, R]:
|
|
def add(self, typ: TypeExpr, mtd: Callable[[S, TypeExpr], R]) -> None:
|
|
raise NotImplementedError
|