Fix Python 3.13 support

This commit is contained in:
clearml 2025-01-05 12:14:24 +02:00
parent f110bbf5b4
commit 91dfa09466

View File

@ -134,7 +134,7 @@ class BaseField(object):
def _validate_name(self): def _validate_name(self):
if self.name is None: if self.name is None:
return return
if not re.match('^[A-Za-z_](([\w\-]*)?\w+)?$', self.name): if not re.match(r'^[A-Za-z_](([\w\-]*)?\w+)?$', self.name):
raise ValueError('Wrong name', self.name) raise ValueError('Wrong name', self.name)
def structue_name(self, default): def structue_name(self, default):