I have a couple of simple functions that don’t take any arguments, but just return an object.
#| export
def sod_now() -> float:
"""
Returns the seconds of the day for right now.
Returns
-------
float
Seconds of the day
"""
return np.fmod(soe_now(), 86400.0)
When I run show_doc( sod_now ) I get:
sod_now
sod_now ()
Returns the seconds of the day for right now.
Which doesn’t highlight the return like it does when there are parameters for some reason.