pyright
pyright copied to clipboard
type error on `map`
Environment data
- Pylance version: v2024.8.1
- OS and version: win11
- Python version (& distribution if applicable, e.g. Anaconda): 3.11.4
Code Snippet
a: list[int | None] = [1, 2, 3, None]
b = map(lambda x: x or 0, a)
Expected behavior
type(b) == map[int]