fixed type annotation

dicts raise errors here.