File: docstrings.py

package info (click to toggle)
python-invoke 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,856 kB
  • sloc: python: 15,986; makefile: 24
file content (30 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (2)
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
from invoke import task


@task
def no_docstring(c):
    pass


@task
def one_line(c):
    """foo"""


@task
def two_lines(c):
    """foo
    bar
    """


@task
def leading_whitespace(c):
    """
    foo
    """


@task(aliases=("a", "b"))
def with_aliases(c):
    """foo"""