def isunauthenticated(func):
 return getattr(func, 'unauthenticated', False)

def isunauthenticated ( func ) : return getattr ( func , 'unauthenticated' , False )
checks to see if the function is marked as not requiring authentication with the @unauthenticated decorator .