Closed dnil closed 11 hours ago
Looks like a couple of forgotten/changed r-strings here?
/Users/dannil/sandbox/scout/scout/constants/disease_parsing.py:4: SyntaxWarning: invalid escape sequence '\(' ENTRY_PATTERN = re.compile("\([1,2,3,4]\)") /Users/dannil/sandbox/scout/scout/parse/omim.py:78: SyntaxWarning: invalid escape sequence '\{' "description": disease_description.strip("?\{\}"), /Users/dannil/sandbox/scout/scout/utils/convert.py:56: SyntaxWarning: invalid escape sequence '\d' p = re.compile("p.([A-Za-z]+)(\d+)([A-Za-z]+)") /Users/dannil/sandbox/scout/scout/utils/date.py:14: SyntaxWarning: invalid escape sequence '\d' date_pattern = re.compile("^(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])")
This could potentially be one or more bugs as well, but I haven't checked them and we haven't seen any consequences. Let's check and hopefully just fix while they are still warnings.
Looks like a couple of forgotten/changed r-strings here?