Debian Codegraph @

tests/roots/test-domain-py/module.rst

raw
1 module
2 ======
3
4 .. py:module:: module_a.submodule
5
6 * Link to :py:class:`ModTopLevel`
7
8 .. py:class:: ModTopLevel
9
10 * Link to :py:meth:`mod_child_1`
11 * Link to :py:meth:`ModTopLevel.mod_child_1`
12
13 .. py:method:: ModTopLevel.mod_child_1
14
15 * Link to :py:meth:`mod_child_2`
16
17 .. py:method:: ModTopLevel.mod_child_2
18
19 * Link to :py:meth:`module_a.submodule.ModTopLevel.mod_child_1`
20
21 .. py:property:: ModTopLevel.prop
22
23 * Link to :py:attr:`prop attribute <.prop>`
24 * Link to :py:meth:`prop method <.prop>`
25
26 .. py:currentmodule:: None
27
28 .. py:class:: ModNoModule
29
30 .. py:module:: module_b.submodule
31
32 * Link to :py:class:`ModTopLevel`
33
34 .. py:class:: ModTopLevel
35
36 * Link to :py:class:`ModNoModule`
37
38 .. py:function:: foo(x, y)
39
40 :param x: param x
41 :type x: int
42 :param y: param y
43 :type y: tuple(str, float)
44 :rtype: list
45
46 .. py:attribute:: attr1
47
48 :type: ModTopLevel
49
50 .. py:attribute:: attr2
51
52 :type: :doc:`index`
53
54 .. py:module:: exceptions
55
56 .. py:exception:: Exception
57
58 .. py:module:: object
59
60 .. py:function:: sum()
61
62 .. py:data:: test
63 :type: typing.Literal[2]
64
65 .. py:data:: test2
66 :type: typing.Literal[-2]
67
68 .. py:type:: MyType1
69 :canonical: list[int | str]