| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Looks great to me! Thank you!
Sorry, something went wrong.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Sorry, something went wrong.
|
I'm not a fan of replacing protocols with ABCs, especially if they're as broad as Mapping. Can't we use broader protocols? |
Sorry, something went wrong.
|
I can re-review usage. Mixing mapping-based protocols is quite annoying at the moment (without Protocol Intersection), and we may be getting too close to implementation details, where I'm not sure it's worth creating new (and/or combined) protocols just for this. But I'll see. |
Sorry, something went wrong.
|
My main beef with Mapping (and Sequence) is that it's not a protocol. Maybe it would make sense to add a MappingLike protocol to _typeshed that includes commonly used methods (like __getitem__, keys etc.). |
Sorry, something went wrong.
|
Thanks. And I think you meant #15152 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checked against the implementation to see when SupportsGetItem wasn't enough.
Will also reduce changes from #14038
CC @darabos since you added most of these in #13458 . Feel free to re-validate against the implementation.