| 1 | ## @package pyexample |
| 2 | # Documentation for this module. |
| 3 | # |
| 4 | # More details. |
| 5 | |
| 6 | |
| 7 | ## Documentation for a function. |
| 8 | # |
| 9 | # More details. |
| 10 | from __future__ import annotations |
| 11 | |
| 12 | |
| 13 | def func(): |
| 14 | pass |
| 15 | |
| 16 | |
| 17 | ## Documentation for a class. |
| 18 | # |
| 19 | # More details. |
| 20 | class PyClass: |
| 21 | ## The constructor. |
| 22 | def __init__(self): |
| 23 | self._memVar = 0 |
| 24 | |
| 25 | ## Documentation for a method. |
| 26 | # @param self The object pointer. |
| 27 | def PyMethod(self): |
| 28 | pass |
| 29 | |
| 30 | ## A class variable. |
| 31 | classVar = 0 |
| 32 | |
| 33 | ## @var _memVar |
| 34 | # a member variable |