Skip to content

fix SyntaxWarning in pipes.py docstring for Python 3.12 [DAT-817]#9

Merged
thrau merged 1 commit intomainfrom
dat-817
Mar 2, 2026
Merged

fix SyntaxWarning in pipes.py docstring for Python 3.12 [DAT-817]#9
thrau merged 1 commit intomainfrom
dat-817

Conversation

@ackdav
Copy link
Member

@ackdav ackdav commented Mar 2, 2026

Summary

Converts the get_information docstring in verdin/api/pipes.py to a raw string (r"""...""") to suppress a SyntaxWarning: invalid escape sequence '\.' raised by Python 3.12+.

Surfaced during DAT-815 integration test run.

Risks & Validation

No behavioural change.

Warning observed in DAT-815 CI run:

=============================== warnings summary ===============================
.venv/lib/python3.12/site-packages/verdin/api/pipes.py:295
  /home/runner/work/analytics-backend/analytics-backend/.venv/lib/python3.12/site-packages/verdin/api/pipes.py:295: SyntaxWarning: invalid escape sequence '\.'
    See: https://www.tinybird.co/docs/api-reference/pipe-api#get--v0-pipes-(.+\.pipe)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================== PASSES ====================================
=================== 9 passed, 1 warning in 110.61s (0:01:50) ===================

@ackdav ackdav self-assigned this Mar 2, 2026
@ackdav ackdav requested a review from thrau March 2, 2026 11:36
Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks! escaping the . would probably also have been an option? but this is fine :-)

@thrau thrau merged commit fd65a5a into main Mar 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants