type of dict[Any, Any] is inferred as dict[Unknown, Unknown] #1094
Labels
type checking / linting
issues relating to existing diagnostic rules or proposals for new diagnostic rules
upstream bug
a bug that also exists in pyright but has not been raised upstream
Description
Playground:
https://basedpyright.com/?typeCheckingMode=all&reportAny=false&reportExplicitAny=false&reportUnusedParameter=false&code=GYJw9gtgBALgngBwJYDsDmUkQWEMoCCKcANFCAKYBuFAhgDYD68CFAUBwCYXBSdIBnBLRgBjABYAKTiNoAuPklEwA2kVKFiAXSgAfKPUGr1O-eoCUctlBuZeg1AJi0UoitNll%2Byy9dv-KGgZmRHcZZ3M-GwpDewFHZ1cwzwMjX38A6jomFmSIoA
pyright (same problem):
https://pyright-play.net/?code=GYJw9gtgBALgngBwJYDsDmUkQWEMoCCKcAUCQCYCmwU5SAzggIYwDGAFgBTktMBctJKxgBtInAA0hYgF0oAHygAbBqPFzF4gJR8SUfZhoNU9GExStK3XlLrCdeg05CUAbpSZKA%2BvARWeZlqO%2BpQqRvQmZhb%2BNsqqDk7Obh7evjGBQA
expected result: type of
data
must be the one specified in argument typeThe text was updated successfully, but these errors were encountered: