-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] mypy
typing for core/util.py
#6617
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
👇 Click on the image for a new way to code review
Legend |
We probably want to use a |
That would help a ton. Please let me know |
@@ -162,7 +181,10 @@ def determine_progress_bar_method_by_environment() -> Callable: | |||
return tqdm | |||
|
|||
|
|||
def convert_to_json_serializable(data) -> dict: # noqa: C901 - complexity 28 | |||
JSONValues: TypeAlias = Union[dict, list, str, int, float, bool, None] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to consider something like this in a followup.
python/typing#182 (comment)
This PR should fix the remaining issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit of a self-review here 😄
Thank you @Kilo59 |
Didn't realize automerge was left on 😓 |
* develop: [MAINTENANCE] Cleanup typing errors. (#6691) [FEATURE] Support to include ID/PK in validation result for each row - Spark (#6676) [MAINTENANCE] Get datetime tests working for trino/snowflake/spark in values_to_be_in_set (#6671) [MAINTENANCE] Update `get_context` return type (#6684) [MAINTENANCE] `mypy` typing for `core/util.py` (#6617) [MAINTENANCE] Misc updates to dev Azure pipeline (#6686) [MAINTENANCE] Clean up packaging & installation pipeline (#6687) [MAINTENANCE] Partial test linting (#6679) [MAINTENANCE] Clean up returns style and type hints in CardinalityChecker utility (#6677) [MAINTENANCE] Don't attempt any regex Expectation tests with snowflake (#6672)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Gabriel <[email protected]>
core/util.py
pyproject.toml
has been updated