`return True` is a syntactic end of block, and by python indent requirements also needs to be a semantic end of block. It was seen as a syntactic end of block.

Whereas `y = True` can be anywhere in the syntax, as well as at the end of the a semantic block. This is more precise and catches the regression.