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
↓ 1 callers
Function
walk_pattern_arguments
( visitor: &V, pattern_arguments: &mut PatternArguments, )
crates/ruff_python_ast/src/visitor/transformer.rs:805
↓ 1 callers
Function
walk_pattern_arguments
(visitor: &mut V, pattern_arguments: &'a PatternArguments)
crates/ruff_python_ast/src/visitor/source_order.rs:488
↓ 1 callers
Function
walk_pattern_keyword
( visitor: &V, pattern_keyword: &mut PatternKeyword, )
crates/ruff_python_ast/src/visitor/transformer.rs:817
↓ 1 callers
Function
walk_pattern_keyword
(visitor: &mut V, pattern_keyword: &'a PatternKeyword)
crates/ruff_python_ast/src/visitor/source_order.rs:499
↓ 1 callers
Function
walk_pep_695_type_alias
( db: &'db dyn Db, type_alias: PEP695TypeAliasType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/type_alias.rs:210
↓ 1 callers
Function
walk_property_instance_type
( db: &'db dyn Db, property: PropertyInstanceType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types.rs:1660
↓ 1 callers
Function
walk_protocol_instance_interface
Walk the member types exposed through an instance of a protocol. This binds inferred method receivers and property accessors to `receiver_ty`, while
crates/ty_python_semantic/src/types/protocol_class.rs:713
↓ 1 callers
Function
walk_protocol_instance_type
( db: &'db dyn Db, protocol: ProtocolInstanceType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/instance.rs:1678
↓ 1 callers
Function
walk_protocol_interface
( db: &'db dyn Db, interface: ProtocolInterfaceView<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/protocol_class.rs:690
↓ 1 callers
Function
walk_protocol_member
( db: &'db dyn Db, member: &ProtocolMember<'_, 'db>, visitor: &V, )
crates/ty_python_semantic/src/types/protocol_class.rs:2047
↓ 1 callers
Method
walk_recursive_member_types
Walk the effective non-method member types declared by this protocol. Method relations have their own declaration-based recursion guard. Keeping them
crates/ty_python_semantic/src/types/protocol_class.rs:119
↓ 1 callers
Function
walk_stmt
(visitor: &mut V, stmt: &'a Stmt)
crates/ruff_python_ast/src/statement_visitor.rs:30
↓ 1 callers
Function
walk_stmt
(visitor: &V, stmt: &mut Stmt)
crates/ruff_python_ast/src/visitor/transformer.rs:122
↓ 1 callers
Function
walk_stmt
(visitor: &mut V, stmt: &'a Stmt)
crates/ruff_python_ast/src/visitor/source_order.rs:212
↓ 1 callers
Function
walk_string_literal
( _visitor: &V, _string_literal: &mut StringLiteral, )
crates/ruff_python_ast/src/visitor/transformer.rs:867
↓ 1 callers
Function
walk_string_literal
(visitor: &mut V, string_literal: &'a StringLiteral)
crates/ruff_python_ast/src/visitor/source_order.rs:578
↓ 1 callers
Function
walk_subclass_of_type
( db: &'db dyn Db, subclass_of: SubclassOfType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/subclass_of.rs:25
↓ 1 callers
Function
walk_t_string
(visitor: &V, t_string: &mut TString)
crates/ruff_python_ast/src/visitor/transformer.rs:849
↓ 1 callers
Function
walk_t_string
(visitor: &mut V, t_string: &'a TString)
crates/ruff_python_ast/src/visitor/source_order.rs:566
↓ 1 callers
Function
walk_type_param
(visitor: &V, type_param: &mut TypeParam)
crates/ruff_python_ast/src/visitor/transformer.rs:721
↓ 1 callers
Function
walk_type_param
(visitor: &mut V, type_param: &'a TypeParam)
crates/ruff_python_ast/src/visitor/source_order.rs:446
↓ 1 callers
Function
walk_type_params
(visitor: &V, type_params: &mut TypeParams)
crates/ruff_python_ast/src/visitor/transformer.rs:715
↓ 1 callers
Function
walk_type_params
(visitor: &mut V, type_params: &'a TypeParams)
crates/ruff_python_ast/src/visitor/source_order.rs:435
↓ 1 callers
Function
walk_type_var_attributes
Evaluate and visit a type variable's bounds, constraints, and default. The caller must guard against recursive types.
crates/ty_python_semantic/src/types/typevar.rs:265
↓ 1 callers
Function
walk_type_var_constraints
( db: &'db dyn Db, constraints: TypeVarConstraints<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/typevar.rs:2138
↓ 1 callers
Function
walk_type_var_type
( db: &'db dyn Db, typevar: TypeVarInstance<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/typevar.rs:222
↓ 1 callers
Function
walk_typeform_type
( db: &'db dyn Db, typeform_type: TypeFormType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/type_form.rs:12
↓ 1 callers
Function
walk_typeguard_type
( db: &'db dyn Db, typeguard_type: TypeGuardType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types.rs:12950
↓ 1 callers
Function
walk_unary_op
(_visitor: &V, _unary_op: &'a UnaryOp)
crates/ruff_python_ast/src/visitor.rs:851
↓ 1 callers
Function
walk_unary_op
(_visitor: &V, _unary_op: &mut UnaryOp)
crates/ruff_python_ast/src/visitor/transformer.rs:861
↓ 1 callers
Function
walk_unary_op
(_visitor: &mut V, _unary_op: &'a UnaryOp)
crates/ruff_python_ast/src/visitor/source_order.rs:540
↓ 1 callers
Function
walk_union
( db: &'db dyn Db, union: UnionType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/set_theoretic.rs:80
↓ 1 callers
Function
walk_union_type_instance
( db: &'db dyn Db, instance: UnionTypeInstance<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/union_type_instance.rs:515
↓ 1 callers
Function
walk_with_item
(visitor: &V, with_item: &mut WithItem)
crates/ruff_python_ast/src/visitor/transformer.rs:708
↓ 1 callers
Function
walk_with_item
(visitor: &mut V, with_item: &'a WithItem)
crates/ruff_python_ast/src/visitor/source_order.rs:424
↓ 1 callers
Function
warn_about_deprecated_top_level_lint_options
( top_level_options: &LintCommonOptions, path: Option<&Path>, )
crates/ruff_workspace/src/configuration.rs:1476
↓ 1 callers
Function
warning_needs_match
PT030
crates/ruff_linter/src/rules/flake8_pytest_style/rules/warns.rs:233
↓ 1 callers
Function
warns_call
PT029, PT030
crates/ruff_linter/src/rules/flake8_pytest_style/rules/warns.rs:175
↓ 1 callers
Method
was_cut_left
(&self)
crates/ruff_annotate_snippets/src/renderer/margin.rs:57
↓ 1 callers
Method
watch
(mut self, db: &mut ProjectDatabase)
crates/ty/src/lib.rs:345
↓ 1 callers
Function
watch_git_ref
Watch the loose or packed Git reference for the current branch.
crates/ty/build.rs:153
↓ 1 callers
Function
watch_git_ref
Watch the loose or packed Git reference for the current branch.
crates/ruff/build.rs:114
↓ 1 callers
Function
watch_git_ref
Watch the loose or packed Git reference for the current branch.
crates/ty_wasm/build.rs:99
↓ 1 callers
Function
weak_cryptographic_key
S505
crates/ruff_linter/src/rules/flake8_bandit/rules/weak_cryptographic_key.rs:54
↓ 1 callers
Function
what_to_catch
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B030.py:78
↓ 1 callers
Method
when_constraint_set_assignable_to
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, other: &Self,
crates/ty_python_semantic/src/types/signatures.rs:637
↓ 1 callers
Method
when_constraint_set_assignable_to_signatures
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, other: &CallableSigna
crates/ty_python_semantic/src/types/signatures.rs:2426
↓ 1 callers
Method
when_non_recursive_members_assignable_to_owned
Returns constraints inferred from the nonrecursive requirements of `target`. Recursive requirements are omitted only while inferring a generic specia
crates/ty_python_semantic/src/types/instance.rs:2057
↓ 1 callers
Method
when_recursive_types_relate_by_arguments
Prove a relation between applications of the same recursive constructor (same unspecialized body) based on inclusion or overlap of their type argument
crates/ty_python_semantic/src/types/recursive.rs:793
↓ 1 callers
Method
when_subclass_of
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, other: ClassType<'db>,
crates/ty_python_semantic/src/types/class/known.rs:1514
↓ 1 callers
Method
which
(&self, name: &str)
crates/ruff_db/src/system/os.rs:118
↓ 1 callers
Function
while_one
UP048
crates/ruff_linter/src/rules/pyupgrade/rules/while_one.rs:49
↓ 1 callers
Function
whitespace_after_decorator
E204
crates/ruff_linter/src/rules/pycodestyle/rules/whitespace_after_decorator.rs:49
↓ 1 callers
Function
whitespace_around_keywords
E271, E272, E273, E274
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/whitespace_around_keywords.rs:131
↓ 1 callers
Function
whitespace_around_named_parameter_equals
E251, E252
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/whitespace_around_named_parameter_equals.rs:91
↓ 1 callers
Function
whitespace_before_comment
E261, E262, E265, E266
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/whitespace_before_comment.rs:172
↓ 1 callers
Function
whitespace_before_parameters
E211
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/whitespace_before_parameters.rs:59
↓ 1 callers
Method
who
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__regression.py:304
↓ 1 callers
Function
widen_comparison_truthiness
Widen comparison truthiness for expression, statement, and definition regions using the same rules. Sparse overrides can appear or disappear as opera
crates/ty_python_semantic/src/types/infer.rs:1952
↓ 1 callers
Method
widen_literal_types
(&mut self, seen_aliases: &mut Vec<Type<'db>>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:761
↓ 1 callers
Method
widened_operands
Check operator support once per pair of builtin classes. Their methods accept the same operand types for every literal value, even when the result dep
crates/ty_python_semantic/src/types/literal.rs:549
↓ 1 callers
Method
will_match_everything
Returns true when it is known that this pattern will return `true` for all inputs given to `QueryPattern::is_match_symbol_name`. This will never retu
crates/ty_ide/src/symbols.rs:95
↓ 1 callers
Method
will_match_everything
(&self)
crates/ty_ide/src/completion.rs:1620
↓ 1 callers
Method
will_rename_files
(&mut self, files: Vec<FileRename>)
crates/ty_server/tests/e2e/main.rs:1030
↓ 1 callers
Method
with_accessor_definition
Records the source of an accessor supplied by a method decorator.
crates/ty_python_semantic/src/types.rs:1740
↓ 1 callers
Method
with_active_scopes
(&self, scopes: impl IntoIterator<Item = Definition<'db>>)
crates/ty_python_semantic/src/types/display.rs:239
↓ 1 callers
Method
with_applicability
(mut self, applicability: Applicability)
crates/ruff_diagnostics/src/fix.rs:181
↓ 1 callers
Method
with_call_site_scope
(mut self, scope: ScopeId<'db>)
crates/ty_python_semantic/src/types/call/bind.rs:917
↓ 1 callers
Method
with_callable_type
Set the overall receiver without replacing individual callables.
crates/ty_python_semantic/src/types/call/bind.rs:857
↓ 1 callers
Method
with_cancellation_token
( mut self, token: Option<CancellationToken>, )
crates/ruff_db/src/diagnostic/mod.rs:1562
↓ 1 callers
Method
with_comments
(self, comments: &'a [SourceComment])
crates/ruff_python_formatter/src/expression/expr_dict.rs:92
↓ 1 callers
Method
with_completion_documentation_format
Set the completion documentation format preference for the client
crates/ty_server/tests/e2e/main.rs:1552
↓ 1 callers
Method
with_concise_message
(self, message: impl Display)
crates/ty_project/src/metadata/options.rs:2538
↓ 1 callers
Method
with_condition
(mut self, condition: Option<Condition>)
crates/ruff_formatter/src/builders.rs:2244
↓ 1 callers
Method
with_dataclass_params
Returns a new [`StaticClassLiteral`] with the given dataclass params, preserving all other fields.
crates/ty_python_semantic/src/types/class/static_literal.rs:273
↓ 1 callers
Method
with_declared_constraint_solution
( &mut self, db: &'db dyn Db, bound_typevar: BoundTypeVarInstance<'db>, declar
crates/ty_python_semantic/src/types/constraints/solutions.rs:712
↓ 1 callers
Method
with_deprecated
( self, db: &'db dyn Db, deprecated: DeprecatedInstance<'db>, )
crates/ty_python_semantic/src/types/function.rs:305
↓ 1 callers
Method
with_detailed_display
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/known_instance.rs:48
↓ 1 callers
Method
with_docstring_code
(mut self, docstring_code: DocstringCode)
crates/ruff_python_formatter/src/options.rs:202
↓ 1 callers
Method
with_docstring_code_line_width
(mut self, line_width: DocstringCodeLineWidth)
crates/ruff_python_formatter/src/options.rs:208
↓ 1 callers
Method
with_external_rules
(mut self, rules: &[&str])
crates/ruff_linter/src/settings/mod.rs:868
↓ 1 callers
Method
with_filter
(filter: &str)
crates/ruff_db/src/testing.rs:196
↓ 1 callers
Method
with_fix_available
(self)
python/ruff-ecosystem/ruff_ecosystem/check.py:404
↓ 1 callers
Method
with_generators_scope
This method does several things: - It pushes a new scope onto the stack for visiting a list/dict/set comprehension or generator expression - Inside th
crates/ty_python_core/src/builder.rs:3087
↓ 1 callers
Method
with_generic_context
( &self, db: &'db dyn Db, generic_context: Option<&GenericContext<'db>>, )
crates/ty_python_semantic/src/types/display.rs:249
↓ 1 callers
Method
with_homogeneous_variadic_suffix_in_prefix
Moves required suffix elements that match a homogeneous variadic into its prefix.
crates/ty_python_semantic/src/types/signatures.rs:5819
↓ 1 callers
Method
with_hover_content_format
Set the hover content format preference for the client
crates/ty_server/tests/e2e/main.rs:1541
↓ 1 callers
Method
with_hugging
Whether to indent the content within the parentheses.
crates/ruff_python_formatter/src/expression/parentheses.rs:152
↓ 1 callers
Method
with_identity
(self, db: &'db dyn Db, identity: TypeVarIdentity<'db>)
crates/ty_python_semantic/src/types/typevar.rs:305
↓ 1 callers
Method
with_implementation_callables
Retain decorated implementation callables without changing the caller-visible overloads.
crates/ty_python_semantic/src/types/function.rs:1332
↓ 1 callers
Method
with_imported_final_for_assignment
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, candidates: ImportedFi
crates/ty_python_semantic/src/place.rs:932
↓ 1 callers
Method
with_in_memory
(&mut self)
crates/ty_test/src/db.rs:481
↓ 1 callers
Method
with_indent
(mut self, style: IndentStyle)
crates/ruff_formatter/src/printer/printer_options/mod.rs:38
↓ 1 callers
Method
with_indent
(mut self, indent: bool)
crates/ruff_python_formatter/src/builders.rs:25
↓ 1 callers
Method
with_indent_width
(mut self, indent_width: IndentWidth)
crates/ruff_python_formatter/src/options.rs:166
↓ 1 callers
Method
with_inferable_typevars
(&self, inferable: TypeVarSet<'db>)
crates/ty_python_semantic/src/types/relation.rs:1395
↓ 1 callers
Method
with_inferred_type
Set the inferred type without displaying it as an explicit annotation.
crates/ty_python_semantic/src/types/signatures.rs:6164
↓ 1 callers
Method
with_language_id
(mut self, language_id: LanguageKind)
crates/ruff_server/src/edit/text_document.rs:59
↓ 1 callers
Method
with_last_definition_metadata
Preserve the overload set and last-definition identity while updating decorator metadata.
crates/ty_python_semantic/src/types/function.rs:871
↓ 1 callers
Method
with_line_ending
(mut self, line_ending: LineEnding)
crates/ruff_python_formatter/src/options.rs:196
← previous
next →
14,301–14,400 of 31,562, ranked by callers