We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f994f86 commit c76b318Copy full SHA for c76b318
tests/snippets/function.py
@@ -5,8 +5,35 @@ def foo():
5
assert foo() == 42
6
assert foo.__doc__ == "test"
7
8
-
9
def my_func(a,):
10
return a+2
11
12
assert my_func(2) == 4
+
13
14
+def f1():
15
16
+ """test1"""
17
+ pass
18
19
+assert f1.__doc__ == "test1"
20
21
+def f2():
22
+ '''test2'''
23
24
25
+assert f2.__doc__ == "test2"
26
27
+def f3():
28
+ """
29
+ test3
30
31
32
33
+assert f3.__doc__ == "\n test3\n "
34
35
+def f4():
36
+ "test4"
37
38
39
+assert f4.__doc__ == "test4"
0 commit comments