Feature/mypy and formatting#217
Open
natangqm wants to merge 17 commits into
Open
Conversation
- 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>
|
|
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.