Skip to content
Snippets Groups Projects

#152, #170: Missing f-string for ESUserEndpoint regex

Merged Moul requested to merge 170_fix_esuserendpoint into dev
Files
2
+ 1
1
@@ -456,7 +456,7 @@ ESUserEndpointType = TypeVar("ESUserEndpointType", bound="ESUserEndpoint")
class ESUserEndpoint(Endpoint):
API = "ES_USER_API"
re_inline = re.compile(
"^{API} (?P<host>(?:{const.HOST_REGEX})|(?:{const.IPV4_REGEX})) (?P<port>{const.PORT_REGEX})$"
f"^{API} (?P<host>(?:{const.HOST_REGEX})|(?:{const.IPV4_REGEX})) (?P<port>{const.PORT_REGEX})$"
)
def __init__(self, host: str, port: int) -> None:
Loading