Per MicroPython code style, this brace should be at the end of previous line (just see other functions before and after).