Skip to content

Fix re.Scanner capturing group for Python 3.15 compatibility#258

Open
hrnciar wants to merge 1 commit intopydata:masterfrom
hrnciar:python3.15
Open

Fix re.Scanner capturing group for Python 3.15 compatibility#258
hrnciar wants to merge 1 commit intopydata:masterfrom
hrnciar:python3.15

Conversation

@hrnciar
Copy link
Copy Markdown

@hrnciar hrnciar commented Apr 27, 2026

Python 3.15 forbids capturing groups in re.Scanner lexicon patterns. Convert the capturing group to a non-capturing group in num_re.

Assisted-by: Cursor

Python 3.15 forbids capturing groups in re.Scanner lexicon patterns.
Convert the capturing group to a non-capturing group in num_re.

Assisted-by: Cursor
@bashtage
Copy link
Copy Markdown
Contributor

I feel like we need a 3.15 Tox run, but I don't think that will likely be practical until October.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.45%. Comparing base (331879f) to head (24675f8).
⚠️ Report is 58 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #258      +/-   ##
==========================================
+ Coverage   97.60%   98.45%   +0.84%     
==========================================
  Files          30       30              
  Lines        3096     3103       +7     
  Branches      591      676      +85     
==========================================
+ Hits         3022     3055      +33     
+ Misses         39       27      -12     
+ Partials       35       21      -14     
Flag Coverage Δ
unittests 98.06% <100.00%> (+0.45%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

3 participants