module documentation

Undocumented

Class AttrsSystem A system with only the attrs extension enabled.
Class DeprecateSystem A system with only the twisted deprecated extension enabled.
Class PydanticSystem Undocumented
Class SimpleSystem A system with no extensions.
Class ZopeInterfaceSystem A system with only the zope interface extension enabled.
Function ann_str_and_line Return the textual representation and line number of an object's type annotation.
Function fromText Undocumented
Function test__name__equals__main__is_skipped Code inside of if __name__ == '__main__' should be skipped.
Function test_aliasing Undocumented
Function test_aliasing_recursion Undocumented
Function test_all_allbad If no value in __all__ could be parsed, the result is an empty list.
Function test_all_bad_sequence Values other than lists and tuples assigned to __all__ have no effect and a warning is logged.
Function test_all_caps_variable_in_instance_is_not_a_constant Currently, it does not mark instance members as constants, never.
Function test_all_in_class_non_recognition A class variable named __all__ is just an ordinary variable and does not affect Module.all.
Function test_all_multiple If there are multiple assignments to __all__, a warning is logged and the last assignment takes effect.
Function test_all_nonliteral Non-literals in __all__ are ignored.
Function test_all_nonstring Non-string literals in __all__ are ignored.
Function test_all_recognition The value assigned to __all__ is parsed to Module.all.
Function test_annotated_variables Undocumented
Function test_assignment_to_method_in_class An assignment to a method in a class body does not change the type of the documentable.
Function test_assignment_to_method_in_init An assignment to a method inside __init__() does not change the type of the documentable.
Function test_bad_string_annotation Invalid string annotations must be reported as syntax errors.
Function test_class Undocumented
Function test_class_with_base Undocumented
Function test_class_with_base_from_module Undocumented
Function test_classdecorator Undocumented
Function test_classdecorator_with_args Undocumented
Function test_classmethod Undocumented
Function test_constant_class Class variables with all-uppercase names are recognized as constants.
Function test_constant_module Module variables with all-uppercase names are recognized as constants.
Function test_constant_module_with_final Module variables annotated with typing.Final are recognized as constants.
Function test_constant_module_with_final_annotation_gets_infered It can recognize constants defined with typing.Final. It will infer the type of the constant if Final do not use subscripts.
Function test_constant_module_with_final_subscript1 It can recognize constants defined with typing.Final[something]
Function test_constant_module_with_final_subscript2 It can recognize constants defined with typing.Final[something]. And it automatically remove the Final part from the annotation.
Function test_constant_module_with_final_subscript_invalid_warns It warns if there is an invalid Final annotation.
Function test_constant_module_with_final_subscript_invalid_warns2 It warns if there is an invalid Final annotation.
Function test_constant_module_with_typing_extensions_final Module variables annotated with typing_extensions.Final are recognized as constants.
Function test_constant_override_do_not_warns_when_defined_in_class_docstring Constant can be documented as variables at docstring level without any warnings.
Function test_constant_override_do_not_warns_when_defined_in_module_docstring Undocumented
Function test_constant_override_in_instace_warns It warns when a constant is beeing re defined in instance. But it ignores it's value.
Function test_constant_override_in_instace_warns2 It warns when a constant is beeing re defined in instance. But it ignores it's value. Even if the actual constant definition is detected after the instance variable of the same name.
Function test_constant_override_in_module_warns Undocumented
Function test_detupling_assignment Undocumented
Function test_docformat_recognition The value assigned to __docformat__ is parsed to Module.docformat.
Function test_docformat_warn_empty Undocumented
Function test_docformat_warn_not_str Undocumented
Function test_docformat_warn_not_str2 Undocumented
Function test_docformat_warn_overrides Undocumented
Function test_docstring_assignment Undocumented
Function test_docstring_assignment_detuple We currently don't trace values for detupling assignments, so when assigning to __doc__ we get a warning about the unknown value.
Function test_documented_no_alias A variable that is documented should not be considered an alias.
Function test_exception_kind Exceptions are marked with the special kind "EXCEPTION".
Function test_exception_kind_corner_cases Undocumented
Function test_follow_renaming Undocumented
Function test_function_async Undocumented
Function test_function_badsig When a function has an invalid signature, an error is logged and the empty signature is returned.
Function test_function_signature A round trip from source to inspect.Signature and back produces the original text.
Function test_function_signature_posonly Undocumented
Function test_function_simple Undocumented
Function test_ignore_function_contents Undocumented
Function test_import_func_from_package Importing a function from a package should look in the __init__ module.
Function test_import_module_from_package Importing a module from a package should not look in __init__ module.
Function test_import_star Undocumented
Function test_inferred_variable_types Undocumented
Function test_inherit_names Undocumented
Function test_inline_docstring_annotated_classvar Undocumented
Function test_inline_docstring_annotated_instancevar Undocumented
Function test_inline_docstring_classvar Undocumented
Function test_inline_docstring_instancevar Undocumented
Function test_inline_docstring_modulevar Undocumented
Function test_literal_string_annotation Strings inside Literal annotations must not be recursively parsed.
Function test_methoddecorator Undocumented
Function test_more_aliasing Undocumented
Function test_nested_class_inheriting_from_same_module Undocumented
Function test_no_docstring Undocumented
Function test_node2fullname The node2fullname() function finds the full (global) name for a name expression in the AST.
Function test_package_name_clash Undocumented
Function test_prepend_package Option --prepend-package option relies simply on the ISystemBuilder interface, so we can test it by using addModuleString, but it's not exactly what happens when we actually run pydoctor. See the other test ...
Function test_prepend_package_real_path In this test, we closer mimics what happens in the driver when --prepend-package option is passed.
Function test_property_conflict Warn when a method is decorated as both property and class/staticmethod. These decoration combinations do not create class/static properties.
Function test_property_custom Any custom decorator with a name ending in 'property' makes a method into a property getter.
Function test_property_decorator A function decorated with '@property' is documented as an attribute.
Function test_property_setter Property setter and deleter methods are renamed, so they don't replace the property itself.
Function test_reexport_wildcard If a target module, explicitly re-export via __all__ a set of names that were initially imported from a sub-module via a wildcard, those names are documented as part of the target module.
Function test_relative_import_in_package Relative imports in a package must be resolved by going up one level less, since we don't count "__init__.py" as a level.
Function test_relative_import_past_top A warning is logged when a relative import goes beyond the top-level package.
Function test_subclasses Undocumented
Function test_syntax_error Undocumented
Function test_syntax_error_pack Undocumented
Function test_type_alias Type aliases and type variables are recognized as such.
Function test_type_comment Undocumented
Function test_unstring_annotation Annotations or parts thereof that are strings are parsed and line number information is preserved.
Function test_variable_named_like_current_module Test for issue #474.
Function test_variable_scopes Undocumented
Function test_variable_types Undocumented
Function to_html Undocumented
Function type2html Undocumented
Function type2str Undocumented
Function unwrap Undocumented
Variable systemcls_param Undocumented
def ann_str_and_line(obj): (source)

