Let's say that I have function foo
that returns a single output.
I do not make use of that output in the caller of the function foo
.
What is the most elegant way to handle this?
r = foo()
# r is not used anywhere later.
Or should I just not do any assignment when calling foo()
?
The only thing is that I probably get lint warning if I do this.
foo()
....