summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-ext-viewcode-find/not_a_package/submodule.py
blob: ba8be78de5f81d51c686e97f54d0df082b7198db (plain)
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
"""
submodule
"""
raise RuntimeError('This module should not get imported')


def decorator(f):
    return f


@decorator
def func1(a, b):
    """
    this is func1
    """
    return a, b


@decorator
class Class1:
    """
    this is Class1
    """


class Class3:
    """
    this is Class3
    """
    class_attr = 42
    """this is the class attribute class_attr"""