Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Enforce decorator ordering #2

Open
iamdefinitelyahuman opened this issue Nov 2, 2020 · 0 comments
Open

Enforce decorator ordering #2

iamdefinitelyahuman opened this issue Nov 2, 2020 · 0 comments

Comments

@iamdefinitelyahuman
Copy link

It would be nice to automatically re-order function decorators. In my opinion the best sequence is mutability, visibility, re-entrancy:

@view
@external
@nonreentrant('lock')
def foo():
    ...
@spinoch spinoch mentioned this issue Nov 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant