This depends on D7295 and D7384, which in turn was applied to 4222b9d5d4fb. I
made no attempt to keep it under 80 columns or blacken it. But it seems useful
to share now, because it is so time consuming to get this far, and presumably
much of this will entail actual fixes. These things were flagged by pytype
2019.12.06 under WSL.
The following bundlerepo warnings were fixed with assertions, but those
assertions fire when running the testsuite for some reason:
line 256, in __init__: No attribute 'ui' on bundlerepository [attribute-error] line 260, in __init__: No attribute 'ui' on bundlerepository [attribute-error] line 292, in __init__: No attribute 'ui' on bundlerepository [attribute-error] line 292, in __init__: No attribute 'vfs' on bundlerepository [attribute-error] line 330, in _writetempbundle: No attribute 'vfs' on bundlerepository [attribute-error] Called from (traceback): line 290, in __init__ line 341, in _writetempbundle: No attribute 'vfs' on bundlerepository [attribute-error] Called from (traceback): line 290, in __init__ line 378, in _consumemanifest: No attribute '_cgunpacker' on bundlerepository [attribute-error] line 379, in _consumemanifest: No attribute '_cgunpacker' on bundlerepository [attribute-error] line 380, in _consumemanifest: No attribute '_cgunpacker' on bundlerepository [attribute-error] line 382, in _consumemanifest: No attribute '_cgunpacker' on bundlerepository [attribute-error] line 406, in file: No attribute '_cgfilespos' on bundlerepository [attribute-error] line 412, in file: No attribute 'unfiltered' on bundlerepository [attribute-error] line 413, in file: No attribute 'svfs' on bundlerepository [attribute-error] line 413, in file: No attribute 'file' on super [attribute-error] line 420, in close: No attribute '_bundlefile' on bundlerepository [attribute-error] line 422, in close: No attribute 'vfs' on bundlerepository [attribute-error] line 441, in setparents: No attribute 'setparents' on super [attribute-error] line 441, in setparents: No attribute 'ui' on bundlerepository [attribute-error] line 443, in setparents: No attribute 'ui' on bundlerepository [attribute-error]