facebook / facebook/pyrefly

Too few values when unpacking a single-char string

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

Description

Unpacking `"x"` (length 1) into 2 targets should produce an error.

```python
a, b = "x"
```

**Sandbox:** [Pyrefly](https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXAAlHAhgOwCYCMD2AHgHQAOAnksiOgDTK7IC8yAOiIe65iAL700AxgBcIANxgAxaDCogMOAiQp8gA)

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.