_docstring.pyi 800 B

12345678910111213141516171819202122232425262728293031323334
  1. from collections.abc import Callable
  2. from typing import Any, TypeVar, overload
  3. _T = TypeVar('_T')
  4. def kwarg_doc(text: str) -> Callable[[_T], _T]: ...
  5. class Substitution:
  6. @overload
  7. def __init__(self, *args: str): ...
  8. @overload
  9. def __init__(self, **kwargs: str): ...
  10. def __call__(self, func: _T) -> _T: ...
  11. def update(self, *args, **kwargs): ... # type: ignore[no-untyped-def]
  12. class _ArtistKwdocLoader(dict[str, str]):
  13. def __missing__(self, key: str) -> str: ...
  14. class _ArtistPropertiesSubstitution:
  15. def __init__(self) -> None: ...
  16. def register(self, **kwargs) -> None: ...
  17. def __call__(self, obj: _T) -> _T: ...
  18. def copy(source: Any) -> Callable[[_T], _T]: ...
  19. dedent_interpd: _ArtistPropertiesSubstitution
  20. interpd: _ArtistPropertiesSubstitution