Files
openide/python/testData/stubs/DecoratorQualifiedNames.py
Mikhail Golubev a717a7c145 PY-41305 Update PyDecorator API and docs for PEP 614
- Added PyDecorator.getExpression() to reflect that in Python 3.9
an arbitrary expression can be used after "@". Reused it where possible
in the implementation.
- Removed hasPlainReferenceCallee() in favor of existing getQualifiedName().
Updated javadoc for the latter to clarify how it handles non-trivial callees.
- Added PSI stub tests to make sure that right values are still persisted
with the new flexible decorator grammar.

GitOrigin-RevId: 8109b834c8d257c72f6f6e3c0ce5005060a2b971
2020-06-20 17:29:44 +03:00

10 lines
85 B
Python

@
@foo
@foo()
@foo.bar
@foo.bar(42)
@(foo)
@foo[42]
@foo[42].bar
def func():
pass