diff options
| author | Alex Schofield <git@ajschof.me> | 2025-03-02 23:36:33 +0000 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2025-03-02 23:36:33 +0000 |
| commit | 967399d8b83c6bd4f1fccbb23a3745f8a0a0765f (patch) | |
| tree | 30e33edb85e16528d1b94bf62fe67cf96f45dbe1 /gdpr_obfuscator/obfuscate.py | |
| parent | a9d812a4e430ef305a9a36eda0e651d415be62c6 (diff) | |
| download | gdpr-obfuscator-967399d8b83c6bd4f1fccbb23a3745f8a0a0765f.tar.gz gdpr-obfuscator-967399d8b83c6bd4f1fccbb23a3745f8a0a0765f.zip | |
update docstring for obfuscate function
Diffstat (limited to 'gdpr_obfuscator/obfuscate.py')
| -rw-r--r-- | gdpr_obfuscator/obfuscate.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gdpr_obfuscator/obfuscate.py b/gdpr_obfuscator/obfuscate.py index 722b750..63c0da8 100644 --- a/gdpr_obfuscator/obfuscate.py +++ b/gdpr_obfuscator/obfuscate.py @@ -5,8 +5,17 @@ def obfuscate_data( data: List[Dict[str, str]], pii_fields: List[str] ) -> List[Dict[str, str]]: """ - A function to obfuscate PII fields in a list of dictionaries, replacing - sensitive values with a string of asterisks. + + + Args: + data (List[Dict[str, str]]): _description_ + pii_fields (List[str]): _description_ + + Raises: + ValueError: _description_ + + Returns: + List[Dict[str, str]]: _description_ """ for record in data: |
