From what I recall, the previous implementation was merging the ASTs of the generated stubs and the hand written ones
A possibly better alternative now could be to merge the docspec of the hand written stubs with the parsed docspec prior to generating the stubs.
From what I recall, the previous implementation was merging the ASTs of the generated stubs and the hand written ones A possibly better alternative now could be to merge the docspec of the hand written stubs with the parsed docspec prior to generating the stubs.