summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-ext-viewcode/spam/mod1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/roots/test-ext-viewcode/spam/mod1.py')
-rw-r--r--tests/roots/test-ext-viewcode/spam/mod1.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/roots/test-ext-viewcode/spam/mod1.py b/tests/roots/test-ext-viewcode/spam/mod1.py
new file mode 100644
index 0000000..22cc1a0
--- /dev/null
+++ b/tests/roots/test-ext-viewcode/spam/mod1.py
@@ -0,0 +1,30 @@
+"""
+mod1
+"""
+
+
+def decorator(f):
+ return f
+
+
+@decorator
+def func1(a, b):
+ """
+ this is func1
+ """
+ return a, b
+
+
+@decorator
+class Class1(object):
+ """
+ this is Class1
+ """
+
+
+class Class3(object):
+ """
+ this is Class3
+ """
+ class_attr = 42
+ """this is the class attribute class_attr"""