PR #4320 is now part of Leo's devel branch. This PR improves the mypy annotations in Leo's core, Qt code, and standard plugins. At last, all concrete widget and wrapper classes have accurate annotations. These annotations clarify inherently complex code. These annotations should be of great value to future maintainers.
I have carefully documented all code changes in addition to the annotations. All such changes could be buggy. Please report any problems immediately.
Edward
P.S. This PR will have little effect on LeoJS. LeoJS contains full annotations because Typescript requires them.
P.P.S. Info issue #1585 now contains the notes in the PR's first comment.
EKR