Author here: there's no notation, the compiler infers that from function body. If there are more parameters, the result is just an union of those, for example:
def choose(a: list[Reading], b: list[Reading], choose_a: bool) -> Reading:
if choose_a:
return a[0]
return b[0]
the return borrows from either a or b, the caller gets a warning when b is modified while the borrow is held.
OTOH returning a reference to an local object is an error; locals can be returned by ownership-passing (Own[Reading] -- NRVO in C++).
Currently the analysis happens on AST level, so it has it's drawback. I'm working on a CFG based MIR, to make this less coarse, though that's still a while since it's ready.