Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decorator Syntax Errors #261

Open
dg-pb opened this issue Dec 8, 2023 · 0 comments
Open

Decorator Syntax Errors #261

dg-pb opened this issue Dec 8, 2023 · 0 comments

Comments

@dg-pb
Copy link

dg-pb commented Dec 8, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant