[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

Raymond Hettinger report at bugs.python.org
Sun Jan 16 11:21:56 EST 2022


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> I propose that two changes be made to `dict_keys`, `dict_values`
> and `dict_items`:
>
> * They should be officially exposed in the `types` module.
> * `__class_getitem__` should be added to the classes.

+1

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46399>
_______________________________________


More information about the Python-bugs-list mailing list