[doctools] More type annotations with pyannotate