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 673: Fix a couple of typos #2419

Merged
merged 2 commits into from
Mar 12, 2022
Merged

Conversation

PeterJCLaw
Copy link
Contributor

Changes:

  • Name protocol to match usage
    It would have been possible here to change the bound of the TypeVar on line 495 to 'Shape', however I've opted to change the names of the definitions so that they match the later (similar) definitions of this protocol.

  • Fix example generic class name
    I'm guessing this was just a copy/pasta error or similar; there is no generic class named 'Foo' which is in scope here, however there is a 'Bar' that has just been defined and isn't yet used.

It would have been possible here to change the bound of the TypeVar
on line 495 to 'Shape', however I've opted to change the names of
the definitions so that they match the later (similar) definitions
of this protocol.
I'm guessing this was just a copy/pasta error or similar; there is
no generic class named 'Foo' which is in scope here, however there
is a 'Bar' that has just been defined and isn't yet used.
@JelleZijlstra
Copy link
Member

cc @Gobot1234 @pradeep90

@JelleZijlstra JelleZijlstra self-assigned this Mar 11, 2022
@CAM-Gerlach CAM-Gerlach changed the title PEP 0673: Fix a couple of typos PEP 673: Fix a couple of typos Mar 12, 2022
@JelleZijlstra JelleZijlstra merged commit 37351ae into python:main Mar 12, 2022
@JelleZijlstra
Copy link
Member

Thanks for your fix!

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.

4 participants