-
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] Cleanup typing errors. #6691
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 |
_default_header = "" | ||
|
||
_default_content_block_styling = {"classes": ["col-12"]} | ||
_default_content_block_styling: Dict[str, JSONValues] = {"classes": ["col-12"]} |
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.
Just a question to help me understand better - is the reason that this is typed with Dict[str, JSONValues]
and not just JSONValues
because we know that it has str keys at the top level?
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.
Pending fixes
"expect_column_min_to_be_between", | ||
]: | ||
new_block = TextContent(**{"content_block_type": "text", "text": []}) | ||
new_block["content"].append( |
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 determined this was dead code.
TextContent
doesn't implement__getitem__
, so this would break._render_unrecognized
is never called anywhere in the codebase.
* 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: Gabriel <[email protected]>
PR from mob typing session.