Something like: Point -> var_name = namedtuple(var_name, 'xy') ??? Take into acount, `->` operatior is not allowed into regular Python code, only in function annotations as annotation for result value. Maybe that close enough to our case?