summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-toctree-domain-objects/domains.rst
blob: 61467cf60e1ca4f349fc4ee251c620041b640282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
test-domain-objects
===================

.. py:module:: hello

.. py:function:: world() -> str

   Prints "Hello, World!" to stdout

.. py:class:: HelloWorldPrinter

   Controls printing of hello world

   .. py:method:: set_language()

      Sets the language of the HelloWorldPrinter instance

   .. py:attribute:: output_count

      Count of outputs of "Hello, World!"

   .. py:method:: print_normal()
      :async:
      :classmethod:

      Prints the normal form of "Hello, World!"

   .. py:method:: print()

      Prints "Hello, World!", including in the chosen language

.. py:function:: exit()
   :module: sys

   Quits the interpreter

.. js:function:: fetch(resource)

   Fetches the given resource, returns a Promise