Update typehinting.

Signed-off-by: crynobone <crynobone@gmail.com>
Update structures.

Signed-off-by: crynobone <crynobone@gmail.com>