change attribute type hints form num to double