Skip to main content

Crate ty_python_semantic

Crate ty_python_semantic 

Source

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§

lint
types

Macros§

declare_lint
Declares a lint rule with the given metadata.

Structs§

AnalysisSettings
Completion
A suggestion for code completion.
ExpectedStringLiteralCompletion
IOErrorDiagnostic
MemberDefinition
The type and definition of a symbol.
Program
PythonVersionFileSource
Information regarding the file and TextRange of the configuration from which we inferred the Python version.
PythonVersionWithSource
A Python version with its source.
SemanticModel
The primary interface the LSP should use for querying semantic information about a File.
SitePackagesPaths
An ordered, deduplicated set of site-packages search paths.

Enums§

NameKind
A classification of symbol names.
PythonEnvironment
PythonVersionSource
The source of the Python version.
SitePackagesDiscoveryError
Enumeration of ways in which site-packages discovery can fail.
SysPrefixPathOrigin
Enumeration of sources a sys.prefix path 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.