-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
# //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")) |
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.
why do we need print
here?
oddrn_generator/path_models.py
Outdated
dependencies_map: dict = Field( | ||
default_factory=lambda: MysqlPathsModel._dependencies_map_factory() | ||
) |
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.
dependencies_map: dict = Field( | |
default_factory=lambda: MysqlPathsModel._dependencies_map_factory() | |
) | |
dependencies_map: dict = Field( | |
default_factory=MysqlPathsModel._dependencies_map_factory | |
) |
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.
just in case If you would like to elaborate type hint usage in python you can do something like this
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 | |
) |
oddrn_generator/path_models.py
Outdated
dependencies_map: dict = Field( | ||
default_factory=lambda: KafkaPathsModel._dependencies_map_factory() | ||
) |
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.
dependencies_map: dict = Field( | |
default_factory=lambda: KafkaPathsModel._dependencies_map_factory() | |
) | |
dependencies_map: dict = Field( | |
default_factory=KafkaPathsModel._dependencies_map_factory | |
) |
oddrn_generator/path_models.py
Outdated
dependencies_map: dict = Field( | ||
default_factory=lambda: KafkaConnectorPathsModel._dependencies_map_factory() | ||
) |
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.
dependencies_map: dict = Field( | |
default_factory=lambda: KafkaConnectorPathsModel._dependencies_map_factory() | |
) | |
dependencies_map: dict = Field( | |
default_factory=KafkaConnectorPathsModel._dependencies_map_factory | |
) |
oddrn_generator/path_models.py
Outdated
dependencies_map: dict = Field( | ||
default_factory=lambda: GluePathsModel._dependencies_map_factory() | ||
) |
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.
dependencies_map: dict = Field( | |
default_factory=lambda: GluePathsModel._dependencies_map_factory() | |
) | |
dependencies_map: dict = Field( | |
default_factory=GluePathsModel._dependencies_map_factory | |
) |
oddrn_generator/path_models.py
Outdated
dependencies_map: dict = Field( | ||
default_factory=lambda: SnowflakePathsModel._dependencies_map_factory() | ||
) |
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.
dependencies_map: dict = Field( | |
default_factory=lambda: SnowflakePathsModel._dependencies_map_factory() | |
) | |
dependencies_map: dict = Field( | |
default_factory=SnowflakePathsModel._dependencies_map_factory | |
) |
oddrn_generator/path_models.py
Outdated
dependencies_map: dict = Field( | ||
default_factory=lambda: AirflowPathsModel._dependencies_map_factory() | ||
) |
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.
dependencies_map: dict = Field( | |
default_factory=lambda: AirflowPathsModel._dependencies_map_factory() | |
) | |
dependencies_map: dict = Field( | |
default_factory=AirflowPathsModel._dependencies_map_factory | |
) |
No description provided.