reportCallIssue with Python 3.15 `frozendict` when called with arguments
Author: matthewyu0311Created Sep 12, 2026Updated Sep 14, 2026
Labelsbugfixed in next version (main)
Describe the bug
I was trying out Python 3.15's new frozendict with pre-release Pyright.
While Pyright does come with the correct typeshed-fallback stubs which contain the correct overloaded forms of frozendict, it still doesn't recognize the argument forms of frozendict() when in use.
Code or Screenshots
foo = frozendict() # OK with no arguments
bar = frozendict({}) # Expected 0 positional arguments (reportCallIssue)
baz = frozendict(qux="spam") # No parameter named "qux" (reportCallIssue)VS Code extension or command-line Both VS Code extension (Pylance 2026.3.102 pre-release) and Pyright Playground exhibited the same issue as of today (September 12 2026).
Source: microsoft/pyright