MagicPython icon indicating copy to clipboard operation
MagicPython copied to clipboard

Decorator Syntax Errors

Open dg-pb opened this issue 2 years ago • 0 comments

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

dg-pb avatar Dec 08 '23 05:12 dg-pb