Skip to content

Commit 7fcb29d

Browse files
author
Oleksandr Bazarnov
committed
formatted
1 parent 3630289 commit 7fcb29d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

airbyte_cdk/sources/declarative/migrations/manifest/manifest_migration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _get_manifest_version(self, manifest: ManifestType) -> str:
113113
:param manifest: The manifest to get the version from
114114
:return: The manifest version
115115
"""
116-
return manifest.get("version", "0.0.0")
116+
return str(manifest.get("version", "0.0.0"))
117117

118118
def _get_migration_version(self) -> str:
119119
"""

airbyte_cdk/sources/declarative/migrations/manifest/migrations_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
importlib.import_module(f"{migrations_pkg.__name__}.{module_name}")
1717

1818

19-
def _migration_order_key(cls):
19+
def _migration_order_key(cls: object) -> int:
2020
# Extract the migration order from the module name, e.g., 0_v6_45_2_http_requester_url_base_to_url_migration
2121
# The order is the integer at the start of the module name, before the first underscore
2222
module_name = cls.__module__.split(".")[-1]
2323
match = re.match(r"(\d+)_", module_name)
24-
return int(match.group(1)) if match else float("inf")
24+
return int(match.group(1)) if match else 0
2525

2626

2727
def _discover_migrations() -> List[Type[ManifestMigration]]:

0 commit comments

Comments
 (0)