redditwarp.util.passthru#

Provides functions that makes functions more decorator-friendly.

redditwarp.util.passthru.passthru(func: Callable[[T], None]) Callable[[T], T][source]#

Make a function that takes an argument and returns None return the argument that was given to it.

redditwarp.util.passthru.passover(func: Callable[[T], object]) Callable[[T], T][source]#

Same as passthru() but accept any function returning any type instead of just None.