File: child_f.py

package info (click to toggle)
python-pdoc 16.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,080 kB
  • sloc: python: 5,260; javascript: 1,156; makefile: 18; sh: 3
file content (20 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""child_f docstr"""

from . import subpackage


class F:
    """
    This class defined in .child_f links to subpackage's G which is re-exposed as `G` directly in demopackage.

    We want to make sure that these links render:

    - demopackage.G
    - demopackage.subpackage.G
    - demopackage.subpackage.child_g.G
    """

    def g(self) -> subpackage.G:
        return subpackage.G()

    G = subpackage.G