PyCQA / baron

IDE allow you to refactor code, Baron allows you to write refactoring code.
http://baron.pycqa.org
GNU Lesser General Public License v3.0
289 stars 50 forks source link

Support PEP3115 #136

Open boxed opened 6 years ago

boxed commented 6 years ago

https://www.python.org/dev/peps/pep-3115/

You get a parser error when trying to parse this simple code: class Foo(Bar, metaclass=Baz): pass

boxed commented 6 years ago

Test:

def test_metaclass():
    check_dumps("class Foo(Bar, Quux, metaclass=Baz, foo=bar): pass\n")
    check_dumps("class Foo(*bases, **kwargs): pass\n")