-
Notifications
You must be signed in to change notification settings - Fork 92
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
Adjust type hints in credentials handling for Azure API client #1964
Merged
asnare
merged 1 commit into
dependabot/pip/databricks-sdk-gte-0.27-and-lt-0.30
from
fix/databricks-upgrade-type-hinting
Jul 2, 2024
Merged
Adjust type hints in credentials handling for Azure API client #1964
asnare
merged 1 commit into
dependabot/pip/databricks-sdk-gte-0.27-and-lt-0.30
from
fix/databricks-upgrade-type-hinting
Jul 2, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JCZuurmond
approved these changes
Jul 2, 2024
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.
LGTM, thanks
7b9eece
into
dependabot/pip/databricks-sdk-gte-0.27-and-lt-0.30
4 of 5 checks passed
❌ 168/172 passed, 4 failed, 24 skipped, 5h40m32s total ❌ test_running_real_workflow_linter_job: TimeoutError: timed out after 0:20:00: (21m49.008s)
❌ test_table_migration_job_cluster_override[regular]: AssertionError: assert False (12m15.845s)
❌ test_table_migration_job_refreshes_migration_status[regular-migrate-tables]: AssertionError: No destination schema found for TableType.VIEW hive_metastore.migrate_e1qqa.ucx_tfnce given migration statuses Row(src_schema='migrate_e1qqa', src_table='ucx_tksdz', dst_catalog='ucx_c1zcx', dst_schema='migrate_e1qqa', dst_table='ucx_tksdz', update_ts='1719909569.860524') (24m2.578s)
❌ test_hiveserde_table_ctas_migration_job[hiveserde]: AssertionError: assert False (11m38.384s)
Running from acceptance #4094 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
This PR is stacked on #1943; it is stacked to verify the type hinting changes via the CI environment.
The situation is:
The Databricks SDK has partially implemented type hints for the credentials handlers.
The
CredentialsProvider
is the fundamental type for a callable factory that can be used to obtain credentials.The
CredentialsStrategy
is the type that can be used for a function that can be used to obtain a provider, given theConfig
.The
@credentials_strategy
decorator is used to fuse the two:Config
, returns aCredentialsProvider
.CredentialsStrategy
.The type upstream type hinting for the
@credentials_strategy
decorator is incomplete: the return type is omitted. This confuses IntelliJ/PyCharm a little but not Mypy.