Clarify TODOs in is_hidden docstring

This commit is contained in:
Ajay Bhalekar 2026-02-01 18:13:58 +05:30
parent b2335b984d
commit c6efc8c3e9

View file

@ -25,6 +25,9 @@ from pathlib import Path
def is_hidden(path: bytes | Path) -> bool:
"""
Determine whether the given path is treated as a 'hidden file' by the OS.
Note: A platform-specific check is performed on each invocation. Bytes
inputs are supported for backward compatibility.
"""
if isinstance(path, bytes):