Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,562 in github.com/astral-sh/ruff
⨍
Functions
31,562
◇
Types & classes
7,116
↳
Endpoints
82
↓ 3 callers
Function
walk_module
(visitor: &mut V, module: &'a Mod)
crates/ruff_python_ast/src/visitor/source_order.rs:188
↓ 3 callers
Function
walk_parameter_with_default
( visitor: &mut V, parameter_with_default: &'a ParameterWithDefault, )
crates/ruff_python_ast/src/visitor/source_order.rs:397
↓ 3 callers
Function
walk_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 callers
Function
walk_string_literal
( _visitor: &V, _string_literal: &'a StringLiteral, )
crates/ruff_python_ast/src/visitor.rs:857
↓ 3 callers
Function
walk_type_param
(visitor: &mut V, type_param: &'a TypeParam)
crates/ruff_python_ast/src/visitor.rs:707
↓ 3 callers
Function
walk_type_var_bounds
( db: &'db dyn Db, bounds: TypeVarBoundOrConstraints<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/typevar.rs:2331
↓ 3 callers
Function
walk_with_item
(visitor: &mut V, with_item: &'a WithItem)
crates/ruff_python_ast/src/visitor.rs:694
↓ 3 callers
Function
watch_paths
(db: &dyn Db, project: Project)
crates/ty_project/src/watch/project_watcher.rs:257
↓ 3 callers
Function
watched_site_packages
(server: &mut TestServer)
crates/ty_server/tests/e2e/goto_definition.rs:530
↓ 3 callers
Method
when_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 callers
Method
when_equivalent_to
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, other: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:993
↓ 3 callers
Method
when_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 callers
Method
when_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 callers
Function
which_tool
(name: str, path: Path | None = None)
scripts/ty_benchmark/src/benchmark/tool.py:23
↓ 3 callers
Function
will_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 callers
Method
with_constrained_receiver
( self, db: &'db dyn Db, receiver: Type<'db>, constraint: Type<'db>, )
crates/ty_python_semantic/src/types/method.rs:247
↓ 3 callers
Method
with_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 callers
Method
with_descriptor_kind
(self, db: &'db dyn Db, kind: CallableTypeKind)
crates/ty_python_semantic/src/types/function.rs:1271
↓ 3 callers
Method
with_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 callers
Method
with_for_excluded
Returns a new [`ExpressionContext`] which excludes `for` from an expression.
crates/ruff_python_parser/src/parser/expression.rs:3209
↓ 3 callers
Method
with_full_diagnostic_output
Advertise support for ty's fully rendered diagnostic output.
crates/ty_server/tests/e2e/main.rs:1568
↓ 3 callers
Method
with_generic_context
( mut self, db: &'db dyn Db, generic_context: Option<GenericContext<'db>>, )
crates/ty_python_semantic/src/types/call/bind.rs:889
↓ 3 callers
Method
with_id
(mut self, group_id: Option<GroupId>)
crates/ruff_formatter/src/builders.rs:1424
↓ 3 callers
Method
with_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 callers
Method
with_inherited_generic_context
( self, db: &'db dyn Db, inherited_generic_context: GenericContext<'db>, )
crates/ty_python_semantic/src/types/function.rs:1349
↓ 3 callers
Method
with_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 callers
Method
with_magic_trailing_comma
(mut self, trailing_comma: MagicTrailingComma)
crates/ruff_python_formatter/src/options.rs:178
↓ 3 callers
Method
with_materialization_kind
( self, db: &'db dyn Db, materialization_kind: Option<MaterializationKind>, )
crates/ty_python_semantic/src/types/type_alias.rs:716
↓ 3 callers
Method
with_measure_mode
(mut self, mode: MeasureMode)
crates/ruff_formatter/src/printer/call_stack.rs:79
↓ 3 callers
Method
with_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/pattern/mod.rs:36
↓ 3 callers
Method
with_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/mod.rs:69
↓ 3 callers
Method
with_options
(self, options: Self::Options)
crates/ruff_python_formatter/src/other/with_item.rs:86
↓ 3 callers
Method
with_origin
(mut self, origin: TypeOrigin)
crates/ty_python_semantic/src/place.rs:170
↓ 3 callers
Method
with_prefix
(mut self, prefix: FStringPrefix)
crates/ruff_python_ast/src/nodes.rs:1151
↓ 3 callers
Method
with_recursion_guard
( &self, db: &'db dyn Db, source: Type<'db>, target: Type<'db>, work:
crates/ty_python_semantic/src/types/relation.rs:1875
↓ 3 callers
Method
with_recursively_defined
(mut self, value: RecursivelyDefined)
crates/ty_python_semantic/src/types/literal.rs:72
↓ 3 callers
Method
with_required
(mut self, yes: bool)
crates/ty_python_semantic/src/types/typed_dict.rs:3299
↓ 3 callers
Method
with_return_type
Create a new signature with the given return type.
crates/ty_python_semantic/src/types/signatures.rs:2557
↓ 3 callers
Method
with_semantic_checker
(&mut self, f: impl FnOnce(&mut SemanticSyntaxChecker, &Checker))
crates/ruff_linter/src/checkers/ast/mod.rs:645
↓ 3 callers
Method
with_setting
(mut self, setting: &'static str)
crates/ruff_linter/src/rule_selector.rs:98
↓ 3 callers
Method
with_source_map_generation
(mut self, source_map: SourceMapGeneration)
crates/ruff_python_formatter/src/options.rs:229
↓ 3 callers
Method
with_source_sub
( mut self, db: &dyn Db, value: &RangedValue<T>, value_label: &str, op
crates/ty_project/src/metadata/options.rs:2563
↓ 3 callers
Method
with_target_version
(mut self, target_version: PythonVersion)
crates/ruff_python_parser/src/parser/options.rs:33
↓ 3 callers
Method
with_trailing_slash
(self)
crates/ruff_db/src/vendored.rs:401
↓ 3 callers
Method
with_type
Convenience for `with_detail(TypeDetail::Type(ty))`
crates/ty_python_semantic/src/types/display.rs:416
↓ 3 callers
Method
with_unclosed
(mut self, unclosed: bool)
crates/ruff_python_ast/src/nodes.rs:1145
↓ 3 callers
Function
wobble_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 callers
Method
write_body
(&self, formatter: &mut impl std::fmt::Write)
crates/ruff_python_literal/src/escape.rs:25
↓ 3 callers
Method
write_debugs
(&mut self, name: &str, ty: &str, elements: &[T])
crates/ruff_unicode_names2_generator/src/formatting.rs:37
↓ 3 callers
Method
write_file
Writes the content of the given file and notifies the Db about the change.
crates/ruff_db/src/system/test.rs:262
↓ 3 callers
Function
write_rustdoc
(out: list[str], doc: str)
crates/ruff_python_ast/generate.py:96
↓ 3 callers
Function
x
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/newlines.py:245
↓ 3 callers
Function
x_rhs_expression
(db: &TestDb)
crates/ty_python_semantic/src/types/infer/tests.rs:1880
↓ 3 callers
Function
y
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/newlines.py:246
↓ 2 callers
Function
_
()
crates/ruff_python_parser/resources/inline/ok/nonlocal_stmt.py:1
↓ 2 callers
Method
__add__
(self: S, other: S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:69
↓ 2 callers
Method
__contains__
(self, other)
crates/ruff_linter/resources/test/fixtures/refurb/FURB132.py:74
↓ 2 callers
Method
__new__
(cls)
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_1.py:76
↓ 2 callers
Method
__setattr__
(self, /, name)
crates/ruff_linter/resources/test/fixtures/pylint/unexpected_special_method_signature.py:107
↓ 2 callers
Method
_display
(self)
crates/ruff_benchmark/resources/pydantic/types.py:490
↓ 2 callers
Function
_flags_fromnum
(num)
crates/ruff_benchmark/resources/numpy/ctypeslib.py:174
↓ 2 callers
Method
_get_head_commit
Return the commit sha for the repository in the checkout directory.
python/ruff-ecosystem/ruff_ecosystem/projects.py:470
↓ 2 callers
Method
_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 callers
Method
_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 callers
Method
_run_mdtest
( self, arguments: list[str] | None = None, *, capture_output: bool = False )
crates/ty_python_semantic/mdtest.py:153
↓ 2 callers
Method
_settings
(self, project: Project, venv: Venv)
scripts/ty_benchmark/src/benchmark/tool.py:336
↓ 2 callers
Function
a
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/newlines.py:253
↓ 2 callers
Function
a
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/slice.py:67
↓ 2 callers
Function
a
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:546
↓ 2 callers
Method
a
(self)
crates/ruff_python_formatter/resources/test/fixtures/ruff/trivia.py:11
↓ 2 callers
Function
abc
()
crates/ruff_linter/resources/test/fixtures/flake8_commas/COM81.py:240
↓ 2 callers
Method
absolute_file_path
(self, file_path: str)
scripts/ty_benchmark/src/benchmark/test_lsp_diagnostics.py:195
↓ 2 callers
Function
abstract_method_span
( db: &'db dyn Db, function: FunctionType<'db>, policy: AbstractMethodAnnotationPolicy, )
crates/ty_python_semantic/src/types/diagnostic.rs:4186
↓ 2 callers
Method
abstract_methods
( self, db: &'db dyn Db, )
crates/ty_python_semantic/src/types/abstract_methods.rs:256
↓ 2 callers
Method
accepts_arguments
(&self, specialization: Specialization<'db>)
crates/ty_python_semantic/src/types/call/bind.rs:6755
↓ 2 callers
Method
accepts_candidate
Checks whether a given candidate solution satisfies this path.
crates/ty_python_semantic/src/types/constraints.rs:3497
↓ 2 callers
Method
accepts_type_context
Returns `true` if this scope may require type context from its parent scope.
crates/ty_python_core/src/scope.rs:47
↓ 2 callers
Method
acknowledge_unregistration
(&mut self)
crates/ty_server/tests/e2e/main.rs:643
↓ 2 callers
Method
add
(mut self, path: impl AsRef<SystemPath>)
crates/ruff_db/src/system/walk_directory.rs:45
↓ 2 callers
Method
add
(&mut self, decision: EditDecision)
crates/ty_ide/src/will_rename.rs:1015
↓ 2 callers
Method
add
(self, delta: u32)
crates/ty_python_semantic/src/types/typevar.rs:912
↓ 2 callers
Method
add
Adds a tuple to this homogeneous union group.
crates/ty_python_semantic/src/types/tuple/promotion.rs:247
↓ 2 callers
Method
add_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 callers
Method
add_assignment
Adds a symbol introduced via an assignment.
crates/ty_ide/src/symbols.rs:896
↓ 2 callers
Function
add_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 callers
Method
add_at_start
(&self, text: &str)
crates/ruff_linter/src/importer/mod.rs:95
↓ 2 callers
Method
add_bindings
( &mut self, db: &'db dyn Db, mut bindings: BindingWithConstraintsIterator<'db, 'db>,
crates/ty_python_semantic/src/place/definitions.rs:108
↓ 2 callers
Method
add_constraint
( &mut self, db: &'db dyn Db, bound_typevar: BoundTypeVarInstance<'db>, constr
crates/ty_python_semantic/src/types/constraints.rs:3162
↓ 2 callers
Method
add_context
(&self, db: &dyn Db, env: &ProgramEnvironment<'_>, diag: &mut Diagnostic)
crates/ty_python_semantic/src/types/call/bind.rs:11203
↓ 2 callers
Function
add_diagnostic
Add diagnostic for C416 based on the expression node id.
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_comprehension.rs:82
↓ 2 callers
Method
add_directory
(&mut self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:495
↓ 2 callers
Method
add_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 callers
Function
add_end_of_line_suppression
(source: &str, codes: &[LintName], line_end: TextSize)
crates/ty_python_semantic/src/suppression/add_ignore.rs:236
↓ 2 callers
Method
add_entry_for_definition_key
(&mut self, key: DefinitionNodeKey)
crates/ty_python_core/src/builder.rs:1509
↓ 2 callers
Function
add_import_completions_impl
( db: &'db dyn Db, completions: &mut Completions<'db>, semantic_completions: impl IntoIterator<Ite
crates/ty_ide/src/completion.rs:3185
↓ 2 callers
Function
add_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 callers
Function
add_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 callers
Method
add_local_reference
Add a reference to the given [`BindingId`] in the local scope.
crates/ruff_python_semantic/src/model.rs:1986
↓ 2 callers
Method
add_name_symbol
Adds a symbol for a name definition.
crates/ty_ide/src/symbols.rs:864
↓ 2 callers
Method
add_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
← previous
next →
4,801–4,900 of 31,562, ranked by callers