Skip to content

adjust inconsistent dataclasses plugin error messages#14637

Merged
JukkaL merged 1 commit intopython:masterfrom
wesleywright:dataclass-boolean-literal-error-message
Feb 7, 2023
Merged

adjust inconsistent dataclasses plugin error messages#14637
JukkaL merged 1 commit intopython:masterfrom
wesleywright:dataclass-boolean-literal-error-message

Conversation

@wesleywright
Copy link
Copy Markdown
Collaborator

Small changes prompted by @JukkaL's comment on another review. Splitting this out from that PR since it's unrelated and the messages here have been around for a few years.

This commit specifically adds quotes around Python identifiers in two error messages, and points the error for "eq" must be True if "order" is True more directly at the decorator that triggers the error message.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 7, 2023

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

LGTM

@JukkaL JukkaL merged commit f6a8037 into python:master Feb 7, 2023
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