| from collections.abc import Callable, Iterable | |
| from typing import Protocol, TypeVar, overload, type_check_only | |
| from _typeshed import IdentityFunction | |
| from ._convertions import asbytes as asbytes | |
| from ._convertions import asunicode as asunicode | |
| ### | |
| _T = TypeVar("_T") | |
| _HasModuleT = TypeVar("_HasModuleT", bound=_HasModule) | |
| class _HasModule(Protocol): | |
| __module__: str | |
| ### | |
| def set_module(module: None) -> IdentityFunction: ... | |
| def set_module(module: str) -> Callable[[_HasModuleT], _HasModuleT]: ... | |
| # | |
| def _rename_parameter( | |
| old_names: Iterable[str], | |
| new_names: Iterable[str], | |
| dep_version: str | None = None, | |
| ) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ... | |