Files
openide/python/testData/lineMarkers/LineMarkersOnDecoratedDeclarations.py
Mikhail Golubev 54563b5b5b PY-4311 Don't display method separators for nested functions and classes
I also changed the implementation so that only the very first tokens of
declarations are considered as anchors for method separators. Otherwise,
they start to flicker as their corresponding class and function elements
are often not re-evaluated by LineMarkerProviders on changes in a document.

GitOrigin-RevId: 90488c4bd1c662634c4b6681ce78b1b64c503782
2020-09-16 17:53:05 +00:00

13 lines
102 B
Python

def decorator(x):
return x
@decorator
class MyClass:
pass
@decorator
def func():
pass