This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Akuli
Recipients Akuli, AlexWaygood, Dennis Sweeney, JelleZijlstra, kj, kumaraditya, methane, rhettinger, serhiy.storchaka, sobolevn
Date 2022-01-21.08:55:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642755319.83.0.488617233323.issue46399@roundup.psfhosted.org>
In-reply-to
Content
I now agree that `# type: ignore` in dict subclasses makes sense the most, and exposing the views doesn't solve practical problems.

We talked more with the people who brought this up in typing. Turns out that the correct solution to their problems was to just inherit from MutableMapping instead of inheriting from dict. If you really need to inherit from dict and make .keys() do something else than it does by default, you're most likely trying to override all dict methods that do something with the keys, and you should just inherit from MutableMapping instead.
History
Date User Action Args
2022-01-21 08:55:19Akulisetrecipients: + Akuli, rhettinger, methane, serhiy.storchaka, JelleZijlstra, Dennis Sweeney, sobolevn, kj, kumaraditya, AlexWaygood
2022-01-21 08:55:19Akulisetmessageid: <1642755319.83.0.488617233323.issue46399@roundup.psfhosted.org>
2022-01-21 08:55:19Akulilinkissue46399 messages
2022-01-21 08:55:19Akulicreate