def format_funcall(fun: Union[Callable, str], args: tuple, kwargs: dict) -> str: from amino.map import Map kw = Map(kwargs).map2('{}={!r}'.format) a = list(map(repr, args)) + list(kw) args_fmt = ', '.join(a) return '{}({})'.format(lambda_str(fun), args_fmt)
def _instances(self): from amino.map import Map return Map({ Monad: LazyListMonad(), Traverse: LazyListTraverse(), Foldable: LazyListFoldable(), Zip: LazyListZip(), })
def _instances(self) -> Map: from amino.map import Map return Map( { Monad: EitherMonad(), Optional: EitherOptional(), Traverse: EitherTraverse(), Foldable: EitherFoldable(), Zip: EitherZip(), } )
def _instances(self) -> 'amino.map.Map': from amino.map import Map return Map({Monad: TmuxIOMonad()})
def vars(self): return Map(os.environ)
def _instances(self) -> Dict[type, TypeClass]: from amino import Map return Map({self.tpe: self.instance})
def instances(self) -> Dict[type, TypeClass]: from amino.map import Map from amino.tc.tap import Tap from amino.tc.show import Show return Map({Show: Show(), Tap: Tap()})
def _override_instances(self) -> Dict[type, TypeClass]: from amino.map import Map return Map()