Bump version and fix type hint on IV.
Merge branch '4.0'