Skip to content

Feature/mypy and formatting#217

Open
natangqm wants to merge 17 commits into
mainfrom
feature/mypy_and_formatting
Open

Feature/mypy and formatting#217
natangqm wants to merge 17 commits into
mainfrom
feature/mypy_and_formatting

Conversation

@natangqm

@natangqm natangqm commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

natangqm and others added 10 commits May 31, 2026 17:56
- requires-python: >=3.9,<3.13 → >=3.10,<3.14
- CI matrix: ["3.9"..."3.12"] → ["3.10"..."3.13"]
- black target-version: py39 → py310

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
quam_test.yaml becomes a thin dispatcher; all matrix defaults live
in run_tests.yaml so they are defined in one place.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

natangqm and others added 7 commits June 1, 2026 10:52
…pressions

In mypy 2.1.0, type: ignore on the opening line of a parenthesized
multi-line expression does not suppress errors on continuation lines.
Collapse affected patterns to single lines and fix MigrateBase and
callback arg-type suppressions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tPulse

Instead of suppressing the mypy error, validate at runtime that the
looked-up pulse is actually a BaseReadoutPulse and raise a clear
ValueError if not.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- channels.py: replace type: ignore[operator] with elif/else restructure
  that lets mypy narrow Optional[int] to int; replace unreachable branch
  with explicit raise ValueError
- pulses.py: replace type: ignore[arg-type] on float tuple case with
  isinstance checks on both elements; keep type: ignore[assignment] for
  ndarray case which is intentionally outside the declared return union
- Add tests for calculate_waveform covering float tuple and ndarray tuple
  inputs, verified to produce identical results before and after changes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants