Skip to content

0.42: invalid escape sequence in RequestOptions.vf docstring breaks import under -W error (fixed in #1893, unreleased) #1915

Closed as not planned

Description

@baruchoxman

Describe the bug

In 0.42, the RequestOptions.vf() docstring in tableauserverclient/server/request_options.py contains \, in a non-raw string (Rock\, Paper\, Scissors, line 381). Python 3.12+ emits SyntaxWarning: invalid escape sequence '\,' when it compiles the module, and any project that runs its tests with warnings as errors (pytest filterwarnings = error, python -W error) fails to import tableauserverclient:

SyntaxError: invalid escape sequence '\,'

This keeps such projects on 0.41.

Fix

This is already fixed on development by #1893 (merged 2026-10-21), which doubles the backslashes. It isn't in a release yet: 0.42 was published on 2026-10-15, before that merge.

Could you publish a release that includes #1893?

Versions

  • tableauserverclient 0.42
  • Python 3.13

Activity

  1. baruchoxman commented on Nov 13, 2026

    @baruchoxman
    Author

    Closing: already fixed on development by #1893.

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