top_level_reimports API documentation

# top_level_reimports

Test that objects re-exposed from an internal module are properly interlinked if they appear on the same page.

- top_level_reimports._internal.baz
- top_level_reimports._internal.baz()
- `top_level_reimports._internal.baz`
- `top_level_reimports._internal.baz()`

View Source

     1"""
     2Test that objects re-exposed from an internal module are properly interlinked if they appear on the same page.
     3
     4 - top_level_reimports._internal.baz
     5 - top_level_reimports._internal.baz()
     6 - `top_level_reimports._internal.baz`
     7 - `top_level_reimports._internal.baz()`
     8"""
     9
    10from ._internal import Bar
    11from ._internal import Foo
    12from ._internal import baz
    13
    14__all__ = ["Foo", "Bar", "baz"]

class Foo: View Source

    2class Foo:
    3    class FooSub:
    4        pass

class Foo.FooSub: View Source

    3    class FooSub:
    4        pass

class Bar(top_level_reimports.Foo): View Source

    7class Bar(Foo):
    8    pass

def baz( f: Foo) -> Foo.FooSub: View Source

    11def baz(f: Foo) -> Foo.FooSub:
    12    raise NotImplementedError