Skip to content

Conversation

@Lil-Ran
Copy link

@Lil-Ran Lil-Ran commented Jan 29, 2026

This is the first implementation of my suggested changes in the issue.

Some proposals are open for discussion, though the PR already includes test cases.

I would appreciate any feedback or suggestions on these proposed changes.

@python-cla-bot
Copy link

python-cla-bot bot commented Jan 29, 2026

All commit authors signed the Contributor License Agreement.

CLA signed


def test_invalid_specifier_type_error_message(self):
for value in [12j, 12, 12.0, "12"]:
for bad_spec, repr in [
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: repr is a built-in.

Suggested change
for bad_spec, repr in [
for bad_spec, repr_str in [

]:
with self.subTest(value=value, bad_spec=bad_spec):
err = re.escape("Unknown format code "
f"{repr} for object of type "
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
f"{repr} for object of type "
f"{repr_str} for object of type "

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.

2 participants