Fix python warning about regex string syntax. The string is correct but python is warning about the escape sequence and assumes it was a mistake.

pull/3589/head
derekpierre 2025-04-04 15:39:13 -04:00
parent 43ba98d36e
commit dcf0b1b667
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ def check_and_convert_big_int_string_to_int(value: str) -> Union[str, int]:
"""
Check if a string is a big int string and convert it to an integer, otherwise return the string.
"""
if re.fullmatch("^-?\d+n$", value):
if re.fullmatch(r"^-?\d+n$", value):
try:
result = int(value[:-1])
return result