Skip to content

Conversation

@Aokizy2
Copy link

@Aokizy2 Aokizy2 commented Dec 26, 2025

Rationale for this change

Message.__repr__ showed format placeholders ({self.type}) instead of actual values.

What changes are included in this PR?

Add missing f prefix to f-string in Message.__repr__ (pyarrow/lib.pxi).

Are these changes tested?

Yes: added test verifying string representation shows actual values.

Are there any user-facing changes?

Yes (bug fix): str(message) now shows values like type: RecordBatch instead of placeholders.
related to issue #48608

@github-actions
Copy link

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant