-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathdecorators1.py
71 lines (68 loc) · 7.02 KB
/
decorators1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@some_decorator # with comment
@some.class.decorator
@some_decorator(1)
@some.decorator (1, 3)
@some_decorator(a=2, b={'q': 42}, **kwargs)
@classmethod
def decorated(a): pass
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
some_decorator : entity.name.function.decorator.python, meta.function.decorator.python, source.python
: meta.function.decorator.python, source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
with comment : comment.line.number-sign.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
some : entity.name.function.decorator.python, meta.function.decorator.python, source.python
. : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.separator.period.python, source.python
class : keyword.control.flow.python, meta.function.decorator.python, source.python
. : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.separator.period.python, source.python
decorator : entity.name.function.decorator.python, meta.function.decorator.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
some_decorator : entity.name.function.decorator.python, meta.function.decorator.python, source.python
( : meta.function.decorator.python, punctuation.definition.arguments.begin.python, source.python
1 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function.decorator.python, source.python
) : meta.function.decorator.python, punctuation.definition.arguments.end.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
some : entity.name.function.decorator.python, meta.function.decorator.python, source.python
. : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.separator.period.python, source.python
decorator : entity.name.function.decorator.python, meta.function.decorator.python, source.python
: meta.function.decorator.python, source.python
( : meta.function.decorator.python, punctuation.definition.arguments.begin.python, source.python
1 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function.decorator.python, source.python
, : meta.function-call.arguments.python, meta.function.decorator.python, punctuation.separator.arguments.python, source.python
: meta.function-call.arguments.python, meta.function.decorator.python, source.python
3 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function.decorator.python, source.python
) : meta.function.decorator.python, punctuation.definition.arguments.end.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
some_decorator : entity.name.function.decorator.python, meta.function.decorator.python, source.python
( : meta.function.decorator.python, punctuation.definition.arguments.begin.python, source.python
a : meta.function-call.arguments.python, meta.function.decorator.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function.decorator.python, source.python
2 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function.decorator.python, source.python
, : meta.function-call.arguments.python, meta.function.decorator.python, punctuation.separator.arguments.python, source.python
: meta.function-call.arguments.python, meta.function.decorator.python, source.python
b : meta.function-call.arguments.python, meta.function.decorator.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function.decorator.python, source.python
{ : meta.function-call.arguments.python, meta.function.decorator.python, punctuation.definition.dict.begin.python, source.python
' : meta.function-call.arguments.python, meta.function.decorator.python, punctuation.definition.string.begin.python, source.python, string.quoted.single.python
q : meta.function-call.arguments.python, meta.function.decorator.python, source.python, string.quoted.single.python
' : meta.function-call.arguments.python, meta.function.decorator.python, punctuation.definition.string.end.python, source.python, string.quoted.single.python
: : meta.function-call.arguments.python, meta.function.decorator.python, punctuation.separator.dict.python, source.python
: meta.function-call.arguments.python, meta.function.decorator.python, source.python
42 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function.decorator.python, source.python
} : meta.function-call.arguments.python, meta.function.decorator.python, punctuation.definition.dict.end.python, source.python
, : meta.function-call.arguments.python, meta.function.decorator.python, punctuation.separator.arguments.python, source.python
: meta.function-call.arguments.python, meta.function.decorator.python, source.python
** : keyword.operator.unpacking.arguments.python, meta.function-call.arguments.python, meta.function.decorator.python, source.python
kwargs : meta.function-call.arguments.python, meta.function.decorator.python, source.python
) : meta.function.decorator.python, punctuation.definition.arguments.end.python, source.python
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
classmethod : meta.function.decorator.python, source.python, support.type.python
def : meta.function.python, source.python, storage.type.function.python
: meta.function.python, source.python
decorated : entity.name.function.python, meta.function.python, source.python
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
a : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
: : meta.function.python, punctuation.section.function.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python