typesafe-monads/monads/functor.py
2018-10-12 14:54:03 -04:00

10 lines
265 B
Python

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]: # pragma: no cover
raise NotImplementedError