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] Cleanup typing errors. #6691

Merged
merged 5 commits into from
Jan 3, 2023
Merged

Conversation

billdirks
Copy link
Contributor

@billdirks billdirks commented Jan 3, 2023

PR from mob typing session.

  • My code follows the Great Expectations style guide
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added unit tests where applicable and made sure that new and existing tests are passing.
  • I have run any local integration tests and made sure that nothing is broken.

@netlify
Copy link

netlify bot commented Jan 3, 2023

Deploy Preview for niobium-lead-7998 ready!

Name Link
🔨 Latest commit b4bd35f
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/63b4b18751af190009c09646
😎 Deploy Preview https://deploy-preview-6691--niobium-lead-7998.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ghost
Copy link

ghost commented Jan 3, 2023

👇 Click on the image for a new way to code review
  • Make big changes easier — review code in small groups of related files

  • Know where to start — see the whole change at a glance

  • Take a code tour — explore the change with an interactive tour

  • Make comments and review — all fully sync’ed with github

    Try it now!

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

_default_header = ""

_default_content_block_styling = {"classes": ["col-12"]}
_default_content_block_styling: Dict[str, JSONValues] = {"classes": ["col-12"]}
Copy link
Contributor

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?

Copy link
Contributor

@Kilo59 Kilo59 left a comment

Choose a reason for hiding this comment

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

Pending fixes

@billdirks billdirks enabled auto-merge (squash) January 3, 2023 22:47
@billdirks billdirks merged commit ea58344 into develop Jan 3, 2023
@billdirks billdirks deleted the mob-typing-20230103 branch January 3, 2023 23:43
"expect_column_min_to_be_between",
]:
new_block = TextContent(**{"content_block_type": "text", "text": []})
new_block["content"].append(
Copy link
Contributor

@Kilo59 Kilo59 Jan 3, 2023

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.

  1. TextContent doesn't implement__getitem__ , so this would break.
  2. _render_unrecognized is never called anywhere in the codebase.

Shinnnyshinshin pushed a commit that referenced this pull request Jan 3, 2023
* 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)
jcampbell pushed a commit that referenced this pull request Jan 11, 2023
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.

3 participants