refactor: simplify type hint and add return type for sanitize function
Signed-off-by: HectorSin <kkang15634@ajou.ac.kr>
This commit is contained in:
parent
da5660b716
commit
4189cda895
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue