Open Issues Need Help
View All on GitHubAI Summary: Investigate and resolve thread-safety issues in the `defer_imports` Python library. This involves debugging the current implementation to identify why it fails in multithreaded environments (specifically CPython with free-threading and PyPy3.9), and either fixing the code to be thread-safe or clearly documenting the limitations and adding a prominent warning to the README.
AI Summary: The task is to redesign the configuration API of the `defer_imports.ast_rewrite` module to improve its usability for both libraries and applications. This involves addressing potential misuses of the current API, ensuring proper uninstall behavior, and considering compatibility with various project structures (single-file, multi-file libraries, and large applications with vendored dependencies). The goal is to create a more robust and flexible API that prevents unintended consequences while maintaining its usefulness for different use cases.