doFolder.globalType module

Global Type Definitions and Aliases

This module provides type aliases and ensures compatibility with Python’s static type system across different Python versions. It is commonly imported as _tt in other modules for type hinting purposes.

Key type aliases:
  • Pathable: str or Path objects for filesystem paths

  • RelativePathable: Relative paths (str, Path, or path components)

  • CompareModeItem: Comparison mode specifications

Uses typing_extensions for backward compatibility with older Python versions.

doFolder.globalType.CompareModeItem = doFolder.enums.CompareModeFlag | doFolder.enums.CompareMode

Type for comparison mode specifications

doFolder.globalType.Pathable = str | pathlib.Path

Type for filesystem paths (str or Path object)

doFolder.globalType.RelativePathable = str | pathlib.Path | typing.Iterable[str]

Type for relative paths (str, Path, or path components)