MCPcopy Create free account

hub / github.com/astral-sh/ruff / functions

Functions31,562 in github.com/astral-sh/ruff

↓ 4 callersMethodwith_materialization
( self, db: &'db dyn Db, materialization: Option<MaterializationKind>, )
crates/ty_python_semantic/src/types/recursive.rs:471
↓ 4 callersMethodwith_provenance
(self, provenance: Provenance<'db>)
crates/ty_python_semantic/src/types/call.rs:516
↓ 4 callersMethodwith_provenance
(mut self, provenance: ConstraintProvenance)
crates/ty_python_semantic/src/types/constraints/variables.rs:511
↓ 4 callersMethodwith_raw_initialization_options
Set raw initialization JSON for malformed or startup-only settings.
crates/ty_server/tests/e2e/main.rs:1354
↓ 4 callersMethodwith_show_syntax_errors
(mut self, show_syntax_errors: bool)
crates/ty_server/src/session/options.rs:183
↓ 4 callersMethodwith_source_parameter_index
Records the source position without replacing a synthesized parameter's IDE definition. A `TypedDict` field can then keep its declaration for navigat
crates/ty_python_semantic/src/types/signatures.rs:6207
↓ 4 callersMethodwith_target
(self, target: Option<NavigationTarget>)
crates/ty_ide/src/inlay_hints.rs:334
↓ 4 callersMethodwithout_context_collection
Temporarily suppress error context collection for the duration of `f`. Note: we may eventually not need this method once we properly retain error con
crates/ty_python_semantic/src/types/relation.rs:1848
↓ 4 callersFunctionworkspace_builder
()
crates/ty_server/tests/e2e/script_preparation.rs:176
↓ 4 callersMethodworkspace_discovery_enabled
Whether uv should be used for workspace discovery.
crates/ty_project/src/uv.rs:58
↓ 4 callersMethodworkspace_root
(&self)
crates/ty_project/src/uv/metadata.rs:31
↓ 4 callersMethodworkspaces
(&self)
crates/ty_server/src/session.rs:467
↓ 4 callersFunctionwrite_executable
(case: &CliTest, path: impl AsRef<Path>)
crates/ty/tests/cli/server.rs:256
↓ 4 callersMethodwrite_fmt
(&mut self, args: Arguments<Context>)
crates/ruff_formatter/src/buffer.rs:147
↓ 3 callersFunctionToml
({ height = 24, width = 24, }: { height?: number; width?: number; })
playground/shared/src/Icons.tsx:259
↓ 3 callersMethod_
(_: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:46
↓ 3 callersFunction_ctype_from_dtype
(dtype)
crates/ruff_benchmark/resources/numpy/ctypeslib.py:458
↓ 3 callersFunction_ctype_ndarray
Create an ndarray of the given element type and shape
crates/ruff_benchmark/resources/numpy/ctypeslib.py:353
↓ 3 callersFunctiona
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B012.py:1
↓ 3 callersMethodadd
Add a resolved [`Settings`] under a given [`PathBuf`] scope.
crates/ruff_workspace/src/resolver.rs:144
↓ 3 callersMethodadd
(&self, request: ImportRequest<'_>)
crates/ty_ide/src/importer.rs:26
↓ 3 callersMethodadd
(&mut self, element: Type<'db>, reachability: Truthiness)
crates/ty_python_semantic/src/place.rs:2140
↓ 3 callersMethodadd_bug_sub_diagnostics
Adds sub diagnostics that tell the user that this is a bug in ty and asks them to open an issue on GitHub.
crates/ruff_db/src/diagnostic/mod.rs:104
↓ 3 callersMethodadd_directive
(&mut self, directive: MdtestDirective, value: Option<String>)
crates/mdtest/src/parser.rs:1111
↓ 3 callersMethodadd_expression_range
Adds a folding range for an expression.
crates/ty_ide/src/folding_range.rs:152
↓ 3 callersMethodadd_in_place_impl
(&mut self, ty: Type<'db>, seen_aliases: &mut Vec<Type<'db>>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:799
↓ 3 callersMethodadd_keys_to_projection
( &self, db: &'db dyn Db, operator: ComparisonOperator, projection: &mut EnumK
crates/ty_python_semantic/src/types/equality/enums.rs:1046
↓ 3 callersMethodadd_not_constraint
Adds a new reachability constraint that is the ternary NOT of an existing one.
crates/ty_python_core/src/reachability_constraints.rs:393
↓ 3 callersMethodadd_parenthesized_expression_range
Adds a folding range for an expression if it is enclosed in parentheses.
crates/ty_ide/src/folding_range.rs:186
↓ 3 callersMethodadd_place_from_target
(&mut self, target: &ast::Expr)
crates/ty_python_core/src/builder/loop_bindings_visitor.rs:37
↓ 3 callersMethodadd_skip_query
Attempts to add the given completion to this collection. Unlike `Completion::add`, this will skip matching the query pattern associated with this col
crates/ty_ide/src/completion.rs:276
↓ 3 callersFunctionadd_suppression_inner
( path: &Path, diagnostics: &[Diagnostic], locator: &Locator, comment_ranges: &CommentRanges,
crates/ruff_linter/src/noqa.rs:816
↓ 3 callersMethodadd_symbol
Add a new symbol and return its ID.
crates/ty_ide/src/symbols.rs:850
↓ 3 callersFunctionadvance_candidates
Finds candidates for the next component of a module name, starting from candidates for its parent prefix. `filter` determines which file types may sup
crates/ty_module_resolver/src/resolve/search.rs:1154
↓ 3 callersMethodalias_spec
(self)
crates/ty_python_semantic/src/types/special_form.rs:986
↓ 3 callersFunctionall_arguments_range
Return the range for a binding diagnostic that is not related to one specific argument. For a normal function call, this is just the range of the ent
crates/ty_python_semantic/src/types/call/bind.rs:11447
↓ 3 callersMethodall_initialized
Returns `true` if all workspaces have been [initialized]. [initialized]: Workspaces::initialize
crates/ty_server/src/session.rs:1801
↓ 3 callersFunctionall_symbols
Get all symbols matching the query string. Returns symbols from all files in the workspace and dependencies, filtered by the query.
crates/ty_ide/src/all_symbols.rs:17
↓ 3 callersFunctionall_values_compare_equal
Return whether every value represented by `ty` is known to compare equal to every other value. Comparison evaluation is reused so this stays aligned
crates/ty_python_semantic/src/types/equality.rs:925
↓ 3 callersMethodallow
Reports whether or not tuple size promotion is allowed for the given typevar in light of the constraints recorded on this object.
crates/ty_python_semantic/src/types/tuple/promotion.rs:157
↓ 3 callersMethodanonymized_line_numbers
Whether to anonymize line numbers in full diagnostic output.
crates/ruff_db/src/diagnostic/mod.rs:1492
↓ 3 callersMethodany_enabled_in
(&self, rules: &RuleSet)
crates/ruff_linter/src/settings/rule_table.rs:39
↓ 3 callersFunctionany_over_type_impl
Shared implementation for type searches.
crates/ty_python_semantic/src/types/visitor.rs:981
↓ 3 callersMethodany_reachable
( mut self, db: &'db dyn Db, mut predicate: impl FnMut(DefinitionState<'db>) -> bool,
crates/ty_python_semantic/src/reachability.rs:2307
↓ 3 callersMethodappend
(self, x)
crates/ruff_linter/resources/test/fixtures/perflint/PERF401.py:66
↓ 3 callersMethodapply
(self, data: &mut FileCacheData)
crates/ruff/src/cache.rs:487
↓ 3 callersMethodapply_changes
(&mut self, changes: &[ChangeEvent])
crates/ty_project/src/db/changes.rs:94
↓ 3 callersMethodapply_changes
( &mut self, changes: Vec<lsp_types::TextDocumentContentChangeEvent>, new_version: Doc
crates/ty_server/src/document/text_document.rs:93
↓ 3 callersFunctionapply_edits
Apply edits from right to left so each replacement leaves the remaining offsets unchanged.
crates/ty_ide/src/inlay_hints.rs:1498
↓ 3 callersMethodapply_in_node
Determine whether to actually apply fluent layout in attribute, call and subscript formatting
crates/ruff_python_formatter/src/expression/mod.rs:1120
↓ 3 callersFunctionapply_type_alias_specialization
( db: &'db dyn Db, ty: Type<'db>, specialization: Specialization<'db>, recursion_context: Opti
crates/ty_python_semantic/src/types/type_alias.rs:456
↓ 3 callersMethodapply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: &[Type<'db>
crates/ty_python_semantic/src/types/generics.rs:1452
↓ 3 callersMethodapply_type_mapping_impl
Resolve or remap graph references while preserving their arguments.
crates/ty_python_semantic/src/types/recursive.rs:106
↓ 3 callersMethodapply_type_mapping_impl
Applies a type mapping to every constraint in this constraint set.
crates/ty_python_semantic/src/types/constraints.rs:874
↓ 3 callersMethodarbitrary_key_initialization_type
Returns the type that a value must be assignable to when initializing an arbitrary string key. The runtime key may name either an extra item or any d
crates/ty_python_semantic/src/types/typed_dict.rs:431
↓ 3 callersFunctionarbitrary_type
Constructs an arbitrary type. The `size` parameter controls the depth of the type tree. For example, a simple type like `int` has a size of 0, `Union
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:543
↓ 3 callersMethodarchive_reader
Creates a reader with its own cursor over the shared archive data. `ZipArchive` stores the current seek position in its reader. Cloning it gives each
crates/ruff_db/src/vendored.rs:187
↓ 3 callersMethodare_shadowed
(self)
crates/ty_python_core/src/use_def/place_state.rs:176
↓ 3 callersMethodargument_alternatives
Returns the expanded alternatives of an argument, computing them at most once.
crates/ty_python_semantic/src/types/call/arguments.rs:924
↓ 3 callersMethodas_binary_operator
Returns the binary [`Operator`] that corresponds to the current token, if it's a binary operator, otherwise return [None]. Use [`as_augmented_assign_
crates/ruff_python_ast/src/token.rs:554
↓ 3 callersMethodas_boolean_literal_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2458
↓ 3 callersMethodas_disjointness_checker
(&self)
crates/ty_python_semantic/src/types/relation.rs:3355
↓ 3 callersMethodas_generator_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2051
↓ 3 callersMethodas_mut_slice
(&mut self)
crates/ruff_index/src/vec.rs:57
↓ 3 callersMethodas_override
Returns `Some(true)` for [`Self::Always`], `Some(false)` for [`Self::Never`], and `None` for [`Self::Auto`].
crates/ruff_command_line/src/color.rs:67
↓ 3 callersMethodas_ref
(&self)
crates/ruff_python_ast/src/nodes.rs:4070
↓ 3 callersMethodas_ruff_file
Returns the [`SourceFile`] attached to this [`Span`].
crates/ruff_db/src/diagnostic/mod.rs:1281
↓ 3 callersMethodas_slice
Borrows the available solution paths, including fallback bindings if solving was incomplete. Match the outcome directly when completeness matters.
crates/ty_python_semantic/src/types/constraints.rs:4820
↓ 3 callersMethodas_slice_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2791
↓ 3 callersMethodas_specialization
Convert this specialization mapping to a concrete specialization over its own generic context.
crates/ty_python_semantic/src/types/generics.rs:2418
↓ 3 callersMethodas_star_import
(&self)
crates/ty_python_core/src/definition.rs:972
↓ 3 callersMethodas_str
(self)
crates/ty_python_semantic/src/types/signatures.rs:6033
↓ 3 callersMethodas_str
(self)
crates/ty_python_semantic/src/types/subscript.rs:39
↓ 3 callersMethodas_str
(self)
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_comprehension.rs:247
↓ 3 callersMethodas_str
(self)
crates/ruff_linter/src/rules/flake8_pyi/rules/exit_annotations.rs:108
↓ 3 callersMethodas_str
(self)
crates/ruff_linter/src/rules/flake8_use_pathlib/rules/os_stat.rs:96
↓ 3 callersMethodas_system
(&self)
crates/ty_server/src/system.rs:46
↓ 3 callersMethodas_u16
Return the [`Int`] as an u16, if it can be represented as that data type.
crates/ruff_python_ast/src/int.rs:77
↓ 3 callersMethodas_u64
Return the [`Int`] as an u64, if it can be represented as that data type.
crates/ruff_python_ast/src/int.rs:93
↓ 3 callersMethodas_unary_operator
(self)
crates/ruff_python_ast/src/token.rs:527
↓ 3 callersMethodassert_can_import
(&self, module: &str)
crates/ty_project/src/uv/environments.rs:1268
↓ 3 callersFunctionassert_hashable_unequal
(left: &str, right: &str)
crates/ruff_python_ast_integration_tests/tests/comparable.rs:50
↓ 3 callersFunctionassert_hover
(server: &mut TestServer, path: &SystemPath, position: Position, expected: &str)
crates/ty_server/tests/e2e/closed_documents.rs:380
↓ 3 callersFunctionassert_hover
(server: &mut TestServer, path: &SystemPath, position: Position, expected: &str)
crates/ty_server/tests/e2e/workspace_folders.rs:1020
↓ 3 callersMethodassert_not_recursive_var
Reject a bare recursive variable at a semantic-operation boundary.
crates/ty_python_semantic/src/types/recursive.rs:914
↓ 3 callersFunctionassert_rendered
(cases: &[(&str, &str)])
crates/ty_ide/src/docstring/markdown/general/inline.rs:873
↓ 3 callersFunctionassert_resolves_to
( db: &TestDb, search: &ModuleSearchCursor, component: &str, expected: &str,
crates/ty_module_resolver/src/resolve/search.rs:1513
↓ 3 callersFunctionassert_single_exposure
( exposures: &'a [FixtureExposure<'db>], name: &str, local_binding: Definition<'db>,
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:3560
↓ 3 callersMethodat_compound_stmt
Returns `true` if the current token is the start of a compound statement.
crates/ruff_python_parser/src/parser/statement.rs:82
↓ 3 callersMethodat_simple_stmt
Returns `true` if the current token is the start of a simple statement, including expressions.
crates/ruff_python_parser/src/parser/statement.rs:88
↓ 3 callersFunctionatom_diagnostic
Create a [`Diagnostic`] for a single target, like an [`Expr::Name`].
crates/ruff_linter/src/rules/pyupgrade/rules/os_error_alias.rs:78
↓ 3 callersFunctionatom_diagnostic
Create a [`Diagnostic`] for a single target, like an [`Expr::Name`].
crates/ruff_linter/src/rules/pyupgrade/rules/timeout_error_alias.rs:96
↓ 3 callersFunctionattribute_assignments
Returns all attribute assignments (and their method scope IDs) with a symbol name matching the one given for a specific class body scope. Loop header
crates/ty_python_semantic/src/lib.rs:172
↓ 3 callersFunctionattribute_setattr_member
Resolve `__setattr__` on the selected lookup alternative, preserving the original receiver for `Self` while checking the method's receiver parameter a
crates/ty_python_semantic/src/types/attribute_write.rs:149
↓ 3 callersFunctionattribute_violation
Find the first read or write that the overriding contract fails to preserve. Both contracts are bound to the subclass receiver. `target_receiver` is
crates/ty_python_semantic/src/types/overrides/attributes.rs:414
↓ 3 callersMethodb
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/trailing_comma_optional_parens1.py:19
↓ 3 callersFunctionbar
()
crates/ruff_python_parser/resources/inline/ok/decorator_expression_py39.py:5
↓ 3 callersFunctionbaz
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF059_3.py:16
↓ 3 callersMethodbegin_visit
(&self, db: &'db dyn Db, item: T)
crates/ty_python_semantic/src/types/cyclic.rs:949
↓ 3 callersFunctionbenchmark_linter
(mut group: BenchmarkGroup, settings: &LinterSettings)
crates/ruff_benchmark/benches/linter.rs:65
← previousnext →3,701–3,800 of 31,562, ranked by callers