Skip to content

PEP 727: Review #3316

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

Merged
merged 14 commits into from
Sep 8, 2023
Merged

PEP 727: Review #3316

merged 14 commits into from
Sep 8, 2023

Conversation

AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Aug 31, 2023

  • Change is:
    • To a Draft PEP
  • PR title prefixed with PEP number (e.g. PEP 123: Summary of changes)

cc: @tiangolo

Each commit addresses a distinct issue. The last 5 re-write various things I was unclear on or I thought could do with an edit -- I've also added the three missing headers from this PEP for filling in later.

As in the earlier review, my thoughts remain that the "Additional Scenarios" outlined should just be banned.

Feel free to ask for clarification on any of the suggested changes.

(I'll submit a PR to wrap to 79 columns per PEP-1 after this one, as that's a purely editorial change.)

A


📚 Documentation preview 📚: https://pep-previews--3316.org.readthedocs.build/

Copy link
Contributor

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this!

And special thanks for being able to put on the hat of PEP editor and give gentle feedback purely about the PEP, isolated from other possible concerns (personal as a developer, or as a Sphinx maintainer). Hats off to you. 🎩


Now, about the process, should this be merged, and then I fill the missing parts in another PR? Should I create a new PR including these commits?


There are additional changes coming, I'll make it a single Doc class, with a single positional-only parameter, and that's it.

And maybe some of the parts that I thought would be useful "for completeness" would be better removed, like the complex scenarios combining multiple nested Annotated.

Also something about how other languages do.

I was thinking, it would probably be good to have, in the "motivation section, a simple bullet point list with all the things this would "solve" that aren't currently solved by existing alternatives. A lot of the criticism suggesting existing or proposed alternatives keeps missing some of those points.

Should I wait to get this merged first and then do that part?

@JelleZijlstra
Copy link
Member

Yes, probably easiest to merge this first (Adam or I can merge it once you approve), then make your changes.

@AA-Turner
Copy link
Member Author

And special thanks for being able to put on the hat of PEP editor and give gentle feedback purely about the PEP, isolated from other possible concerns (personal as a developer, or as a Sphinx maintainer). Hats off to you. 🎩

All part of the job! Thank you for the kind words, though, very much appreciated.

I fill the missing parts in another PR?

Up to you really! I'd suggest merging this PR is easier -- I added the missing sections in a reST comment to act more as bookmarks, but they could be removed before merging if you'd like.

A

@tiangolo
Copy link
Contributor

tiangolo commented Sep 1, 2023

Thanks @AA-Turner! I think it's fine to leave the placeholders and I'll edit them. I added a couple of comments above, on the conversation about errors and MUST/SHOULD.

It would also be fine to leave it as is and then I could edit on top, I think (?)

@tiangolo
Copy link
Contributor

tiangolo commented Sep 3, 2023

Hello @AA-Turner! I realized we didn't decide how to proceed. And now I'm thinking that maybe we are all here waiting for each other... will you update this PR with those small comments or should we merge it and then I change things on top?

If it's just that you haven't had time, totally get it... but I imagined we could be waiting for each other in a deadlock and you're actually waiting for me to hit "resolve" to merge this and continue on top...

Let me know what works best for you. I'll hit "resolve" now in case that was the plan and you can merge.

And then I can add all the recent updates on top (including no doc() but a single Doc() class). Thanks!

@tiangolo
Copy link
Contributor

tiangolo commented Sep 3, 2023

Ah, wait, what am I saying 😂 ...I can't hit resolve, I don't own this repo, I didn't start this PR, and I didn't start that comment.

Anyway, let me know what's the best way to proceed. 🤓

@JelleZijlstra
Copy link
Member

@tiangolo if you approve this PR I'll merge it with the superpowers vested in me.

@AA-Turner
Copy link
Member Author

Hello @AA-Turner! I realized we didn't decide how to proceed. And now I'm thinking that maybe we are all here waiting for each other... will you update this PR with those small comments or should we merge it and then I change things on top?

Sorry Sebastián, a case of crossed wires! I didn't realise you were waiting for me -- please do what you want with this PR (merging it as Jelle suggests may be most expedient) -- I'll continue to review new changes.

I've been meaning to reply to the Discourse thread, so sorry for that too -- thank you for your patience!

A

Copy link
Contributor

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

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

Awesome, thank you both! 🚀

Yep, @JelleZijlstra please go ahead and merge it, thank you!

@JelleZijlstra JelleZijlstra merged commit 971a49b into python:main Sep 8, 2023
@tiangolo
Copy link
Contributor

tiangolo commented Sep 8, 2023

Thank you both!

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.

3 participants