Return the textual representation and line number of an object's type annotation.

Parameters
obj:model.DocumentableDocumentable object with a type annotation.
Returns
Tuple[str, int]Undocumented
def fromText(text, *, modname='<test>', is_package=False, parent_name=None, system=None, systemcls=model.System): (source)

Undocumented

Parameters
text:strUndocumented
modname:strUndocumented
is_package:boolUndocumented
parent_name:Optional[str]Undocumented
system:Optional[model.System]Undocumented
systemcls:Type[model.System]Undocumented
Returns
model.ModuleUndocumented
@systemcls_param
def test__name__equals__main__is_skipped(systemcls): (source)

Code inside of if __name__ == '__main__' should be skipped.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_aliasing(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_aliasing_recursion(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_all_allbad(systemcls, capsys): (source)

If no value in __all__ could be parsed, the result is an empty list.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_all_bad_sequence(systemcls, capsys): (source)

Values other than lists and tuples assigned to __all__ have no effect and a warning is logged.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_all_caps_variable_in_instance_is_not_a_constant(systemcls, capsys): (source)

Currently, it does not mark instance members as constants, never.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_all_in_class_non_recognition(systemcls): (source)

A class variable named __all__ is just an ordinary variable and does not affect Module.all.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_all_multiple(systemcls, capsys): (source)

If there are multiple assignments to __all__, a warning is logged and the last assignment takes effect.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_all_nonliteral(systemcls, capsys): (source)

Non-literals in __all__ are ignored.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_all_nonstring(systemcls, capsys): (source)

Non-string literals in __all__ are ignored.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_all_recognition(systemcls): (source)

The value assigned to __all__ is parsed to Module.all.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_annotated_variables(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_assignment_to_method_in_class(systemcls): (source)

An assignment to a method in a class body does not change the type of the documentable.

If the name we assign to exists and it does not belong to an Attribute (it's a Function instead, in this test case), the assignment will be ignored.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_assignment_to_method_in_init(systemcls): (source)

An assignment to a method inside __init__() does not change the type of the documentable.

If the name we assign to exists and it does not belong to an Attribute (it's a Function instead, in this test case), the assignment will be ignored.

Parameters
systemcls:Type[model.System]Undocumented
@pytest.mark.parametrize('annotation', ('[', 'pass', '1 ; 2'))
@systemcls_param
def test_bad_string_annotation(annotation, systemcls, capsys): (source)

Invalid string annotations must be reported as syntax errors.

Parameters
annotation:strUndocumented
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_class(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_class_with_base(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_class_with_base_from_module(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_classdecorator(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_classdecorator_with_args(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_classmethod(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_constant_class(systemcls): (source)

Class variables with all-uppercase names are recognized as constants.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_constant_module(systemcls): (source)

Module variables with all-uppercase names are recognized as constants.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_constant_module_with_final(systemcls): (source)

Module variables annotated with typing.Final are recognized as constants.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_constant_module_with_final_annotation_gets_infered(systemcls): (source)

It can recognize constants defined with typing.Final. It will infer the type of the constant if Final do not use subscripts.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_constant_module_with_final_subscript1(systemcls): (source)

It can recognize constants defined with typing.Final[something]

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_constant_module_with_final_subscript2(systemcls): (source)

It can recognize constants defined with typing.Final[something]. And it automatically remove the Final part from the annotation.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_constant_module_with_final_subscript_invalid_warns(systemcls, capsys): (source)

It warns if there is an invalid Final annotation.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_constant_module_with_final_subscript_invalid_warns2(systemcls, capsys): (source)

It warns if there is an invalid Final annotation.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_constant_module_with_typing_extensions_final(systemcls): (source)

Module variables annotated with typing_extensions.Final are recognized as constants.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_constant_override_do_not_warns_when_defined_in_class_docstring(systemcls, capsys): (source)

Constant can be documented as variables at docstring level without any warnings.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_constant_override_do_not_warns_when_defined_in_module_docstring(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_constant_override_in_instace_warns(systemcls, capsys): (source)

It warns when a constant is beeing re defined in instance. But it ignores it's value.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_constant_override_in_instace_warns2(systemcls, capsys): (source)

It warns when a constant is beeing re defined in instance. But it ignores it's value. Even if the actual constant definition is detected after the instance variable of the same name.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_constant_override_in_module_warns(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_detupling_assignment(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_docformat_recognition(systemcls): (source)

The value assigned to __docformat__ is parsed to Module.docformat.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_docformat_warn_empty(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_docformat_warn_not_str(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_docformat_warn_not_str2(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_docformat_warn_overrides(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_docstring_assignment(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_docstring_assignment_detuple(systemcls, capsys): (source)

We currently don't trace values for detupling assignments, so when assigning to __doc__ we get a warning about the unknown value.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_documented_no_alias(systemcls): (source)

A variable that is documented should not be considered an alias.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_exception_kind(systemcls, capsys): (source)

Exceptions are marked with the special kind "EXCEPTION".

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_exception_kind_corner_cases(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_follow_renaming(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_function_async(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@pytest.mark.parametrize('signature', ('(a, a)'))
@systemcls_param
def test_function_badsig(signature, systemcls, capsys): (source)

When a function has an invalid signature, an error is logged and the empty signature is returned.

Note that most bad signatures lead to a SyntaxError, which we cannot recover from. This test checks what happens if the AST can be produced but inspect.Signature() rejects the parsed parameters.

Parameters
signature:strUndocumented
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@pytest.mark.parametrize('signature', ('()', '(*, a, b=None)', '(*, a=(), b)', '(a, b=3, *c, **kw)', '(f=True)', '(x=0.1, y=-2)', '(s=\'theory\', t=\'con\\\'text\')'))
@systemcls_param
def test_function_signature(signature, systemcls): (source)

A round trip from source to inspect.Signature and back produces the original text.

Parameters
signature:strUndocumented
systemcls:Type[model.System]Undocumented
Note
Our inspect.Signature Paramters objects are now tweaked such that they might produce HTML tags, handled by the PyvalColorizer.
@posonlyargs
@pytest.mark.parametrize('signature', ('(x, y, /)', '(x, y=0, /)', '(x, y, /, z, w)', '(x, y, /, z, w=42)', '(x, y, /, z=0, w=0)', '(x, y=3, /, z=5, w=7)', '(x, /, *v, a=1, b=2)', '(x, /, *, a=1, b=2, **kwargs)'))
@systemcls_param
def test_function_signature_posonly(signature, systemcls): (source)

Undocumented

Parameters
signature:strUndocumented
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_function_simple(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_ignore_function_contents(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_import_func_from_package(systemcls): (source)

Importing a function from a package should look in the __init__ module.

In this test the following hierarchy is constructed:

    package a
      module __init__
        defines function 'f'
      module c
        imports function 'f'
    module b
      imports function 'f'

We verify that when module b and c import the name f from package a, they import the function f from the module a.__init__.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_import_module_from_package(systemcls): (source)

Importing a module from a package should not look in __init__ module.

In this test the following hierarchy is constructed:

    package a
      module __init__
      module b
        defines function 'f'
    module c
      imports module 'a.b'

We verify that when module c imports the name b from package a, it imports the module a.b which contains f.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_import_star(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_inferred_variable_types(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_inherit_names(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_inline_docstring_annotated_classvar(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_inline_docstring_annotated_instancevar(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_inline_docstring_classvar(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_inline_docstring_instancevar(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_inline_docstring_modulevar(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@pytest.mark.parametrize('annotation,expected', (('Literal[\'[\', \']\']', 'Literal[\'[\', \']\']'), ('typing.Literal[\'pass\', \'raise\']', 'typing.Literal[\'pass\', \'raise\']'), ('Optional[Literal[\'1 ; 2\']]', 'Optional[Literal[\'1 ; 2\']]'), ('\'Literal\'[\'!\']', 'Literal[\'!\']'), ('\'Literal[\\\'if\\\', \\\'while\\\']\'', 'Literal[\'if\', \'while\']')))
def test_literal_string_annotation(annotation, expected): (source)

Strings inside Literal annotations must not be recursively parsed.

Parameters
annotation:strUndocumented
expected:strUndocumented
@systemcls_param
def test_methoddecorator(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_more_aliasing(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_nested_class_inheriting_from_same_module(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_no_docstring(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
def test_node2fullname(): (source)

The node2fullname() function finds the full (global) name for a name expression in the AST.

@systemcls_param
def test_package_name_clash(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_prepend_package(systemcls): (source)

Option --prepend-package option relies simply on the ISystemBuilder interface, so we can test it by using addModuleString, but it's not exactly what happens when we actually run pydoctor. See the other test test_prepend_package_real_path.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_prepend_package_real_path(systemcls): (source)

In this test, we closer mimics what happens in the driver when --prepend-package option is passed.

Parameters
systemcls:Type[model.System]Undocumented
@pytest.mark.parametrize('decoration', ('classmethod', 'staticmethod'))
@systemcls_param
def test_property_conflict(decoration, systemcls, capsys): (source)

Warn when a method is decorated as both property and class/staticmethod. These decoration combinations do not create class/static properties.

Parameters
decoration:strUndocumented
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_property_custom(systemcls, capsys): (source)

Any custom decorator with a name ending in 'property' makes a method into a property getter.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_property_decorator(systemcls): (source)

A function decorated with '@property' is documented as an attribute.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_property_setter(systemcls, capsys): (source)

Property setter and deleter methods are renamed, so they don't replace the property itself.

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_reexport_wildcard(systemcls): (source)

If a target module, explicitly re-export via __all__ a set of names that were initially imported from a sub-module via a wildcard, those names are documented as part of the target module.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_relative_import_in_package(systemcls): (source)

Relative imports in a package must be resolved by going up one level less, since we don't count "__init__.py" as a level.

Hierarchy:

  top: def f
   - pkg: imports f and g
      - mod: def g
Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
@pytest.mark.parametrize('level', (1, 2, 3, 4))
def test_relative_import_past_top(systemcls, level, capsys): (source)

A warning is logged when a relative import goes beyond the top-level package.

Parameters
systemcls:Type[model.System]Undocumented
level:intUndocumented
capsys:CapSysUndocumented
@systemcls_param
def test_subclasses(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_syntax_error(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_syntax_error_pack(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_type_alias(systemcls): (source)

Type aliases and type variables are recognized as such.

Parameters
systemcls:Type[model.System]Undocumented
@typecomment
@systemcls_param
def test_type_comment(systemcls, capsys): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
capsys:CapSysUndocumented
@systemcls_param
def test_unstring_annotation(systemcls): (source)

Annotations or parts thereof that are strings are parsed and line number information is preserved.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_variable_named_like_current_module(systemcls): (source)

Test for issue #474.

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_variable_scopes(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
@systemcls_param
def test_variable_types(systemcls): (source)

Undocumented

Parameters
systemcls:Type[model.System]Undocumented
def to_html(parsed_docstring, linker=NotFoundLinker()): (source)

Undocumented

Parameters
parsed_docstring:ParsedDocstringUndocumented
linker:DocstringLinkerUndocumented
Returns
strUndocumented
def type2html(obj): (source)

Undocumented

Parameters
obj:model.DocumentableUndocumented
Returns
strUndocumented
def type2str(type_expr): (source)

Undocumented

Parameters
type_expr:Optional[ast.expr]Undocumented
Returns
Optional[str]Undocumented
def unwrap(parsed_docstring): (source)

Undocumented

Parameters
parsed_docstring:Optional[ParsedDocstring]Undocumented
Returns
strUndocumented
systemcls_param = (source)

Undocumented