Skip to content

Add support for Class Decorators #64

@amtriathlon

Description

@amtriathlon

According to http://www.python.org/dev/peps/pep-3129/ this feature is similar to function decorators, for example this snippet:

@foo
@bar
class A:
  pass

would be desugared to;

class A:
  pass
A = foo(bar(A))

The implementation seems to be very simple, except for the fact decorators should be applied after the class is fully built, which in our class desugar strategy means after the attributes in the class body are set.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions