Skip to content

Fix invalid escape sequence warnings in variable_selection_priors.py#710

Open
maresb wants to merge 1 commit intopymc-labs:mainfrom
maresb:fix/raw-docstrings-escape-sequences
Open

Fix invalid escape sequence warnings in variable_selection_priors.py#710
maresb wants to merge 1 commit intopymc-labs:mainfrom
maresb:fix/raw-docstrings-escape-sequences

Conversation

@maresb
Copy link
Contributor

@maresb maresb commented Feb 13, 2026

Summary

  • Use raw docstrings (r""") for SpikeAndSlabPrior and HorseshoePrior so that LaTeX math markup (e.g. \beta, \cdot, \lambda) is not misinterpreted as Python escape sequences.
  • Fixes SyntaxWarning: "\c" is an invalid escape sequence (and similar) which will become errors in future Python versions.

Test plan

  • pre-commit run --all-files passes
  • CI passes

Made with Cursor

Use raw docstrings (r""") for SpikeAndSlabPrior and HorseshoePrior
so LaTeX math markup is not misinterpreted as Python escape sequences.

Co-authored-by: Cursor <cursoragent@cursor.com>
@read-the-docs-community
Copy link

Documentation build overview

📚 causalpy | 🛠️ Build #31404917 | 📁 Comparing 3f955a0 against latest (535f709)


🔍 Preview build

Show files changed (1 files in total): 📝 1 modified | ➕ 0 added | ➖ 0 deleted
File Status
404.html 📝 modified

@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.36%. Comparing base (535f709) to head (3f955a0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #710   +/-   ##
=======================================
  Coverage   94.36%   94.36%           
=======================================
  Files          44       44           
  Lines        7591     7591           
  Branches      461      461           
=======================================
  Hits         7163     7163           
  Misses        264      264           
  Partials      164      164           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant