Fix mypy errors with canonicaljson 1.6.3.