Skip to content

Tags: jlevy/prettyfmt

Tags

v0.4.1

Toggle v0.4.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix infinite recursion in abbrev_obj for circular references (#1)

* Fix infinite recursion in abbrev_obj for circular references

- Added visited parameter to _format_kvs to track visited objects
- Properly propagate visited set through all recursive calls
- Prevents infinite loops when objects contain circular references
- Added comprehensive test coverage for various circular reference scenarios

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Apply ruff formatting and fix pyright ignore placement

---------

Co-authored-by: Claude <noreply@anthropic.com>

v0.4.0

Toggle v0.4.0's commit message
Add minimal, fast-to-import plural functions.

v0.3.1

Toggle v0.3.1's commit message
Small improvement to slugifying with underscores.

v0.3.0

Toggle v0.3.0's commit message
Add slugify functionality.

v0.2.1

Toggle v0.2.1's commit message
Improved `fmt_path()` options.

v0.2.0

Toggle v0.2.0's commit message
Add brief timedelta support.

v0.1.8

Toggle v0.1.8's commit message
Fix Python 3.10 support.

v0.1.7

Toggle v0.1.7's commit message
Avoid exceptions on pydantic dataclasses.

v0.1.6

Toggle v0.1.6's commit message
Improve age formatting for times <2hrs.

v0.1.5

Toggle v0.1.5's commit message
Add `fmt_path`, `fmt_lines`.