class UserProfile:
    pass
    # trailing comment

#leading comment
#noinspection PyUnusedLocal
def foo(sender):
    pass

class UserProfile:
    pass
    # trailing comment

#leading comment
#noinspection PyUnusedLocal
def foo(sender):
    pass

# trailing comment #leading comment #noinspection PyUnusedLocal