mirror of
https://github.com/correl/typesafe-monads.git
synced 2024-11-28 11:09:58 +00:00
10 lines
265 B
Python
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
|