_src_pyf.pyi 1011 B

12345678910111213141516171819202122232425262728
  1. import re
  2. from _typeshed import StrOrBytesPath
  3. from collections.abc import Mapping
  4. from typing import Final
  5. routine_start_re: Final[re.Pattern[str]] = ...
  6. routine_end_re: Final[re.Pattern[str]] = ...
  7. function_start_re: Final[re.Pattern[str]] = ...
  8. template_re: Final[re.Pattern[str]] = ...
  9. named_re: Final[re.Pattern[str]] = ...
  10. list_re: Final[re.Pattern[str]] = ...
  11. item_re: Final[re.Pattern[str]] = ...
  12. template_name_re: Final[re.Pattern[str]] = ...
  13. include_src_re: Final[re.Pattern[str]] = ...
  14. def parse_structure(astr: str) -> list[tuple[int, int]]: ...
  15. def find_repl_patterns(astr: str) -> dict[str, str]: ...
  16. def find_and_remove_repl_patterns(astr: str) -> tuple[str, dict[str, str]]: ...
  17. def conv(astr: str) -> str: ...
  18. #
  19. def unique_key(adict: Mapping[str, object]) -> str: ...
  20. def expand_sub(substr: str, names: dict[str, str]) -> str: ...
  21. def process_str(allstr: str) -> str: ...
  22. #
  23. def resolve_includes(source: StrOrBytesPath) -> list[str]: ...
  24. def process_file(source: StrOrBytesPath) -> str: ...