Skip to content

Commit 1db3f6c

Browse files
committed
Add ref test for linking func arg default value (#140)
1 parent bb8381c commit 1db3f6c

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
test_project
22
bar
3-
Foo
43
target
54
bar
65
target
7-
arg
8-
Foo
96
# split
107
# split
118
Test project
129
============
1310

1411
.. code:: python
1512

16-
from test_project import bar, Foo
13+
from test_project import bar
1714

1815
target = bar()
1916
target
2017

21-
def f(arg: Foo):
22-
pass
23-
2418
.. automodule:: test_project
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
test_project
2+
Foo
3+
arg
4+
Foo
5+
Foo
6+
# split
7+
# split
8+
Test project
9+
============
10+
11+
.. code:: python
12+
13+
from test_project import Foo
14+
15+
def f(arg: Foo = Foo()):
16+
pass
17+
18+
.. automodule:: test_project

0 commit comments

Comments
 (0)