Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINTENANCE] Add docstrings and type hints to Anonymizer #4419

Conversation

cdkini
Copy link
Contributor

@cdkini cdkini commented Mar 15, 2022

Changes proposed in this pull request:

  • Docstrings and type hints!

Definition of Done

Please delete options that are not relevant.

  • My code follows the Great Expectations style guide
  • I have performed a self-review of my own code
  • I have run any local integration tests and made sure that nothing is broken.

cdkini added 30 commits March 11, 2022 14:55
…_expectations into maintenance/great-617/refactor-is_parent_class_recognized-helper-in-anonymizer
…_expectations into maintenance/great-617/refactor-is_parent_class_recognized-helper-in-anonymizer
…_expectations into maintenance/great-617/refactor-is_parent_class_recognized-helper-in-anonymizer
@netlify
Copy link

netlify bot commented Mar 15, 2022

✔️ Deploy Preview for niobium-lead-7998 ready!

🔨 Explore the source changes: e1082b5

🔍 Inspect the deploy log: https://app.netlify.com/sites/niobium-lead-7998/deploys/6230d4e1529d1d000ac349a3

😎 Browse the preview: https://deploy-preview-4419--niobium-lead-7998.netlify.app

@cdkini cdkini marked this pull request as draft March 15, 2022 16:53
@cdkini cdkini marked this pull request as ready for review March 15, 2022 17:39
@cdkini cdkini self-assigned this Mar 15, 2022
Copy link
Contributor

@Shinnnyshinshin Shinnnyshinshin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very very much @cdkini

Comment on lines +94 to +97
@property
def anonymizer(self) -> Anonymizer:
return self._anonymizer

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Comment on lines +52 to +64
"""Obsfuscates a given string using an MD5 hash.

Utilized to anonymize user-specific/sensitive strings in usage statistics payloads.

Args:
string_ (Optional[str]): The input string to anonymize.

Returns:
The MD5 hash of the input string. If an input of None is provided, the string is untouched.

Raises:
TypeError if input string does not adhere to type signature Optional[str].
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@cdkini cdkini enabled auto-merge (squash) March 15, 2022 18:18
@cdkini cdkini merged commit 5c96a7a into develop Mar 15, 2022
@cdkini cdkini deleted the maintenance/great-617/refactor-is_parent_class_recognized-helper-in-anonymizer branch March 15, 2022 18:33
Shinnnyshinshin pushed a commit that referenced this pull request Mar 15, 2022
…hub.com/great-expectations/great_expectations into feature/GREAT-500/add-notebooks-for-rbp

* 'feature/GREAT-500/add-notebooks-for-rbp' of https://github.com/great-expectations/great_expectations:
  [FEATURE] Use more granular requirements-dev-xxx.txt files (#4327)
  standardise on include and exclude columns list for profiler (#4424)
  [MAINTENANCE] Continue chipping away at warnings (#4422)
  [MAINTENANCE] Add docstrings and type hints to `Anonymizer` (#4419)
  Replace "sampling_method" with "estimator", since the latter is a more fitting name for the parameter. (#4420)
  [BUGFIX] Adding `--spark` flag back to `azure-pipelines.yml` compatibility_matrix stage.  (#4418)
  [MAINTENANCE] Refactor out unnecessary Anonymizer child classes (#4408)
  [BUGFIX] Pin `pytest-azurepipelines` due to breaking changes made in latest release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants