Skip to content
Snippets Groups Projects
Commit cd318e21 authored by Christophe Lallement's avatar Christophe Lallement
Browse files

fix type hint for get_version_from_record_id_version return value

parent 727ad35f
No related branches found
No related tags found
1 merge request!461Fix commit session response
Pipeline #98353 failed
......@@ -58,7 +58,7 @@ entity_names = {
class DMSV3RouterUtils:
@staticmethod
def get_version_from_record_id_version(record_id_version: str) -> str:
def get_version_from_record_id_version(record_id_version: str) -> int:
match = OSDU_ENTITY_VERSION_REGEX.match(record_id_version)
if not match:
raise RuntimeError(f"{record_id_version} is not a valid, it must match {OSDU_ENTITY_VERSION_REGEX}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment