Skip to content

[Python] Use f-string instead of string.format #45619

Description

@kou

Describe the enhancement requested

For example:

raiseTypeError("Do not call {}'s constructor directly, use one of "
"the `pyarrow.Array.from_*` functions instead."
.format(self.__class__.__name__))

should be:

raiseTypeError(f"Do not call {self.__class__.__name__}'s constructor ""directly, use one of the `pyarrow.Array.from_*` ""functions instead.")

Component(s)

Python

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions