The "return" in #python function annotations can't overlap the parameter names because "return" is a keyword. This is either a stroke of genius or an egregious hack. I'm not sure which ;-)
>>> f.__annotations__
{'a': <class 'int'>, 'b': <class 'float'>, 'return': <class 'str'>}
-
-
>>> def f(**kwargs): ... print(kwargs) >>> f(**{'return': True}) {'return': True}
-
Is that a monad?
-
It's a comonad
-
You mean co-monad?
End of conversation
New conversation -
-
-
Or both :)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.