This week at I went on a bit of a side quest investigating why pytest collection was so slow.
Just running from our project root was taking a painfully ...
This is a function definition, not where it's called; any number of things can happen between these statements running.
Second, multiple return statements is not unusual when there is control logic, i.e. if statements.