Add __class_getitem__
support to memoryview
#126012
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-typing
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
memoryview
was made generic in typeshed in python/typeshed#12247. Mypy recently received a report (python/mypy#18053) due to it not being subscriptable at runtime:It seems that
memoryview
should be made subscriptable at runtime, like other standard library classes that are generic in typeshed.Happy to make a PR if there's agreement that this should be added.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
__class_getitem__
tomemoryview
#126013The text was updated successfully, but these errors were encountered: