File: decorators.expect.txt

package info (click to toggle)
highlight.js 10.7.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,332 kB
  • sloc: javascript: 41,059; makefile: 157; python: 29; sh: 20
file content (31 lines) | stat: -rw-r--r-- 1,985 bytes parent folder | download
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
<span class="hljs-meta">@foo</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">bar</span>():</span>
    <span class="hljs-keyword">pass</span>

<span class="hljs-meta">@foo  </span><span class="hljs-comment"># bar</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">baz</span>():</span>
    <span class="hljs-keyword">pass</span>

<span class="hljs-meta">@foo.bar.baz</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">qux</span>():</span>
    <span class="hljs-keyword">pass</span>

<span class="hljs-meta">@surround_with(<span class="hljs-params"><span class="hljs-string">&quot;#&quot;</span>, repeat=<span class="hljs-number">3</span></span>)</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">text</span>():</span>
    <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;hi!&quot;</span>

<span class="hljs-meta">@py38.style</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">func</span>():</span>
    <span class="hljs-keyword">pass</span>

<span class="hljs-meta">@py[<span class="hljs-string">&quot;3.9&quot;</span>].style</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">func</span>():</span>
    <span class="hljs-keyword">pass</span>

<span class="hljs-meta">@py[<span class="hljs-number">3.9</span>].style</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">func</span>():</span>
    <span class="hljs-keyword">pass</span>

<span class="hljs-meta">@<span class="hljs-number">2</span> + <span class="hljs-number">2</span> == <span class="hljs-number">5</span></span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">func</span>():</span>
    <span class="hljs-keyword">pass</span>