Skip to content

Add missing type annotations. - #8644

Merged
Jens Hedegaard Nielsen (jenshnielsen) merged 20 commits into
microsoft:mainfrom
jenshnielsen:fix_deprecated_test_keithley
Oct 22, 2026
Merged

Jens Hedegaard Nielsen (jenshnielsen) merged 20 commits into
microsoft:mainfrom
jenshnielsen:fix_deprecated_test_keithley

Conversation

@jenshnielsen

Copy link
Copy Markdown
Collaborator

Add a bunch of missing type annotations and fix a few bugs in the related code

@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.59%. Comparing base (ca6f357) to head (9c3186a).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8644      +/-   ##
==========================================
- Coverage   72.62%   72.59%   -0.03%     
==========================================
  Files         307      307              
  Lines       32431    32431              
==========================================
- Hits        23552    23543       -9     
- Misses       8879     8888       +9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…gument

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Annotate dataset test fixtures, helpers, and test signatures while preserving intentional dynamic typing boundaries and constructor return annotations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
None of the overloads gave only_names/only_types a None default, so
calling with no arguments or with only one of them as a keyword
matched no overload.
The plot button test received the plt.show mock as its tab fixture
and neither test asserted anything, while the widget callback swallows
all exceptions. Assert on the created tab, the plt.show call and the
exported file, and export into tmp_path rather than the cwd.
The datasets were never prepared and results were keyed by name rather
than ParamSpecBase, so no data was ever added and the tests only
round-tripped empty datasets. Also assert that the data survives the
round trip.
acquire only uses AcquisitionInterface methods but required an
AcquisitionController. AcquisitionController also subclassed
AcquisitionInterface[Any], so its type parameter never reached the
return type of acquire.
With the minimum supported typing_extensions, Parameter[int] fails at
runtime since TypeVar defaults are not applied, which broke test
collection.
Older versions do not apply TypeVar defaults, so Parameter[int] fails
at runtime on Python 3.12.
Comment thread tests/test_sweep_values.py
@jenshnielsen
Jens Hedegaard Nielsen (jenshnielsen) removed this pull request from the merge queue due to a manual request Oct 22, 2026
Merged via the queue into microsoft:main with commit edd879c Oct 22, 2026
22 of 25 checks passed
@jenshnielsen
Jens Hedegaard Nielsen (jenshnielsen) deleted the fix_deprecated_test_keithley branch October 22, 2026 13:16
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