Skip to content

Improve repr string representation of Duration and ClockTime - #1235

Merged
robsdedude merged 2 commits into
neo4j:6.xfrom
robsdedude:feat/improve-duration-repr
Sep 8, 2025
Merged

robsdedude merged 2 commits into
neo4j:6.xfrom
robsdedude:feat/improve-duration-repr

Conversation

@robsdedude

Copy link
Copy Markdown
Member

Instead of for example Duration(months=1, days=2, seconds=3, nanoseconds=4) the repr string representation is now neo4j.time.Duration(months=1, days=2, seconds=3, nanoseconds=4) or similar.

Both are fine in regards to Python's recommendations. However, the latter is more consistent with all other types defined in neo4j.time.

ClockTime's repr was changed in the same way.

@MaxAake MaxAake left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅

@robsdedude
robsdedude marked this pull request as ready for review September 8, 2025 13:51
@robsdedude
robsdedude enabled auto-merge (squash) September 8, 2025 13:52
@robsdedude
robsdedude merged commit 77f9e39 into neo4j:6.x Sep 8, 2025
@robsdedude
robsdedude deleted the feat/improve-duration-repr branch September 8, 2025 14:58
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