autodoc2.astroid_utils

Module Contents

Functions

API

autodoc2.astroid_utils.resolve_import_alias(name: str, import_names: list[tuple[str, str | None]]) str[source]
autodoc2.astroid_utils.is_constructor(node: astroid.nodes.NodeNG) bool[source]
autodoc2.astroid_utils.get_full_import_name(import_from: astroid.nodes.ImportFrom, name: str) str[source]
autodoc2.astroid_utils.get_assign_value(node: astroid.nodes.NodeNG) None | tuple[str, Any][source]
autodoc2.astroid_utils.get_const_values(node: astroid.nodes.NodeNG) Any[source]
autodoc2.astroid_utils.get_assign_annotation(node: astroid.nodes.Assign) None | str[source]
autodoc2.astroid_utils.resolve_annotation(annotation: astroid.nodes.NodeNG) str[source]
autodoc2.astroid_utils.resolve_qualname(node: astroid.nodes.NodeNG, basename: str) str[source]
autodoc2.astroid_utils.get_module_all(node: astroid.nodes.Module) None | list[str][source]
autodoc2.astroid_utils.is_decorated_with_singledispatch(node: astroid.nodes.FunctionDef | astroid.nodes.AsyncFunctionDef) bool[source]
autodoc2.astroid_utils.is_singledispatch_decorator(decorator: astroid.Name) bool[source]
autodoc2.astroid_utils.is_decorated_as_singledispatch_register(node: astroid.nodes.FunctionDef | astroid.nodes.AsyncFunctionDef) bool[source]
autodoc2.astroid_utils.is_decorated_with_property(node: astroid.nodes.FunctionDef | astroid.nodes.AsyncFunctionDef) bool[source]
autodoc2.astroid_utils.is_property_decorator(decorator: astroid.Name) bool[source]
autodoc2.astroid_utils.is_decorated_with_property_setter(node: astroid.nodes.FunctionDef | astroid.nodes.AsyncFunctionDef) bool[source]
autodoc2.astroid_utils.get_class_docstring(node: astroid.nodes.ClassDef) tuple[str, str | None][source]
autodoc2.astroid_utils.is_exception(node: astroid.nodes.ClassDef) bool[source]
autodoc2.astroid_utils.is_decorated_with_overload(node: astroid.nodes.FunctionDef) bool[source]
autodoc2.astroid_utils.is_overload_decorator(decorator: astroid.Name | astroid.Attribute) bool[source]
autodoc2.astroid_utils.get_func_docstring(node: astroid.nodes.FunctionDef) tuple[str, None | str][source]
autodoc2.astroid_utils.get_return_annotation(node: astroid.nodes.FunctionDef) None | str[source]
autodoc2.astroid_utils.get_args_info(args_node: astroid.Arguments) list[tuple[None | str, None | str, None | str, None | str]][source]
autodoc2.astroid_utils._iter_args(args: list[astroid.nodes.NodeNG], annotations: list[astroid.nodes.NodeNG], defaults: list[astroid.nodes.NodeNG]) Iterable[tuple[str, None | str, str | None]][source]
autodoc2.astroid_utils._merge_annotations(annotations: Iterable[Any], comment_annotations: Iterable[Any]) Iterable[Any][source]
autodoc2.astroid_utils._is_ellipsis(node: Any) bool[source]