rope.contrib.autoimport.defs
Definitions of types for the Autoimport program.
Classes
Describes the source of the package, for sorting purposes. |
|
Descriptor of information to get names from a module. |
|
Descriptor of information to get names from a file using ast. |
|
Descriptor of information to get names using imports. |
|
Describes the type of package, to determine how to get the names from it. |
|
Describes the type of Name for lsp completions. Taken from python lsp server. |
|
Attributes of a package. |
|
A module alias to be added to the database. |
|
A Name to be added to the database. |
|
Partial information of a Name. |
|
Search Result. |
Module Contents
- class rope.contrib.autoimport.defs.Source(*args, **kwds)
Bases:
enum.EnumDescribes the source of the package, for sorting purposes.
- PROJECT = 0
- MANUAL = 1
- BUILTIN = 2
- STANDARD = 3
- SITE_PACKAGE = 4
- UNKNOWN = 5
- class rope.contrib.autoimport.defs.ModuleInfo
Bases:
NamedTupleDescriptor of information to get names from a module.
- filepath: pathlib.Path | None
- class rope.contrib.autoimport.defs.ModuleFile
Bases:
ModuleInfoDescriptor of information to get names from a file using ast.
- filepath: pathlib.Path
- class rope.contrib.autoimport.defs.ModuleCompiled
Bases:
ModuleInfoDescriptor of information to get names using imports.
- filepath = None
- class rope.contrib.autoimport.defs.PackageType(*args, **kwds)
Bases:
enum.EnumDescribes the type of package, to determine how to get the names from it.
- BUILTIN = 0
- STANDARD = 1
- COMPILED = 2
- SINGLE_FILE = 3
- class rope.contrib.autoimport.defs.NameType(*args, **kwds)
Bases:
EnumDescribes the type of Name for lsp completions. Taken from python lsp server.
- Text = 1
- Method = 2
- Function = 3
- Constructor = 4
- Field = 5
- Variable = 6
- Class = 7
- Interface = 8
- Module = 9
- Property = 10
- Unit = 11
- Value = 12
- Enum = 13
- Keyword = 14
- Snippet = 15
- Color = 16
- File = 17
- Reference = 18
- Folder = 19
- EnumMember = 20
- Constant = 21
- Struct = 22
- Event = 23
- Operator = 24
- TypeParameter = 25
- class rope.contrib.autoimport.defs.Package
Bases:
NamedTupleAttributes of a package.
- path: pathlib.Path | None
- type: PackageType
- class rope.contrib.autoimport.defs.Alias
Bases:
NamedTupleA module alias to be added to the database.
- class rope.contrib.autoimport.defs.Name
Bases:
NamedTupleA Name to be added to the database.
- class rope.contrib.autoimport.defs.PartialName
Bases:
NamedTuplePartial information of a Name.