typesafe-monads/monads/functor.py

11 lines
245 B
Python
Raw Normal View History

2018-10-11 05:26:00 +00:00
from __future__ import annotations
from typing import Any, Callable, Generic, TypeVar
T = TypeVar("T")
S = TypeVar("S")
class Functor(Generic[T]):
def map(self, function: Callable[[T], S]) -> Functor[S]:
2018-10-11 05:26:00 +00:00
raise NotImplementedError