Skip to content

Add hdmf.typing: replace docval with type hints (Phase 1-2 of #1129) - #1526

Draft
bendichter wants to merge 8 commits into
devfrom
typing-compat-layer
Draft

Add hdmf.typing: replace docval with type hints (Phase 1-2 of #1129)#1526
bendichter wants to merge 8 commits into
devfrom
typing-compat-layer

Drop PEP 563 annotations from migrate.py for autodoc resolution

7cb9cec
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jul 4, 2026 in 0s

91.79% (-1.44%) compared to b3685cb

View this Pull Request on Codecov

91.79% (-1.44%) compared to b3685cb

Details

Codecov Report

❌ Patch coverage is 79.04947% with 216 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.79%. Comparing base (b3685cb) to head (7cb9cec).

Files with missing lines Patch % Lines
src/hdmf/typing/migrate.py 63.09% 84 Missing and 33 partials ⚠️
src/hdmf/typing/testing.py 69.47% 20 Missing and 9 partials ⚠️
src/hdmf/typing/_compat.py 85.31% 14 Missing and 12 partials ⚠️
src/hdmf/typing/_decorator.py 84.17% 14 Missing and 8 partials ⚠️
src/hdmf/typing/_shapes.py 79.48% 4 Missing and 4 partials ⚠️
src/hdmf/typing/_validators.py 89.28% 4 Missing and 2 partials ⚠️
src/hdmf/typing/_docstrings.py 80.00% 2 Missing and 2 partials ⚠️
src/hdmf/typing/_types.py 83.33% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1526      +/-   ##
==========================================
- Coverage   93.22%   91.79%   -1.44%     
==========================================
  Files          41       50       +9     
  Lines       10168    11027     +859     
  Branches     2100     2302     +202     
==========================================
+ Hits         9479    10122     +643     
- Misses        413      558     +145     
- Partials      276      347      +71     

☔ 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.