Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 562: Fix example by adding repr in an error message #2928

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

ezio-melotti
Copy link
Member

The first example in the PEP doesn't use !r while formatting the name of the module and the attribute. The following example does. This PR fixes the first example so that it matches the second and the regular behavior of Python while trying to access a non-existing module variable.

@CAM-Gerlach CAM-Gerlach changed the title PEP 562: Fix example by adding repr in an error message. PEP 562: Fix example by adding repr in an error message Dec 16, 2022
Copy link
Member

@CAM-Gerlach CAM-Gerlach left a comment

Choose a reason for hiding this comment

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

LGTM at least as far as I'm concerned, this looks like a straightforward typo error in examples of the form we've usually merged before, and this very much isn't a drive-by trivial contributor here, so it seems worth it to me to just merge this, so long as the PR author doesn't object.

@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented Dec 16, 2022

Also, to note, this PR's feature branch was created on the upstream repo instead of the author's fork, which will block final implementation of the remaining step of python/core-workflow#460 until it is merged or closed, so hopefully it can be resolved quickly 🙂

@Rosuav
Copy link
Contributor

Rosuav commented Dec 16, 2022

No objections here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants