Expand description
Handle syntactic aspects of inserting a new use item.
Structsยง
Enumsยง
- Import
Granularity - How imports should be grouped into use statements.
- Import
Granularity ๐Guess - Import
Group ๐ - Import
Scope Kind - Prefix
Kind
Functionsยง
- ast_
to_ remove_ for_ path_ in_ use_ stmt - guess_
granularity_ ๐from_ scope - insert_
use - Insert an import path into the given file/node. A
mergevalue of none indicates that no import merging is allowed to occur. - insert_
use_ ๐ - insert_
use_ as_ alias - insert_
use_ ๐with_ alias_ option - is_
inner_ ๐attribute - remove_
path_ if_ in_ use_ stmt