Skip to main content

codingfix-from-imports

Replace "from X import Y" style imports with "import X" and update usages throughout a file

Quellinformationen

Repository
causify-ai/helpers
Letzte Quellaktivität
28. Februar 2026 um 18:01
Erkannte Sprache von SKILL.md
Englisch
Sterne
146
Forks
162

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
coding.fix_from_imports
description
Replace "from X import Y" style imports with "import X" and update usages throughout a file
- Replace any Python statement like `from X import Y` with the form `import X` and then replace the uses of `Y` with `X.Y` - For aliased imports `from X import Y as Z`, convert to `import X` and replace all uses of `Z` with `X.Y` - For nested module imports `from X.Y import Z`, convert to `import X.Y` and replace all uses of `Z` with `X.Y.Z` - The only ones that can stay as `from X import Y` are: ``` from __future__ import annotations from typing import Any, Dict, List, Optional, Tuple, Union, ... (any typing name) from IPython.display import display ```
Auf GitHub ansehen