Open boxed opened 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
class Foo(Bar, metaclass=Baz): pass
Test:
def test_metaclass(): check_dumps("class Foo(Bar, Quux, metaclass=Baz, foo=bar): pass\n") check_dumps("class Foo(*bases, **kwargs): pass\n")
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