Coverage for src / metaclass_registry / _home.py: 100%
4 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-10 22:33 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-10 22:33 +0000
1from __future__ import annotations
3from pathlib import Path
6def get_home_dir() -> str:
7 """
8 Get the user's home directory in a cross-platform manner.
10 Uses pathlib.Path.home() which works reliably on Unix and Windows.
12 Returns:
13 str: The user's home directory path.
14 """
15 return str(Path.home())