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}
1 reply 0 retweets 1 like -
Is that a monad?
1 reply 0 retweets 0 likes -
It's a comonad
1 reply 0 retweets 0 likes
You mean co-monad?
12:19 PM - 16 Oct 2018
0 replies
0 retweets
0 likes
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.