nvda
a674652b - Work around circular import by not evaluating type hints at import time (#13135)

Commit
4 years ago
Work around circular import by not evaluating type hints at import time (#13135) Fix-up of PR #12845 Summary of the issue: PR #12845 added additional type hints to methods on appModuleHandler.AppModule. Unfortunately presence of these annotations can cause a crash when uninstalling add-ons importing gui in their installTasks module. Description of how this pull request fixes the issue: This PR takes advantage of Postponed Evaluation of Annotations introduced in PEP 563 to avoid type hints in appModuleHandler being evaluated at import time.
Author
Parents
Loading