Skip to content

Conversation

@rudolfix
Copy link
Collaborator

Description

  1. implements [chores] use dataclass_transform to autogenerate typings for BaseConfiguration #858
  2. drops special __init__ method for CredentialsConfiguration
  3. warns if configspec changes the fields (ie by adding None defaults or skipping init synth)
  4. removes all those __init__ that we wrote for type checking as they are now generated
  5. drops all dependencies from logger

@netlify
Copy link

netlify bot commented Mar 24, 2024

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit f17abc9
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/6600bf0d88cbcc00084e6fe7

@rudolfix rudolfix force-pushed the rfix/regular-initializers-for-credentials branch from 5fd135e to dba0114 Compare March 24, 2024 20:49
@rudolfix rudolfix marked this pull request as ready for review March 25, 2024 09:44
@rudolfix rudolfix requested a review from sh-rp March 25, 2024 09:44
@rudolfix
Copy link
Collaborator Author

@sh-rp please look at this, there's (small) impact on destinations that use ConnectionStringCredentials ( are dremio/clickhouse using it?)

@rudolfix rudolfix merged commit e0774cc into devel Mar 25, 2024
@rudolfix rudolfix deleted the rfix/regular-initializers-for-credentials branch March 25, 2024 13:53
is_max_text_data_type_length_in_bytes: bool
supports_transactions: bool
supports_ddl_transactions: bool
preferred_loader_file_format: TLoaderFileFormat = None
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe all of them should've been annotated with Optional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants