Skip to content

SyntaxWarning: invalid escape sequence '\h' #1068

@IUGgui

Description

@IUGgui

What happened + What you expected to happen

In python 3.13 I am having this syntax warning

/var/lang/lib/python3.13/site-packages/statsforecast/models.py:3811: SyntaxWarning: invalid escape sequence '\h'
$$\hat{y}_t = \frac{\hat{z}_t}{\hat{p}_t}$$
/var/lang/lib/python3.13/site-packages/statsforecast/models.py:4477: SyntaxWarning: invalid escape sequence '\e'

I saw that this issue was fixed for python 3.12
#842
but looking to statsforecast/models.py I see that some of the docstrings are not raw strings.

Versions / Dependencies

Click to expand Dependencies: version 2.0.3 python 3.13

Reproducible example

# paste your code here

Issue Severity

Low: It annoys or frustrates me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions