v1.6.6
What's changed
Added
- Parameter type hints across the public API (#345). Every public analysis method now annotates its parameters (not just its return type): the motion methods, optical flow, pose, the space-time visualisations, directograms/impacts, SSM, cropping, heatmap, history, videograms, and the audio + audio–movement suite, plus the public
_utilshelpers and theMgVideoinline methods. Hints are lazy (from __future__ import annotations) so there is no runtime or import-speed cost. Combined with thepy.typedmarker from 1.6.4, downstream IDEs and type checkers now see a fully-typed public API.
Internal
- Fixed the CI mypy step, which was aborting on a third-party file before checking our code; settings are now centralised in
pyproject.tomland shared by CI and nox. The internal-typing backlog is tracked in #350.
Full changelog: https://github.com/fourMs/MGT-python/blob/master/CHANGELOG.md