Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
↓ 2 callers
Method
visit_stmt
(&mut self, stmt: &'a Stmt)
crates/ruff_linter/src/checkers/ast/mod.rs:1058
↓ 2 callers
Method
visit_stmt
(&mut self, stmt: &'a Stmt)
crates/ruff_linter/src/rules/flake8_pytest_style/rules/fixture.rs:676
↓ 2 callers
Method
visit_string_literal
(&mut self, string_literal: &'a StringLiteral)
crates/ruff_python_ast/src/visitor.rs:111
↓ 2 callers
Method
visit_subexpression
Visits a subexpression, ignoring whether it is parenthesized or not
crates/ruff_python_formatter/src/expression/mod.rs:643
↓ 2 callers
Method
visit_t_string
(&mut self, t_string: &'a TString)
crates/ruff_python_ast/src/visitor.rs:108
↓ 2 callers
Method
visit_target
(&mut self, target: &ast::Expr)
crates/ty_python_semantic/src/pull_types.rs:32
↓ 2 callers
Method
visit_type
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/instance.rs:700
↓ 2 callers
Method
visit_type
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/class/static_literal.rs:582
↓ 2 callers
Method
visit_type_alias_type
(&self, db: &'db dyn Db, alias: TypeAliasType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:602
↓ 2 callers
Method
visit_type_param
(&mut self, type_param: &'a TypeParam)
crates/ruff_python_ast/src/visitor.rs:78
↓ 2 callers
Method
visit_type_with_cycle_fallback
Transform a type with a caller-selected cycle fallback and cache policy. `cycle_fallback` receives the active type whose identity matched the input t
crates/ty_python_semantic/src/types/cyclic.rs:1076
↓ 2 callers
Method
visit_unary_op
(&mut self, unary_op: &'a UnaryOp)
crates/ruff_python_ast/src/visitor.rs:45
↓ 2 callers
Method
visit_union_type
(&self, db: &'db dyn Db, union: UnionType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:54
↓ 2 callers
Method
visit_with_item
(&mut self, with_item: &'a WithItem)
crates/ruff_python_ast/src/visitor.rs:72
↓ 2 callers
Function
wait_for_synchronizations
(case: &mut TestCase)
crates/ty/tests/file_watching.rs:4557
↓ 2 callers
Method
wait_for_synchronizations
(&mut self)
crates/ty_project/src/uv/environments.rs:1463
↓ 2 callers
Function
walk_annotation
(visitor: &mut V, expr: &'a Expr)
crates/ruff_python_ast/src/visitor.rs:354
↓ 2 callers
Method
walk_callable_signature
Visit the definition-time parts of a function / lambda — everything evaluated when the `def` (or `lambda` expression) is reached at runtime in the *en
crates/ty_ide/src/call_hierarchy/outgoing_calls.rs:184
↓ 2 callers
Function
walk_callable_type
( db: &'db dyn Db, ty: CallableType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/callable.rs:769
↓ 2 callers
Method
walk_class_signature
Visit the definition-time parts of a class statement: decorators, type parameters, base classes / keyword arguments / metaclass. The body is handled s
crates/ty_ide/src/call_hierarchy/outgoing_calls.rs:208
↓ 2 callers
Method
walk_directory
( &self, path: &SystemPath, )
crates/ty_test/src/db.rs:591
↓ 2 callers
Function
walk_elif_else_clause
( visitor: &mut V, elif_else_clause: &'a ElifElseClause, )
crates/ruff_python_ast/src/visitor.rs:125
↓ 2 callers
Function
walk_function_type
( db: &'db dyn Db, function: FunctionType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/function.rs:1233
↓ 2 callers
Function
walk_newtype_base
Evaluate and visit the instance type of a newtype's base. The caller must guard against recursive newtypes.
crates/ty_python_semantic/src/types/newtype.rs:280
↓ 2 callers
Function
walk_node
(visitor: &mut V, node: AnyNodeRef<'a>)
crates/ruff_python_ast/src/visitor/source_order.rs:225
↓ 2 callers
Function
walk_nominal_instance_type
( db: &'db dyn Db, nominal: NominalInstanceType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/instance.rs:209
↓ 2 callers
Function
walk_pattern_arguments
( visitor: &mut V, pattern_arguments: &'a PatternArguments, )
crates/ruff_python_ast/src/visitor.rs:791
↓ 2 callers
Function
walk_pattern_keyword
( visitor: &mut V, pattern_keyword: &'a PatternKeyword, )
crates/ruff_python_ast/src/visitor.rs:803
↓ 2 callers
Function
walk_protocol_member_access
( db: &'db dyn Db, access: ProtocolMemberAccess<'_, 'db>, self_type: Option<Type<'db>>, visito
crates/ty_python_semantic/src/types/protocol_class.rs:1589
↓ 2 callers
Function
walk_specialization
Visit specialization arguments and the generic declaration.
crates/ty_python_semantic/src/types/generics.rs:1216
↓ 2 callers
Function
walk_tuple_type
( db: &'db dyn Db, tuple: TupleType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/tuple.rs:139
↓ 2 callers
Function
walk_type_alias_type
( db: &'db dyn Db, type_alias: TypeAliasType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/type_alias.rs:521
↓ 2 callers
Function
walk_typed_dict_fields
Visit a `TypedDict`'s declared field types, including its extra-item type.
crates/ty_python_semantic/src/types/typed_dict.rs:1417
↓ 2 callers
Function
walk_typed_dict_type
( db: &'db dyn Db, typed_dict: TypedDictType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/typed_dict.rs:1399
↓ 2 callers
Function
walk_typeis_type
( db: &'db dyn Db, typeis_type: TypeIsType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types.rs:12882
↓ 2 callers
Function
warn_about_unknown_options
Warns about unknown options received by the server. If `workspace_uri` is `Some`, it indicates that the unknown options were received during a worksp
crates/ty_server/src/session.rs:2309
↓ 2 callers
Function
warn_incompatible_formatter_settings
(resolver: &Resolver)
crates/ruff/src/commands/format.rs:1084
↓ 2 callers
Method
watch
(self)
crates/ty_python_semantic/mdtest.py:233
↓ 2 callers
Method
when_constraint_set_assignable_to_with_provenance
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, target: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:775
↓ 2 callers
Method
when_constraint_set_subtype_of
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, target: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:429
↓ 2 callers
Method
when_none_or
( self, _db: &'db dyn Db, builder: &'c ConstraintSetBuilder<'db>, f: impl FnOn
crates/ty_python_semantic/src/types/constraints.rs:157
↓ 2 callers
Method
when_satisfied_by
Returns the constraints under which `lower` is assignable to every stored upper clause.
crates/ty_python_semantic/src/types/constraints.rs:1994
↓ 2 callers
Method
which
(&self, name: &str)
crates/ty_server/src/system.rs:253
↓ 2 callers
Method
widen_comparison_truthiness
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous: &Self,
crates/ty_python_semantic/src/types/infer.rs:1749
↓ 2 callers
Method
will_break
(&self)
crates/ruff_formatter/src/format_element.rs:259
↓ 2 callers
Method
with_accessors
( self, db: &'db dyn Db, getter: Option<Type<'db>>, setter: Option<Type<'db>>,
crates/ty_python_semantic/src/types.rs:1715
↓ 2 callers
Method
with_applied_options_from
(mut self, previous: &Self)
crates/ty_project/src/metadata.rs:378
↓ 2 callers
Method
with_arguments
(self, db: &'db dyn Db, arguments: Option<Specialization<'db>>)
crates/ty_python_semantic/src/types/recursive.rs:461
↓ 2 callers
Method
with_bound_type
(mut self, bound_type: Type<'db>)
crates/ty_python_semantic/src/types/call/bind.rs:3852
↓ 2 callers
Method
with_class
(self, db: &'db dyn Db, class: ClassType<'db>)
crates/ty_python_semantic/src/types/instance.rs:1649
↓ 2 callers
Method
with_dataclass_transformer_params
( self, db: &'db dyn Db, params: DataclassTransformerParams<'db>, )
crates/ty_python_semantic/src/types/function.rs:322
↓ 2 callers
Method
with_end
(&self, offset: TextSize)
crates/ruff_text_size/src/range.rs:390
↓ 2 callers
Method
with_file
( mut self, path: &'a (impl AsRef<SystemPath> + ?Sized), content: &'a str,
crates/ty_python_core/src/db.rs:150
↓ 2 callers
Method
with_full_object_ty
(self, full_object_ty: Type<'db>)
crates/ty_python_semantic/src/types/subscript.rs:279
↓ 2 callers
Method
with_func
(self, db: &'db dyn Db, func: Type<'db>)
crates/ty_python_semantic/src/types/method.rs:188
↓ 2 callers
Method
with_handle
(&mut self, callback: impl FnOnce(&mut dyn std::io::Write) -> T)
crates/ty/src/printer.rs:148
↓ 2 callers
Method
with_imported_final
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, candidates: ImportedFi
crates/ty_python_semantic/src/place.rs:911
↓ 2 callers
Method
with_in_excluded
Returns a new [`ExpressionContext`] which excludes `in` as part of a comparison expression.
crates/ruff_python_parser/src/parser/expression.rs:3204
↓ 2 callers
Method
with_indent_style
(mut self, indent_style: IndentStyle)
crates/ruff_python_formatter/src/options.rs:184
↓ 2 callers
Method
with_instance_type
(self, instance_type: Type<'db>)
crates/ty_python_semantic/src/types/call/bind/constructor.rs:747
↓ 2 callers
Method
with_invalid
(mut self)
crates/ruff_python_ast/src/nodes.rs:1831
↓ 2 callers
Method
with_known_unpacking
Retain the elements of collections constructed directly at an unpacking site. ```py def pair(x: int, y: str) -> None: ... pair(*[1, "two"]) # Varia
crates/ty_python_semantic/src/types/call/arguments.rs:610
↓ 2 callers
Method
with_line_width
(mut self, width: LineWidth)
crates/ruff_formatter/src/printer/printer_options/mod.rs:32
↓ 2 callers
Method
with_message_override
Replace the headline message when the diagnostic is finalized and add an info sub-diagnostic. The original message is retained on the primary annotati
crates/ty_python_semantic/src/types/context.rs:793
↓ 2 callers
Method
with_mode
(mut self, mode: Mode)
crates/ruff_python_codegen/src/generator.rs:134
↓ 2 callers
Method
with_notebook
(mut self, notebook: AnySystemPath)
crates/ty_server/src/document/text_document.rs:68
↓ 2 callers
Method
with_prefix
Return a copy of this parameter list with the given prefix parameters.
crates/ty_python_semantic/src/types/signatures.rs:5124
↓ 2 callers
Method
with_python_platform
(&mut self, platform: PythonPlatform)
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:127
↓ 2 callers
Method
with_python_version
(mut self, python_version: PythonVersion)
crates/ruff_python_parser/tests/fixtures.rs:601
↓ 2 callers
Method
with_recursion_context
(mut self, context: Option<&'env TypeRecursionContext<'db>>)
crates/ty_python_semantic/src/types.rs:564
↓ 2 callers
Method
with_rule_selection
(mut self, selection: RuleSelection)
crates/ty_python_semantic/src/db.rs:267
↓ 2 callers
Method
with_semantic_checker
(&mut self, f: impl FnOnce(&mut SemanticSyntaxChecker, &Self))
crates/ty_python_core/src/builder.rs:3476
↓ 2 callers
Method
with_semantic_checker
(&mut self, f: impl FnOnce(&mut SemanticSyntaxChecker, &Self))
crates/ruff_python_parser/tests/fixtures.rs:610
↓ 2 callers
Method
with_starred_annotation
(mut self)
crates/ty_python_semantic/src/types/signatures.rs:6073
↓ 2 callers
Method
with_starred_expression_allowed
Returns a new [`ExpressionContext`] which allows starred expression with the given precedence.
crates/ruff_python_parser/src/parser/expression.rs:3185
↓ 2 callers
Method
with_target_version
(mut self, target_version: ast::PythonVersion)
crates/ruff_python_formatter/src/options.rs:160
↓ 2 callers
Method
with_third_party_packages
Makes packages installed in the synthetic virtual environment available for imports. Files under `/.venv/lib/python3.13/site-packages` are treated as
crates/ty_python_semantic/src/db.rs:285
↓ 2 callers
Method
with_transposed_type_var_with_recursion
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, context: &TypeRecursio
crates/ty_python_semantic/src/types/subclass_of.rs:626
↓ 2 callers
Method
with_trigger_parameter_hints_command
Advertise support for the `ty.triggerParameterHints` completion command.
crates/ty_server/tests/e2e/main.rs:1588
↓ 2 callers
Method
with_type
(self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types.rs:12928
↓ 2 callers
Method
with_type
(self, ty: U)
crates/ty_python_semantic/src/place.rs:160
↓ 2 callers
Method
with_type_expression_context
(&mut self, infer: impl FnOnce(&mut Self) -> R)
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:209
↓ 2 callers
Method
with_typeshed
(self, typeshed_option: U)
crates/ty_module_resolver/src/testing.rs:120
↓ 2 callers
Method
with_unknown
(mut self, unknown: HashMap<String, Value>)
crates/ty_server/src/session/options.rs:196
↓ 2 callers
Method
with_unknown_member_fallback
( self, db: &'db dyn Db, result: PlaceAndQualifiers<'db>, )
crates/ty_python_semantic/src/types/class/enum_literal.rs:219
↓ 2 callers
Method
with_use_uv
Set the legacy `experimental.useUv` editor option.
crates/ty_server/tests/e2e/main.rs:1376
↓ 2 callers
Method
with_user_config_directory
Overrides the user configuration directory for the current scope (for as long as the returned override is not dropped).
crates/ruff_db/src/system/os.rs:483
↓ 2 callers
Method
with_uv_script_manager
Select uv as the script project manager in the editor configuration.
crates/ty_server/tests/e2e/main.rs:1369
↓ 2 callers
Method
with_variable_types_inlay_hints
(mut self, variable_types: bool)
crates/ty_server/src/session/options.rs:163
↓ 2 callers
Method
with_vendored
(&mut self, vendored_file_system: VendoredFileSystem)
crates/ruff_db/src/lib.rs:185
↓ 2 callers
Method
without_bindings
Returns the mapping for nested types when a callable has selected outer parameter lists.
crates/ty_python_semantic/src/types.rs:11776
↓ 2 callers
Method
without_unchanged_lines
(self)
python/ruff-ecosystem/ruff_ecosystem/types.py:67
↓ 2 callers
Method
without_variadics
(&self)
crates/ty_python_semantic/src/types/signatures.rs:5245
↓ 2 callers
Function
workspace_symbols
Get all workspace symbols matching the query string. Returns symbols from all files in the workspace, filtered by the query.
crates/ty_ide/src/workspace_symbols.rs:8
↓ 2 callers
Method
wrap_socket
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S504.py:10
↓ 2 callers
Method
writable_system
(&self)
crates/ruff_db/src/system/test.rs:366
↓ 2 callers
Method
write
(&self, writer: &mut impl std::fmt::Write)
crates/ruff_linter/src/noqa.rs:1090
↓ 2 callers
Method
write_changed
Write a list of the files that would be changed and any errors to the given writer.
crates/ruff/src/commands/format.rs:573
↓ 2 callers
Function
write_conda_interpreters
(case: &CliTest)
crates/ty/tests/cli/python_environment.rs:1328
↓ 2 callers
Method
write_config
Write the tool's configuration file.
scripts/ty_benchmark/src/benchmark/tool.py:44
← previous
next →
7,401–7,500 of 31,766, ranked by callers