summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-directive-code/py-decorators.inc
blob: 012d5d57246f9295d73e09041dfa3a147b3268d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Literally included file using Python highlighting

@class_decorator
@other_decorator()
class TheClass(object):

    @method_decorator
    @other_decorator()
    def the_method():
        pass

@function_decorator
@other_decorator()
def the_function():
    pass