mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
Fix typo in "scope_tutorial.ipynb" file.
This commit is contained in:
parent
f9628ca767
commit
cda91dfaae
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@
|
|||
"Automatically Remove Unused Import\n",
|
||||
"==================================\n",
|
||||
"Unused import is a commmon code suggestion provided by lint tool like `flake8 F401 <https://lintlyci.github.io/Flake8Rules/rules/F401.html>`_ ``imported but unused``.\n",
|
||||
"Even though reporing unused import is already useful, with LibCST we can provide automatic fix to remove unused import. That can make the suggestion more actionable and save developer's time.\n",
|
||||
"Even though reporting unused import is already useful, with LibCST we can provide automatic fix to remove unused import. That can make the suggestion more actionable and save developer's time.\n",
|
||||
"\n",
|
||||
"An import statement may import multiple names, we want to remove those unused names from the import statement. If all the names in the import statement are not used, we remove the entire import.\n",
|
||||
"To remove the unused name, we implement ``RemoveUnusedImportTransformer`` by subclassing :class:`~libcst.CSTTransformer`. We overwrite ``leave_Import`` and ``leave_ImportFrom`` to modify the import statements.\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue