I am trying to fix all pylint errors and pylint warnings in a project. but I keep getting the error when I install the metaclass ( https://www.python.org/dev/peps/pep-3115/ ).
here is my sample code:
#!/usr/bin/env python3 class MyMeta(type): pass class MyObject(object, metaclass=MyMeta):
the error simply says "invalid syntax". I use pylint through the vim plugin syntax ( https://github.com/scrooloose/syntastic ).
my version of pylint (pylint -version):
pylint 1.4.3, astroid 1.3.6, common 0.63.2 Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1]
my syntax plugin has been updated with github.
any ideas?
source share