Introduction
With PEP526 a new syntax for type annotating of variables including class variables and instance variables was added i n Python 3.6
https://docs.python.org/3.6/whatsnew/3.6.html#pep-526-syntax-for-variable-annotations
What to do
Replace type comments with type annotations like:
argvu = [] # type: List[str]
should become
argvu: List[str] = []
This is similar to PEP484 which introduced type annotations for function/method parameters
These issues can be found at https://codesearch.wmcloud.org/pywikibot/?q=%23%20type%5C%3A%20%5B%5Ei%5D.%2B&i=nope&files=&excludeFiles=&repos=
Split patches into parts of only a couple of affected files. This makes it easier to review.
This task is not ready to go yet. We are waiting for Python 3.5 support has been dropped; this will become a good-first-task then.