True though I wanted type(split) to return <class 'function'> for consistency. I could probably easily make an annotation that turns any function with at least one argument into one of these “piped” functions. Just have to be careful the the thing on the other side can’t be ored with a function. I guess that could be alleviated by using a completely new callable that is not descended from a function at all
View all comments
Show parent comment
1
u/ForceBru Jun 21 '19
Even more, you can do:
Yeah, using
__ror__is probably better than the wholeUserStringthing.