dict type incorrectly converted (widened?) to object via TypeVar and overload #16282
Labels
Content-Length: 252212 | pFad | https://github.com/python/mypy/issues/16282
75Fetched URL: https://github.com/python/mypy/issues/16282
Alternative Proxies:
Bug Report
In the snippet below I'd expect the revealed type to be
def () -> typing.Awaitable[builtins.dict]
, notdef () -> typing.Awaitable[builtins.object]
.To Reproduce
https://mypy-play.net/?mypy=master&python=3.12&gist=f596993883d9235e669e38dbe212909e
Actual Behavior
main.py:18: note: Revealed type is "def () -> typing.Awaitable[builtins.object]"
Your Environment
mypy.ini
(and other config files):This may be related to #12385 - closest issue I can find.
The text was updated successfully, but these errors were encountered: