Re-exports§
pub use types::ide_support::ImplementationsFinder;pub use types::ide_support::ImportAliasResolution;pub use types::ide_support::ResolvedDefinition;pub use types::ide_support::TypeHierarchyClass;pub use types::ide_support::contains_identifier;pub use types::ide_support::definitions_for_attribute;pub use types::ide_support::definitions_for_bin_op;pub use types::ide_support::definitions_for_imported_symbol;pub use types::ide_support::definitions_for_name;pub use types::ide_support::definitions_for_unary_op;pub use types::ide_support::map_stub_definition;pub use types::ide_support::type_hierarchy_prepare;pub use types::ide_support::type_hierarchy_subtypes;pub use types::ide_support::type_hierarchy_supertypes;pub use types::DisplaySettings;pub use types::FixtureBinding;pub use types::ProgramEnvironment;pub use types::TypeQualifiers;pub use types::fixture_bindings_for_parameter;
Modules§
Macros§
- declare_
lint - Declares a lint rule with the given metadata.
Structs§
- Analysis
Settings - Completion
- A suggestion for code completion.
- Expected
String Literal Completion - IOError
Diagnostic - Member
Definition - The type and definition of a symbol.
- Program
- Python
Version File Source - Information regarding the file and
TextRangeof the configuration from which we inferred the Python version. - Python
Version With Source - A Python version with its source.
- Semantic
Model - The primary interface the LSP should use for querying semantic information about a
File. - Site
Packages Paths - An ordered, deduplicated set of
site-packagessearch paths.
Enums§
- Name
Kind - A classification of symbol names.
- Python
Environment - Python
Version Source - The source of the Python version.
- Site
Packages Discovery Error - Enumeration of ways in which
site-packagesdiscovery can fail. - SysPrefix
Path Origin - Enumeration of sources a
sys.prefixpath can come from.
Traits§
- Db
- Database giving access to semantic information about a Python program.
- HasDefinition
- HasType
Functions§
- check_
file - check_
file_ unwrap - default_
lint_ registry - Returns the default registry with all known semantic lints.
- fix_
all_ diagnostics - Applies the safe fixes for all diagnostics and writes the changed files back to disk.
- inferred_
python_ version_ source_ annotation - Return an annotation for the source from which ty inferred the Python version, when one exists.
- suppress_
all_ diagnostics - Adds suppressions to all lint diagnostics and writes the changed files back to disk.
- suppress_
single - Creates a fix to suppress a single lint.