facebook / facebook/pyrefly

pyrefly doesn't get error with `dict(*{'A': 10})` while PVM gets error

Open
#2,270 1 comment 0 reactions 0 assignees View on GitHub
needs-discussion typechecking
Dominant language
Rust
Stars
7k
Forks
516
PR merge metrics
No merged PRs in 30d

Description

### Describe the Bug

*Memo:
- python test.py
- pyrefly check test.py
- Python 3.14.0
- pyrefly 0.46.1

PVM gets the error with `dict(*{'A': 10})` but pyrefly doesn't get error as shown below:

```python
# python # pyrefly
v = dict(*{'A': 10}) # Error # No error
```

> ValueError: dictionary update sequence element #0 has length 1; 2 is required

### Sandbox Link

_No response_

### (Only applicable for extension issues) IDE Information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.