Open bandophahita opened 10 months ago
To add a little more context;
beat
wraps the function which might return something but it's very difficult to know exactly when we should log None
was returned.
None
. (e.g. def foo() -> str | None:
)While the above should suffice in most cases, there could be times where users still wants to log the fact that None
returned and either they do not annotate or the annotation specifically designates the return is always None
(e.g. def foo() -> None:
).
In those rare cases it would be good if they had the ability to tell beat
to log None
was returned anyway.
beat
should have an argument that tells it when to log the return values if they are None.