Steps to replicate the issue (include links if applicable):
A lot of parts of pywikibot use classes from other submodules, but it relies on the implicit importation of submodules from other submodules for it. This is incompatible with typecheckers like Pylance (https://github.com/microsoft/pylance-release/issues/4014).
What happens?: Type checkers cannot resolve forward references when the submodule import is not explicit.
What should have happened instead?: Type checking should work
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):