Skip to content

v0.5.6: Full-package mypy compliance

Choose a tag to compare

@maruyamakoju maruyamakoju released this 19 Feb 16:40
· 36 commits to main since this release

What's new

Full-package mypy compliance (26 source files, 0 errors)

Since v0.5.4 shipped py.typed, downstream users running mypy on code that imports deltatau-audit were seeing 23 errors from 7 internal files. This release fixes all of them.

Changes:

  • metrics.py: Dict[str, Any] annotation on aggregation dict; renamed arr in bootstrap_ci to avoid shadowing List[float] param with ndarray reassignment
  • wrappers/speed.py, latency.py: Optional[int] for seed; Optional[List[Any]] for schedule; _obs_buffer: deque annotation
  • adapters/torch_policy.py: action_out: Any resolves conflicting branch types
  • adapters/cleanrl.py: assert spec is not None / assert spec.loader is not None before module_from_spec / exec_module
  • report/generator.py: Optional[List[Any]] for comparison; renamed binary/text file handles to prevent variable-type collision
  • fixer.py: Optional[List[Any]] for audit_speeds
  • CI: audit-smoke.yml now runs mypy deltatau_audit/ (all 26 files) instead of 3

Full changelog: https://github.com/maruyamakoju/deltatau-audit/blob/main/CHANGELOG.md

Full Changelog: v0.5.5...v0.5.6