Skip to content

fix: nicer debug print outs (and str for regex pattern)#110

Merged
cpburnz merged 1 commit into
cpburnz:masterfrom
henryiii:henryiii/fix/addstr
Mar 7, 2026
Merged

fix: nicer debug print outs (and str for regex pattern)#110
cpburnz merged 1 commit into
cpburnz:masterfrom
henryiii:henryiii/fix/addstr

Conversation

@henryiii
Copy link
Copy Markdown
Contributor

@henryiii henryiii commented Mar 6, 2026

This adds some __repr__'s and a __str__ that should make debugging a little easier. See #108.

This also allows printing out regex patterns with str(), which makes typing a little easier vs. accessing .pattern, which might be on None.

AI Usage Disclaimer: I used VSCode's copilot integration to add tests in the current style.

I didn't see a way to run prek or directly run ruff/black, let me know if I need to do some sort of formatting or linting.

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
@cpburnz cpburnz merged commit 7728546 into cpburnz:master Mar 7, 2026
@cpburnz
Copy link
Copy Markdown
Owner

cpburnz commented Mar 7, 2026

Thanks, looks good.

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