Skip to content

Decorator Syntax Errors #261

Open
Open
@dg-pb

Description

@dg-pb

So decorators have very strict syntax, while in reality, any valid python expression can be used when decorating. See github's highlighting below too.

  • Editor name and version: Sublime Text 4152
  • Platform: MacOSX
  • Color scheme: Custom, but any
  • MagicPython version: v.1.1.1
  • A sreenshot:
  • 5-10 lines of surrounding code:
class A:
    @D[C][prtl]
    def a(self):
        pass

    @a | b | c
    def a(self):
        pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions