-
-
Notifications
You must be signed in to change notification settings - Fork 117
Add a partial, covariant Mapping type #47
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
Conversation
@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? |
Side note: Depending on where #45 goes, this might be better suited for the new submodule. |
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. |
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. |
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.) |
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. |
It would be constructive to provide an alternative to the claimed terrible name. |
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. |
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. |
Isn't this basically already covered by the |
This protocol would be a subtype of |
Closing this following the policy to only include things that are in CPython or in a PEP. |
Addresses #5