The following code
class base:
var: int
doesn't seem to work with python2.7
and gives this error:
var: int
^
SyntaxError: invalid syntax
It seems I need python3.6 or later to use attribute annotations. I am wondering how I can achieve similar functionality for python2.7?