"""
This type stub file was generated by pyright.
"""

from typing import Any, Callable, NamedTuple, TYPE_CHECKING
from sphinx.pycode import ModuleAnalyzer
from sphinx.ext.autodoc import ObjectMember

"""Importer utilities for autodoc"""
if TYPE_CHECKING:
    ...
logger = ...
def mangle(subject: Any, name: str) -> str:
    """Mangle the given name."""
    ...

def unmangle(subject: Any, name: str) -> str | None:
    """Unmangle the given name."""
    ...

def import_module(modname: str, warningiserror: bool = ...) -> Any:
    """
    Call importlib.import_module(modname), convert exceptions to ImportError
    """
    ...

def import_object(modname: str, objpath: list[str], objtype: str = ..., attrgetter: Callable[[Any, str], Any] = ..., warningiserror: bool = ...) -> Any:
    ...

class Attribute(NamedTuple):
    name: str
    directly_defined: bool
    value: Any
    ...


def get_object_members(subject: Any, objpath: list[str], attrgetter: Callable, analyzer: ModuleAnalyzer | None = ...) -> dict[str, Attribute]:
    """Get members and attributes of target object."""
    ...

def get_class_members(subject: Any, objpath: Any, attrgetter: Callable, inherit_docstrings: bool = ...) -> dict[str, ObjectMember]:
    """Get members and attributes of target class."""
    ...

