дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 09:11:10 +02:00
Fixes for the Python import updates on module and package moves: - Nested attribute chains got overlapping edits and the move failed; each expression now gets one edit, on its longest moved prefix. - Cancelling ends the request after the import scan and returns cancelled instead of partial edits. - In monorepos, module names come only from Python roots (detected from a Python project file or marked by the user), a moved folder counts only when it holds .py/.pyi files, and an import is left alone when the importing file's own root has a module of that name. - Files are read through the documents layer, so a BOM or another encoding no longer shifts the edits. - Moving a .pyi stub without its .py changes no imports. - Rewriting import pkg.models keeps pkg bound when the file still uses pkg.helper(). - Statements sharing a line stay valid, and moved names are removed line by line, keeping the remaining names' layout and comments. Closes #6475 Co-authored-by: wildcatDownstairs <[email protected]>