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

[TECH DEBT] Add type hints for cached properties #2813

Merged
merged 19 commits into from
Oct 3, 2024

Conversation

JCZuurmond
Copy link
Member

Changes

Add type hints for cached properties and resolve the linting issues found after adding the type hints. Would have caught the integration test issues introduced in #2772

@JCZuurmond JCZuurmond added tech debt chores and design flaws internal this pull request won't appear in release notes labels Oct 3, 2024
@JCZuurmond JCZuurmond self-assigned this Oct 3, 2024
@JCZuurmond JCZuurmond requested a review from a team as a code owner October 3, 2024 09:57
Copy link
Collaborator

@nfx nfx left a comment

Choose a reason for hiding this comment

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

lgtm

return GlobalInitScriptCrawler(self.workspace_client, self.sql_backend, self.inventory_database)

@cached_property
def tables_crawler(self):
# TODO: Update tables crawler inheritance to specify return type hint
Copy link
Member Author

@JCZuurmond JCZuurmond Oct 3, 2024

Choose a reason for hiding this comment

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

@pritishpai : Could you solve this in a separate PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

@JCZuurmond JCZuurmond force-pushed the fix/add-type-hints-for-all-cached-properties branch from 32dd02f to 751a9ed Compare October 3, 2024 15:20
@JCZuurmond JCZuurmond force-pushed the fix/add-type-hints-for-all-cached-properties branch from 751a9ed to fe65226 Compare October 3, 2024 15:24
@nfx nfx force-pushed the fix/add-type-hints-for-all-cached-properties branch from 24d4010 to e5fd2d4 Compare October 3, 2024 15:32
@nfx nfx temporarily deployed to account-admin October 3, 2024 15:32 — with GitHub Actions Inactive
@nfx nfx merged commit 352126d into main Oct 3, 2024
5 of 6 checks passed
@nfx nfx deleted the fix/add-type-hints-for-all-cached-properties branch October 3, 2024 15:36
Copy link

github-actions bot commented Oct 3, 2024

✅ 175/175 passed, 1 flaky, 4 skipped, 4h19m59s total

Flaky tests:

  • 🤪 test_hiveserde_table_in_place_migration_job[hiveserde] (6m18.174s)

Running from acceptance #6362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal this pull request won't appear in release notes tech debt chores and design flaws
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants