Quality: `deque.__init__` has wrong signature in micropython-samd-stubs
invalid
## Problem
The `deque.__init__` stub does not accept three-argument form `deque([], maxlen, 1)`, causing a type error on valid MicroPython code.
**Affected stub package:** `micropython-samd-stubs`
**Stub version:** v1.28.0.post3
**Affected module/symbol:** `collections.deque.__init__`
## Current behavior
```
foo.py:107:23 error No overloads for "__init__" match the provided arguments
Argument types: (list[Unknown], Unknown, Literal[1])
```
The stub's `__init__` overloads do not cover the three-argument form `deque(iterable, maxlen, flags)` used in MicroPython.
## Expected behavior
The `deque.__init__` stub should include an overload accepting `(iterable, maxlen, flags)` so that `deque([], maxlen, 1)` is accepted by the type checker.
## Minimal repro
```python
from collections import deque
d = deque([], 10, 1) # error: No overloads for "__init__" match the provided arguments
```
## Parent issue
See #888 for the original report and full reproduction context.
Related to #888
> [!NOTE]
> <details>
> <summary>🔒 Integrity filter blocked 3 items</summary>
>
> The following items were blocked because they don't meet the GitHub integrity level.
>
> - [#733](https://github.com/Josverl/micropython-stubs/issues/733) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#732](https://github.com/Josverl/micropython-stubs/issues/732) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
> - [#734](https://github.com/Josverl/micropython-stubs/issues/734) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
>
> To allow these resources, lower `min-integrity` in your GitHub frontmatter:
>
> ```yaml
> tools:
> github:
> min-integrity: approved # merged | approved | unapproved | none
> ```
>
> </details>
> Generated by [quality-issue-triage](https://github.com/Josverl/micropython-stubs/actions/runs/25634753244/agentic_workflow) for issue #888 · ● 1.2M · [◷](https://github.com/search?q=repo%3AJosverl%2Fmicropython-stubs+is%3Aissue+%22gh-aw-workflow-call-id%3A+Josverl%2Fmicropython-stubs%2Fquality-issue-triage%22&type=issues)
<!-- gh-aw-agentic-workflow: quality-issue-triage, engine: copilot, version: 1.0.40, model: claude-sonnet-4.6, id: 25634753244, workflow_id: quality-issue-triage, run: https://github.com/Josverl/micropython-stubs/actions/runs/25634753244 -->
<!-- gh-aw-workflow-id: quality-issue-triage -->
<!-- gh-aw-workflow-call-id: Josverl/micropython-stubs/quality-issue-triage -->
关闭于 2026-05-10 0 条评论