refactor: simplify type hint and add return type for sanitize function

Signed-off-by: HectorSin <kkang15634@ajou.ac.kr>
This commit is contained in:
HectorSin 2026-01-10 21:25:25 +09:00
parent da5660b716
commit 4189cda895

View file

@ -59,7 +59,7 @@ def get_anonymous_id():
return anonymous_id
def _sanitize_nested_properties(obj: Union[Dict, List, Any], property_names: list[str]):
def _sanitize_nested_properties(obj: Any, property_names: list[str]) -> Any:
"""
Recursively replaces any property whose key matches one of `property_names`
(e.g., ['url', 'path']) in a nested dict or list with a uuid5 hash