Skip to content

Invalid escape sequence in docstring #88

@jl-wynen

Description

@jl-wynen

There are invalid escape sequences in a docstring here: https://github.com/EasyScience/EasyScience/blob/a6d93795c396eb2c843d162908d636cbfe4e8a36/src/easyscience/Datasets/xarray.py#L284 Namely \|.

To fix it, either use \\| or make the docstring a raw string literal.

Normally, this only raises a DeprecationWarning which often does not show up in the terminal. But in our tests, we treat warnings as errors. This makes Python raise SyntaxError here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions