MCPcopy Create free account

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

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

↓ 3 callersFunctionwalk_module
(visitor: &mut V, module: &'a Mod)
crates/ruff_python_ast/src/visitor/source_order.rs:188
↓ 3 callersFunctionwalk_parameter_with_default
( visitor: &mut V, parameter_with_default: &'a ParameterWithDefault, )
crates/ruff_python_ast/src/visitor/source_order.rs:397
↓ 3 callersFunctionwalk_protocol_instance_member
Walks the types of a protocol member after binding any implicit receiver to `receiver_ty`.
crates/ty_python_semantic/src/types/protocol_class.rs:728
↓ 3 callersFunctionwalk_string_literal
( _visitor: &V, _string_literal: &'a StringLiteral, )
crates/ruff_python_ast/src/visitor.rs:857
↓ 3 callersFunctionwalk_type_param
(visitor: &mut V, type_param: &'a TypeParam)
crates/ruff_python_ast/src/visitor.rs:707
↓ 3 callersFunctionwalk_type_var_bounds
( db: &'db dyn Db, bounds: TypeVarBoundOrConstraints<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/typevar.rs:2331
↓ 3 callersFunctionwalk_with_item
(visitor: &mut V, with_item: &'a WithItem)
crates/ruff_python_ast/src/visitor.rs:694
↓ 3 callersFunctionwatch_paths
(db: &dyn Db, project: Project)
crates/ty_project/src/watch/project_watcher.rs:257
↓ 3 callersFunctionwatched_site_packages
(server: &mut TestServer)
crates/ty_server/tests/e2e/goto_definition.rs:530
↓ 3 callersMethodwhen_constraint_set_equivalent_to_owned
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, other: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:1010
↓ 3 callersMethodwhen_equivalent_to
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, other: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:993
↓ 3 callersMethodwhen_equivalent_to_with_materialization_visitor
( self, db: &'db dyn Db, other: Type<'db>, constraints: &'c ConstraintSetBuild
crates/ty_python_semantic/src/types/relation.rs:1065
↓ 3 callersMethodwhen_trivially_disjoint_from
Checks whether `self` is disjoint from `other`, while being more accepting of false negatives. Use this when you want to _quickly_ check whether two t
crates/ty_python_semantic/src/types/relation.rs:1171
↓ 3 callersFunctionwhich_tool
(name: str, path: Path | None = None)
scripts/ty_benchmark/src/benchmark/tool.py:23
↓ 3 callersFunctionwill_rename_files
Computes source edits for a batch of Python file renames. The following types of rename request are not yet supported: - A request that renames a di
crates/ty_ide/src/will_rename.rs:154
↓ 3 callersMethodwith_constrained_receiver
( self, db: &'db dyn Db, receiver: Type<'db>, constraint: Type<'db>, )
crates/ty_python_semantic/src/types/method.rs:247
↓ 3 callersMethodwith_constructed_instance_type
( mut self, db: &'db dyn Db, constructor_instance_type: Type<'db>, )
crates/ty_python_semantic/src/types/call/bind.rs:865
↓ 3 callersMethodwith_descriptor_kind
(self, db: &'db dyn Db, kind: CallableTypeKind)
crates/ty_python_semantic/src/types/function.rs:1271
↓ 3 callersMethodwith_detail
Indicate the given detail is about to start being written to this Writer This creates a scoped guard that when Dropped will record the given detail a
crates/ty_python_semantic/src/types/display.rs:403
↓ 3 callersMethodwith_for_excluded
Returns a new [`ExpressionContext`] which excludes `for` from an expression.
crates/ruff_python_parser/src/parser/expression.rs:3209
↓ 3 callersMethodwith_full_diagnostic_output
Advertise support for ty's fully rendered diagnostic output.
crates/ty_server/tests/e2e/main.rs:1568
↓ 3 callersMethodwith_generic_context
( mut self, db: &'db dyn Db, generic_context: Option<GenericContext<'db>>, )
crates/ty_python_semantic/src/types/call/bind.rs:889
↓ 3 callersMethodwith_id
(mut self, group_id: Option<GroupId>)
crates/ruff_formatter/src/builders.rs:1424
↓ 3 callersMethodwith_imported_final_impl
This can be called cross-module, so resolve imports through semantic queries without reading AST nodes from the file containing the candidate definiti
crates/ty_python_semantic/src/place.rs:951
↓ 3 callersMethodwith_inherited_generic_context
( self, db: &'db dyn Db, inherited_generic_context: GenericContext<'db>, )
crates/ty_python_semantic/src/types/function.rs:1349
↓ 3 callersMethodwith_lexical_visibility
Includes the lexical visibility of each scope. A class namespace is visible in the class itself and through any intervening annotation scopes (e.g. bo
crates/ty_python_core/src/lib.rs:882
↓ 3 callersMethodwith_magic_trailing_comma
(mut self, trailing_comma: MagicTrailingComma)
crates/ruff_python_formatter/src/options.rs:178
↓ 3 callersMethodwith_materialization_kind
( self, db: &'db dyn Db, materialization_kind: Option<MaterializationKind>, )
crates/ty_python_semantic/src/types/type_alias.rs:716
↓ 3 callersMethodwith_measure_mode
(mut self, mode: MeasureMode)
crates/ruff_formatter/src/printer/call_stack.rs:79
↓ 3 callersMethodwith_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/pattern/mod.rs:36
↓ 3 callersMethodwith_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/mod.rs:69
↓ 3 callersMethodwith_options
(self, options: Self::Options)
crates/ruff_python_formatter/src/other/with_item.rs:86
↓ 3 callersMethodwith_origin
(mut self, origin: TypeOrigin)
crates/ty_python_semantic/src/place.rs:170
↓ 3 callersMethodwith_prefix
(mut self, prefix: FStringPrefix)
crates/ruff_python_ast/src/nodes.rs:1151
↓ 3 callersMethodwith_recursion_guard
( &self, db: &'db dyn Db, source: Type<'db>, target: Type<'db>, work:
crates/ty_python_semantic/src/types/relation.rs:1875
↓ 3 callersMethodwith_recursively_defined
(mut self, value: RecursivelyDefined)
crates/ty_python_semantic/src/types/literal.rs:72
↓ 3 callersMethodwith_required
(mut self, yes: bool)
crates/ty_python_semantic/src/types/typed_dict.rs:3299
↓ 3 callersMethodwith_return_type
Create a new signature with the given return type.
crates/ty_python_semantic/src/types/signatures.rs:2557
↓ 3 callersMethodwith_semantic_checker
(&mut self, f: impl FnOnce(&mut SemanticSyntaxChecker, &Checker))
crates/ruff_linter/src/checkers/ast/mod.rs:645
↓ 3 callersMethodwith_setting
(mut self, setting: &'static str)
crates/ruff_linter/src/rule_selector.rs:98
↓ 3 callersMethodwith_source_map_generation
(mut self, source_map: SourceMapGeneration)
crates/ruff_python_formatter/src/options.rs:229
↓ 3 callersMethodwith_source_sub
( mut self, db: &dyn Db, value: &RangedValue<T>, value_label: &str, op
crates/ty_project/src/metadata/options.rs:2563
↓ 3 callersMethodwith_target_version
(mut self, target_version: PythonVersion)
crates/ruff_python_parser/src/parser/options.rs:33
↓ 3 callersMethodwith_trailing_slash
(self)
crates/ruff_db/src/vendored.rs:401
↓ 3 callersMethodwith_type
Convenience for `with_detail(TypeDetail::Type(ty))`
crates/ty_python_semantic/src/types/display.rs:416
↓ 3 callersMethodwith_unclosed
(mut self, unclosed: bool)
crates/ruff_python_ast/src/nodes.rs:1145
↓ 3 callersFunctionwobble_index
Optionally applies a transformation to the orderings that we use to compare builder-local typevar and constraint IDs, and to canonicalize [`TypeVarEqu
crates/ty_python_semantic/src/types/constraints.rs:1823
↓ 3 callersMethodwrite_body
(&self, formatter: &mut impl std::fmt::Write)
crates/ruff_python_literal/src/escape.rs:25
↓ 3 callersMethodwrite_debugs
(&mut self, name: &str, ty: &str, elements: &[T])
crates/ruff_unicode_names2_generator/src/formatting.rs:37
↓ 3 callersMethodwrite_file
Writes the content of the given file and notifies the Db about the change.
crates/ruff_db/src/system/test.rs:262
↓ 3 callersFunctionwrite_rustdoc
(out: list[str], doc: str)
crates/ruff_python_ast/generate.py:96
↓ 3 callersFunctionx
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/newlines.py:245
↓ 3 callersFunctionx_rhs_expression
(db: &TestDb)
crates/ty_python_semantic/src/types/infer/tests.rs:1880
↓ 3 callersFunctiony
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/newlines.py:246
↓ 2 callersFunction_
()
crates/ruff_python_parser/resources/inline/ok/nonlocal_stmt.py:1
↓ 2 callersMethod__add__
(self: S, other: S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:69
↓ 2 callersMethod__contains__
(self, other)
crates/ruff_linter/resources/test/fixtures/refurb/FURB132.py:74
↓ 2 callersMethod__new__
(cls)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_1.py:76
↓ 2 callersMethod__setattr__
(self, /, name)
crates/ruff_linter/resources/test/fixtures/pylint/unexpected_special_method_signature.py:107
↓ 2 callersMethod_display
(self)
crates/ruff_benchmark/resources/pydantic/types.py:490
↓ 2 callersFunction_flags_fromnum
(num)
crates/ruff_benchmark/resources/numpy/ctypeslib.py:174
↓ 2 callersMethod_get_head_commit
Return the commit sha for the repository in the checkout directory.
python/ruff-ecosystem/ruff_ecosystem/projects.py:470
↓ 2 callersMethod_handle_hidden_tables
Return list of tables, potentially removing hidden elements Parameters ---------- tbl_list : list of node-like
crates/ruff_server/resources/test/fixtures/pandas_html.py:553
↓ 2 callersMethod_parse_td
Return the td elements from a row element. Parameters ---------- obj : node-like A DOM <tr> node.
crates/ruff_server/resources/test/fixtures/pandas_html.py:305
↓ 2 callersMethod_run_mdtest
( self, arguments: list[str] | None = None, *, capture_output: bool = False )
crates/ty_python_semantic/mdtest.py:153
↓ 2 callersMethod_settings
(self, project: Project, venv: Venv)
scripts/ty_benchmark/src/benchmark/tool.py:336
↓ 2 callersFunctiona
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/newlines.py:253
↓ 2 callersFunctiona
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/slice.py:67
↓ 2 callersFunctiona
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:546
↓ 2 callersMethoda
(self)
crates/ruff_python_formatter/resources/test/fixtures/ruff/trivia.py:11
↓ 2 callersFunctionabc
()
crates/ruff_linter/resources/test/fixtures/flake8_commas/COM81.py:240
↓ 2 callersMethodabsolute_file_path
(self, file_path: str)
scripts/ty_benchmark/src/benchmark/test_lsp_diagnostics.py:195
↓ 2 callersFunctionabstract_method_span
( db: &'db dyn Db, function: FunctionType<'db>, policy: AbstractMethodAnnotationPolicy, )
crates/ty_python_semantic/src/types/diagnostic.rs:4186
↓ 2 callersMethodabstract_methods
( self, db: &'db dyn Db, )
crates/ty_python_semantic/src/types/abstract_methods.rs:256
↓ 2 callersMethodaccepts_arguments
(&self, specialization: Specialization<'db>)
crates/ty_python_semantic/src/types/call/bind.rs:6755
↓ 2 callersMethodaccepts_candidate
Checks whether a given candidate solution satisfies this path.
crates/ty_python_semantic/src/types/constraints.rs:3497
↓ 2 callersMethodaccepts_type_context
Returns `true` if this scope may require type context from its parent scope.
crates/ty_python_core/src/scope.rs:47
↓ 2 callersMethodacknowledge_unregistration
(&mut self)
crates/ty_server/tests/e2e/main.rs:643
↓ 2 callersMethodadd
(mut self, path: impl AsRef<SystemPath>)
crates/ruff_db/src/system/walk_directory.rs:45
↓ 2 callersMethodadd
(&mut self, decision: EditDecision)
crates/ty_ide/src/will_rename.rs:1015
↓ 2 callersMethodadd
(self, delta: u32)
crates/ty_python_semantic/src/types/typevar.rs:912
↓ 2 callersMethodadd
Adds a tuple to this homogeneous union group.
crates/ty_python_semantic/src/types/tuple/promotion.rs:247
↓ 2 callersMethodadd_all_names
Add valid names from `__all__` to the set of existing `__all__` names. Returns `false` if any of the names are invalid.
crates/ty_ide/src/symbols.rs:1183
↓ 2 callersMethodadd_assignment
Adds a symbol introduced via an assignment.
crates/ty_ide/src/symbols.rs:896
↓ 2 callersFunctionadd_async_generator_stub_help
Points to a coroutine declaration that may have been intended to describe an async generator.
crates/ty_python_semantic/src/types/iteration.rs:28
↓ 2 callersMethodadd_at_start
(&self, text: &str)
crates/ruff_linter/src/importer/mod.rs:95
↓ 2 callersMethodadd_bindings
( &mut self, db: &'db dyn Db, mut bindings: BindingWithConstraintsIterator<'db, 'db>,
crates/ty_python_semantic/src/place/definitions.rs:108
↓ 2 callersMethodadd_constraint
( &mut self, db: &'db dyn Db, bound_typevar: BoundTypeVarInstance<'db>, constr
crates/ty_python_semantic/src/types/constraints.rs:3162
↓ 2 callersMethodadd_context
(&self, db: &dyn Db, env: &ProgramEnvironment<'_>, diag: &mut Diagnostic)
crates/ty_python_semantic/src/types/call/bind.rs:11203
↓ 2 callersFunctionadd_diagnostic
Add diagnostic for C416 based on the expression node id.
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_comprehension.rs:82
↓ 2 callersMethodadd_directory
(&mut self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:495
↓ 2 callersMethodadd_distinct_block_ranges
Adds the full range if present, and also adds the body range if both present and distinct from the full range.
crates/ty_ide/src/folding_range.rs:491
↓ 2 callersFunctionadd_end_of_line_suppression
(source: &str, codes: &[LintName], line_end: TextSize)
crates/ty_python_semantic/src/suppression/add_ignore.rs:236
↓ 2 callersMethodadd_entry_for_definition_key
(&mut self, key: DefinitionNodeKey)
crates/ty_python_core/src/builder.rs:1509
↓ 2 callersFunctionadd_import_completions_impl
( db: &'db dyn Db, completions: &mut Completions<'db>, semantic_completions: impl IntoIterator<Ite
crates/ty_ide/src/completion.rs:3185
↓ 2 callersFunctionadd_invariant_generic_hints
Add a diagnostic hint for cases like an invalid `list[bool]` to `list[int]` assignment, that fails due to invariance.
crates/ty_python_semantic/src/types/diagnostic.rs:1889
↓ 2 callersFunctionadd_liskov_substitution_principle_help
( diagnostic: &mut Diagnostic, function_name: &str, decorator_list: &[ast::Decorator], checker
crates/ruff_linter/src/rules/flake8_boolean_trap/helpers.rs:180
↓ 2 callersMethodadd_local_reference
Add a reference to the given [`BindingId`] in the local scope.
crates/ruff_python_semantic/src/model.rs:1986
↓ 2 callersMethodadd_name_symbol
Adds a symbol for a name definition.
crates/ty_ide/src/symbols.rs:864
↓ 2 callersMethodadd_names
Add valid names to the set. Returns `false` if any of the names are invalid.
crates/ty_python_semantic/src/dunder_all.rs:204
← previousnext →4,801–4,900 of 31,562, ranked by callers