Skip to content

Conversation

@rambleraptor
Copy link
Contributor

Closes #1853

This adds a new repr function that ensures that initial-default and write-default will not appear if they are None. Unfortunately, this functionality isn't baked into Pydantic.

Rationale for this change

repr changes may be breaking.

Are these changes tested?

Tests included.

Are there any user-facing changes?

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

This looks great @rambleraptor 🙌

@Fokko Fokko merged commit dab2536 into apache:main Aug 7, 2025
10 checks passed
gabeiglio pushed a commit to Netflix/iceberg-python that referenced this pull request Aug 13, 2025
)

<!--
Thanks for opening a pull request!
-->

<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
Closes apache#1853 

This adds a new repr function that ensures that `initial-default` and
`write-default` will not appear if they are None. Unfortunately, this
functionality isn't baked into Pydantic.

# Rationale for this change
__repr__ changes may be breaking.

# Are these changes tested?
Tests included.

# Are there any user-facing changes?

<!-- In the case of user-facing changes, please add the changelog label.
-->
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.

Include initial-default and write-default in repr

2 participants