[issue44578] dict/list with more than two type parameters doesn't raise a TypeError

2021-07-07 Thread Guido van Rossum
Guido van Rossum added the comment: Yes this is intentional. Use a static checker to find this type of bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44578] dict/list with more than two type parameters doesn't raise a TypeError

2021-07-07 Thread Ken Jin
Ken Jin added the comment: Sorry, I don't think this will be fixed as it is intentional. types.GenericAlias (the type of list[int] or dict[str, str]) does almost 0 checking for two reasons IIUC: - Types with wrong number of parameters will usually be caught by your IDE/type checker. -

[issue44578] dict/list with more than two type parameters doesn't raise a TypeError

2021-07-07 Thread Michael
Change by Michael : -- title: dict with more than two type parameters doesn't raise a TypeError -> dict/list with more than two type parameters doesn't raise a TypeError ___ Python tracker