You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
🤔 What about decoupling the plugins into their own sub-projects? That way they don't need to try import at all. They could live in the same repo under subdirectories and share the same versioning. Packit supports building monolith repo although there are no dependency structure for copr builds
Trying to get an understanding with @happz on the issues in #2922 (comment)
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_importsBut the more I think about it, what are the purpose of using
ModuleImporter
over justtry import
in each relevant module?The text was updated successfully, but these errors were encountered: