Debian Codegraph @

tests/roots/test-ext-viewcode-find/not_a_package/submodule.py

raw
1 """
2 submodule
3 """ # NoQA: D212
4
5 raise RuntimeError('This module should not get imported') # NoQA: EM101,TRY003
6
7
8 def decorator(f):
9 return f
10
11
12 @decorator
13 def func1(a, b):
14 """
15 this is func1
16 """ # NoQA: D212
17 return a, b
18
19
20 @decorator
21 class Class1:
22 """this is Class1"""
23
24
25 class Class3:
26 """this is Class3"""
27
28 class_attr = 42
29 """this is the class attribute class_attr"""