Quality: deque.__init__ missing overload for 3-argument form
invalidQualityscope:port:samd
## Problem
The `deque` stub in `micropython-samd-stubs` does not have an overload for the 3-argument constructor form `deque(iterable, maxlen, lock)`, causing a type error.
## Affected stub package / version
- **Package:** `micropython-samd-stubs`
- **Version:** `v1.28.0.post3`
## Affected module / symbol
- Module: `collections` (or `ucollections`)
- Class: `deque`
- Method: `__init__`
## Current behavior
Pyright reports:
```
No overloads for "__init__" match the provided arguments
Argument types: (list[Unknown], Unknown, Literal[1])
```
when calling `deque([], maxlen, 1)`.
## Expected behavior
The stub should include an overload (or updated signature) accepting `(iterable, maxlen, lock: int = ...)` so that the 3-argument form type-checks correctly.
## Parent issue
Reported in #888
Related to #888
> Generated by [quality-issue-triage](https://github.com/Josverl/micropython-stubs/actions/runs/25634753270/agentic_workflow) for issue #888 · ● 155.9K · [◷](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: 25634753270, workflow_id: quality-issue-triage, run: https://github.com/Josverl/micropython-stubs/actions/runs/25634753270 -->
<!-- gh-aw-workflow-id: quality-issue-triage -->
<!-- gh-aw-workflow-call-id: Josverl/micropython-stubs/quality-issue-triage -->
关闭于 2026-05-10 1 条评论