[cleanup] Remove desupported args which are deprecated with FutureWarning
[cleanup] Remove desupported args which are deprecated with FutureWarning

Also add some type hints

Change-Id: I0c3889464530dcc55039e945bb0a89c5a0c500e8

wikimedia/pywikibot-core,wikimedia/pywikibot-core