tmt
tmt copied to clipboard
Handling of `ModuleImporter`
Trying to get an understanding with @happz on the issues in https://github.com/teemtee/tmt/issues/2922#issuecomment-2376776356
The main issue is that not all IDEs handle the ModuleType
well, PyCharm for example fails to auto-complete, while the type-checkers seem to need special workarounds. I've tried out an alternative design in: https://github.com/LecrisUT/optional_imports
But the more I think about it, what are the purpose of using ModuleImporter
over just try import
in each relevant module?