Uh oh!
There was an error while loading. Please reload this page.
Add a partial, covariant Mapping type - #47
Conversation
harahu
commented
Jun 3, 2022
@srittau Decided to make an attempt at implementing the protocol we discussed a while ago. Is there a checklist for what needs covering in a PR to typing_extensions? |
srittau
commented
Jun 3, 2022
Side note: Depending on where #45 goes, this might be better suited for the new submodule. |
harahu
commented
Jun 3, 2022
I agree. I was considering basing this PR off of your branch, but was unsure what the likely timeline for merge (and change potential) is like, so decided to just get started here. |
JelleZijlstra
commented
Jun 4, 2022
The main typing-extensions namespace should not contain names that don't have a prospect of going into Aside, I don't like the name much. |
gvanrossum
commented
Jun 4, 2022
FWIW 'util' or 'utils' is a terrible name for a submodule. (And as I wrote in #5, I am not in favor of this PR in general, but I'll defer to Jelle+Sebastian.) |
harahu
commented
Jun 4, 2022
See comments above. This is the intention. Was just eager to get started. Hope you don't mind.
I agree. The name is the part I struggle with the most. I have several other ideas, all of which I have trouble with:
Suggestions welcome, in other words. |
harahu
commented
Jun 4, 2022
It would be constructive to provide an alternative to the claimed terrible name. |
gvanrossum
commented
Jun 4, 2022
Sorry, you're right. In my experience in any large code base there are dozens of leaf modules named util[s], and the name just doesn't convey any meaning. Worse, if you are tempted to write Even if we called it |
I'm the person who suggested But yeah, this is off-topic for this thread. |
harahu
commented
Jun 4, 2022
Yeah, sorry for encouraging continuing the conversation here. I made a comment mentioning this conversation in #45, in order to make the relevant conclusions visible. |
tmke8
commented
Jul 15, 2022
Isn't this basically already covered by the |
harahu
commented
Aug 1, 2022
This protocol would be a subtype of |
JelleZijlstra
commented
Jun 2, 2023
Closing this following the policy to only include things that are in CPython or in a PEP. |
Addresses #5