mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 09:22:14 +00:00
Fix warning in pytest unit tests (use raw string for regex)
This commit is contained in:
parent
e4fa0247f5
commit
3638786162
@ -243,7 +243,7 @@ def _handle_complex_data_types(status, dataset_name, raw_type: str, level=0):
|
|||||||
col["dataType"] = get_column_type(
|
col["dataType"] = get_column_type(
|
||||||
status,
|
status,
|
||||||
dataset_name,
|
dataset_name,
|
||||||
re.match("([\w\s]*)(?:.*)", col_type).groups()[0],
|
re.match(r"([\w\s]*)(?:.*)", col_type).groups()[0],
|
||||||
)
|
)
|
||||||
col["dataTypeDisplay"] = col_type.rstrip(">")
|
col["dataTypeDisplay"] = col_type.rstrip(">")
|
||||||
return col
|
return col
|
||||||
|
Loading…
x
Reference in New Issue
Block a user