Skip to content

Defaults

provide.foundation.config.defaults

TODO: Add module docstring.

Functions

default_empty_dict

default_empty_dict() -> dict[str, str]

Factory for empty string dictionaries.

Source code in provide/foundation/config/defaults.py
def default_empty_dict() -> dict[str, str]:
    """Factory for empty string dictionaries."""
    return {}

path_converter

path_converter(x: str | None) -> Path | None

Convert string to Path or None.

Source code in provide/foundation/config/defaults.py
def path_converter(x: str | None) -> Path | None:
    """Convert string to Path or None."""
    return Path(x) if x else None