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

Bump dependencies of packages. Migrating from Pydantic v1 to v2 #98

Merged
merged 8 commits into from
Apr 16, 2024

Conversation

ValeriyWorld
Copy link
Contributor

No description provided.

@ValeriyWorld ValeriyWorld self-assigned this Apr 10, 2024
# //postgresql/host/my.host.com:5432/databases/database_name/schemas/schema_name/tables/another_table_name/relationships/references_table_2_with_constraint_fk

# you can get path wih new values:
oddrn_gen.get_oddrn_by_path("tables_columns", new_value="another_new_column_name")
print(oddrn_gen.get_oddrn_by_path("tables_columns", new_value="another_new_column_name"))

Choose a reason for hiding this comment

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

why do we need print here?

Comment on lines 101 to 103
dependencies_map: dict = Field(
default_factory=lambda: MysqlPathsModel._dependencies_map_factory()
)

Choose a reason for hiding this comment

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

Suggested change
dependencies_map: dict = Field(
default_factory=lambda: MysqlPathsModel._dependencies_map_factory()
)
dependencies_map: dict = Field(
default_factory=MysqlPathsModel._dependencies_map_factory
)

Copy link

Choose a reason for hiding this comment

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

just in case If you would like to elaborate type hint usage in python you can do something like this

Suggested change
dependencies_map: dict = Field(
default_factory=lambda: MysqlPathsModel._dependencies_map_factory()
)
DependenciesMap = Dict[str, Tuple[str, ...]]
...
dependencies_map: DependenciesMap = Field(
default_factory=MysqlPathsModel._dependencies_map_factory
)

Comment on lines 113 to 115
dependencies_map: dict = Field(
default_factory=lambda: KafkaPathsModel._dependencies_map_factory()
)

Choose a reason for hiding this comment

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

Suggested change
dependencies_map: dict = Field(
default_factory=lambda: KafkaPathsModel._dependencies_map_factory()
)
dependencies_map: dict = Field(
default_factory=KafkaPathsModel._dependencies_map_factory
)

Comment on lines 125 to 127
dependencies_map: dict = Field(
default_factory=lambda: KafkaConnectorPathsModel._dependencies_map_factory()
)

Choose a reason for hiding this comment

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

Suggested change
dependencies_map: dict = Field(
default_factory=lambda: KafkaConnectorPathsModel._dependencies_map_factory()
)
dependencies_map: dict = Field(
default_factory=KafkaConnectorPathsModel._dependencies_map_factory
)

Comment on lines 149 to 151
dependencies_map: dict = Field(
default_factory=lambda: GluePathsModel._dependencies_map_factory()
)

Choose a reason for hiding this comment

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

Suggested change
dependencies_map: dict = Field(
default_factory=lambda: GluePathsModel._dependencies_map_factory()
)
dependencies_map: dict = Field(
default_factory=GluePathsModel._dependencies_map_factory
)

Comment on lines 178 to 180
dependencies_map: dict = Field(
default_factory=lambda: SnowflakePathsModel._dependencies_map_factory()
)

Choose a reason for hiding this comment

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

Suggested change
dependencies_map: dict = Field(
default_factory=lambda: SnowflakePathsModel._dependencies_map_factory()
)
dependencies_map: dict = Field(
default_factory=SnowflakePathsModel._dependencies_map_factory
)

Comment on lines 196 to 198
dependencies_map: dict = Field(
default_factory=lambda: AirflowPathsModel._dependencies_map_factory()
)

Choose a reason for hiding this comment

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

Suggested change
dependencies_map: dict = Field(
default_factory=lambda: AirflowPathsModel._dependencies_map_factory()
)
dependencies_map: dict = Field(
default_factory=AirflowPathsModel._dependencies_map_factory
)

pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
@ValeriyWorld ValeriyWorld changed the title Bump dependencies of packages Bump dependencies of packages. Migrating from Pydantic v1 to v2 Apr 16, 2024
@ValeriyWorld ValeriyWorld merged commit eb73d73 into main Apr 16, 2024
1 check passed
@ValeriyWorld ValeriyWorld deleted the bump_dependencies branch April 16, 2024 17:37
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.

None yet

3 participants