mirror of
https://github.com/correl/typesafe-monads.git
synced 2024-11-28 19:19:55 +00:00
10 lines
245 B
Python
10 lines
245 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]:
|
|
raise NotImplementedError
|