File: py-decorators.inc

package info (click to toggle)
sphinx 5.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 22,912 kB
  • sloc: python: 75,824; javascript: 14,164; perl: 420; makefile: 180; sh: 57; xml: 19; ansic: 1
file content (15 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (38)
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