Skip to content

SyntaxWarning: invalid escape sequence '\(' in auth0/management/types/client_metadata.py (6.8.0) #908

Open

Description

@hanneslipusch

On Python 3.14, importing auth0.management emits:

auth0/management/types/client_metadata.py:7: SyntaxWarning: "\(" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\("? A raw string is also an option.

It comes from the ClientMetadata docstring, which lists the special characters :,-+=_*?"/\()<>@. Python plans to make invalid escape sequences an error.

The fix is a raw docstring (r"""…""") or \\(. This file is Fern-generated, so the generator's docstring escaping may need the fix.

Version: auth0-python 6.8.0, Python 3.14.

Activity

  1. rmad17 commented on Nov 16, 2026

    @rmad17
    Contributor

    Hi @hanneslipusch, thank you for the report and for the detail on the cause. We're looking into this and will share an update here once we have more information.

  2. ToniAdreal commented on Nov 26, 2026

    @ToniAdreal

    Confirmed this still fires on current master (pushed 2026-11-24): src/auth0/management/types/client_metadata.py:7 still carries \( in the ClientMetadata docstring. The file moved under src/ since the 6.8.0 report. I ran the exact docstring text through CPython 3.12.3 locally. Compiling it emits SyntaxWarning: invalid escape sequence '\(', and with -W error::SyntaxWarning it becomes a hard error, so the import will break once invalid escapes become errors as planned.

    Scope looks narrow. A code search for the "special characters" docstring text finds only this one file in the repo, so a single-file fix (raw docstring or \\() would cover the reported case. The file header says it is Fern-generated, so the durable fix may belong in the generator's docstring escaping, but the generated file itself is where the warning fires today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions