MCPcopy Create free account

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

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

↓ 2 callersMethodvisit_expr
(&mut self, expr: &'a Expr)
crates/ruff_python_ast/src/visitor/source_order.rs:38
↓ 2 callersMethodvisit_expr
(&mut self, expr: &'ast ast::Expr)
crates/ty_python_core/src/builder/loop_bindings_visitor.rs:163
↓ 2 callersMethodvisit_expr
(&self, expr: &mut Expr)
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:490
↓ 2 callersMethodvisit_expr
(&mut self, expr: &Expr)
crates/ruff_linter/src/rules/ruff/rules/fallible_context_manager.rs:219
↓ 2 callersMethodvisit_expr_context
(&mut self, expr_context: &'a ExprContext)
crates/ruff_python_ast/src/visitor.rs:36
↓ 2 callersMethodvisit_expr_with_type_form
(&mut self, expr: &Expr, in_type_form: bool)
crates/ty_ide/src/semantic_tokens.rs:788
↓ 2 callersMethodvisit_f_string
(&mut self, f_string: &'a FString)
crates/ruff_python_ast/src/visitor.rs:99
↓ 2 callersMethodvisit_identifier
(&mut self, identifier: &'a Identifier)
crates/ruff_python_ast/src/visitor/source_order.rs:183
↓ 2 callersMethodvisit_match_case
(&mut self, match_case: &'a MatchCase)
crates/ruff_linter/src/rules/isort/block.rs:290
↓ 2 callersMethodvisit_mod
(&mut self, module: &'a Mod)
crates/ruff_python_ast/src/visitor/source_order.rs:23
↓ 2 callersMethodvisit_newtype_instance_type
(&self, db: &'db dyn Db, newtype: NewType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:824
↓ 2 callersMethodvisit_operator
(&self, operator: &mut Operator)
crates/ruff_python_ast/src/visitor/transformer.rs:29
↓ 2 callersMethodvisit_parameter
(&mut self, parameter: &'a Parameter)
crates/ruff_python_ast/src/visitor.rs:63
↓ 2 callersMethodvisit_parameters
(&self, parameters: &mut Parameters)
crates/ruff_python_ast/src/visitor/transformer.rs:47
↓ 2 callersMethodvisit_pattern
(&mut self, pattern: &'a Pattern, context: &PyFormatContext)
crates/ruff_python_formatter/src/pattern/mod.rs:284
↓ 2 callersMethodvisit_pattern_arguments
(&mut self, pattern_arguments: &'a PatternArguments)
crates/ruff_python_ast/src/visitor.rs:87
↓ 2 callersMethodvisit_pattern_keyword
(&mut self, pattern_keyword: &'a PatternKeyword)
crates/ruff_python_ast/src/visitor.rs:90
↓ 2 callersMethodvisit_property_instance_type
(&self, db: &'db dyn Db, property: PropertyInstanceType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:72
↓ 2 callersFunctionvisit_shared_inherited_names
Collect the same candidate names for cached and uncached base pairs.
crates/ty_python_semantic/src/types/overrides.rs:589
↓ 2 callersMethodvisit_signature
(&self, db: &'db dyn Db, signature: &Signature<'db>)
crates/ty_python_semantic/src/types/call/bind.rs:166
↓ 2 callersMethodvisit_stmt
(&mut self, stmt: &'a ruff_python_ast::Stmt)
crates/ruff_python_formatter/tests/fixtures.rs:625
↓ 2 callersMethodvisit_stmt
(&mut self, stmt: &ast::Stmt)
crates/ruff_python_parser/tests/fixtures.rs:722
↓ 2 callersMethodvisit_stmt
(&mut self, stmt: &'a Stmt)
crates/ruff_linter/src/checkers/ast/mod.rs:1048
↓ 2 callersMethodvisit_stmt
(&mut self, stmt: &'a Stmt)
crates/ruff_linter/src/rules/flake8_pytest_style/rules/fixture.rs:676
↓ 2 callersMethodvisit_string_literal
(&mut self, string_literal: &'a StringLiteral)
crates/ruff_python_ast/src/visitor.rs:111
↓ 2 callersMethodvisit_subexpression
Visits a subexpression, ignoring whether it is parenthesized or not
crates/ruff_python_formatter/src/expression/mod.rs:643
↓ 2 callersMethodvisit_t_string
(&mut self, t_string: &'a TString)
crates/ruff_python_ast/src/visitor.rs:108
↓ 2 callersMethodvisit_target
(&mut self, target: &ast::Expr)
crates/ty_python_semantic/src/pull_types.rs:32
↓ 2 callersMethodvisit_type
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/instance.rs:655
↓ 2 callersMethodvisit_type
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/class/static_literal.rs:583
↓ 2 callersMethodvisit_type_alias_type
(&self, db: &'db dyn Db, alias: TypeAliasType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:598
↓ 2 callersMethodvisit_type_param
(&mut self, type_param: &'a TypeParam)
crates/ruff_python_ast/src/visitor.rs:78
↓ 2 callersMethodvisit_type_var_type
(&self, db: &'db dyn Db, typevar: TypeVarInstance<'db>)
crates/ty_python_semantic/src/types/visitor.rs:835
↓ 2 callersMethodvisit_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:1064
↓ 2 callersMethodvisit_unary_op
(&mut self, unary_op: &'a UnaryOp)
crates/ruff_python_ast/src/visitor.rs:45
↓ 2 callersMethodvisit_union_type
(&self, db: &'db dyn Db, union: UnionType<'db>)
crates/ty_python_semantic/src/types/visitor.rs:54
↓ 2 callersMethodvisit_with_item
(&mut self, with_item: &'a WithItem)
crates/ruff_python_ast/src/visitor.rs:72
↓ 2 callersFunctionwait_for_synchronizations
(case: &mut TestCase)
crates/ty/tests/file_watching.rs:4549
↓ 2 callersMethodwait_for_synchronizations
(&mut self)
crates/ty_project/src/uv/environments.rs:1236
↓ 2 callersFunctionwalk_annotation
(visitor: &mut V, expr: &'a Expr)
crates/ruff_python_ast/src/visitor.rs:354
↓ 2 callersMethodwalk_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 callersFunctionwalk_callable_type
( db: &'db dyn Db, ty: CallableType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/callable.rs:769
↓ 2 callersMethodwalk_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 callersMethodwalk_directory
( &self, path: &SystemPath, )
crates/ty_test/src/db.rs:591
↓ 2 callersFunctionwalk_elif_else_clause
( visitor: &mut V, elif_else_clause: &'a ElifElseClause, )
crates/ruff_python_ast/src/visitor.rs:125
↓ 2 callersFunctionwalk_function_type
( db: &'db dyn Db, function: FunctionType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/function.rs:1233
↓ 2 callersFunctionwalk_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 callersFunctionwalk_node
(visitor: &mut V, node: AnyNodeRef<'a>)
crates/ruff_python_ast/src/visitor/source_order.rs:225
↓ 2 callersFunctionwalk_pattern_arguments
( visitor: &mut V, pattern_arguments: &'a PatternArguments, )
crates/ruff_python_ast/src/visitor.rs:791
↓ 2 callersFunctionwalk_pattern_keyword
( visitor: &mut V, pattern_keyword: &'a PatternKeyword, )
crates/ruff_python_ast/src/visitor.rs:803
↓ 2 callersFunctionwalk_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:1563
↓ 2 callersFunctionwalk_specialization
Visit specialization arguments and the generic declaration.
crates/ty_python_semantic/src/types/generics.rs:1204
↓ 2 callersFunctionwalk_tuple_type
( db: &'db dyn Db, tuple: TupleType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/tuple.rs:139
↓ 2 callersFunctionwalk_type_alias_type
( db: &'db dyn Db, type_alias: TypeAliasType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/type_alias.rs:518
↓ 2 callersFunctionwalk_typed_dict_fields
Visit a `TypedDict`'s declared field types, including its extra-item type.
crates/ty_python_semantic/src/types/typed_dict.rs:1416
↓ 2 callersFunctionwalk_typed_dict_type
( db: &'db dyn Db, typed_dict: TypedDictType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types/typed_dict.rs:1398
↓ 2 callersFunctionwalk_typeis_type
( db: &'db dyn Db, typeis_type: TypeIsType<'db>, visitor: &V, )
crates/ty_python_semantic/src/types.rs:12806
↓ 2 callersFunctionwarn_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:2281
↓ 2 callersFunctionwarn_incompatible_formatter_settings
(resolver: &Resolver)
crates/ruff/src/commands/format.rs:1081
↓ 2 callersMethodwatch
(self)
crates/ty_python_semantic/mdtest.py:251
↓ 2 callersMethodwhen_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:774
↓ 2 callersMethodwhen_constraint_set_subtype_of
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, target: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:428
↓ 2 callersMethodwhen_none_or
( self, _db: &'db dyn Db, builder: &'c ConstraintSetBuilder<'db>, f: impl FnOn
crates/ty_python_semantic/src/types/constraints.rs:161
↓ 2 callersMethodwhen_satisfied_by
Returns the constraints under which `lower` is assignable to every stored upper clause.
crates/ty_python_semantic/src/types/constraints.rs:2065
↓ 2 callersMethodwhich
(&self, name: &str)
crates/ty_server/src/system.rs:253
↓ 2 callersMethodwiden_comparison_truthiness
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous: &Self,
crates/ty_python_semantic/src/types/infer.rs:1750
↓ 2 callersMethodwill_break
(&self)
crates/ruff_formatter/src/format_element.rs:259
↓ 2 callersMethodwith_accessors
( self, db: &'db dyn Db, getter: Option<Type<'db>>, setter: Option<Type<'db>>,
crates/ty_python_semantic/src/types.rs:1716
↓ 2 callersMethodwith_applied_options_from
(mut self, previous: &Self)
crates/ty_project/src/metadata.rs:375
↓ 2 callersMethodwith_arguments
(self, db: &'db dyn Db, arguments: Option<Specialization<'db>>)
crates/ty_python_semantic/src/types/recursive.rs:461
↓ 2 callersMethodwith_bound_type
(mut self, bound_type: Type<'db>)
crates/ty_python_semantic/src/types/call/bind.rs:3843
↓ 2 callersMethodwith_class
(self, db: &'db dyn Db, class: ClassType<'db>)
crates/ty_python_semantic/src/types/instance.rs:1604
↓ 2 callersMethodwith_dataclass_transformer_params
( self, db: &'db dyn Db, params: DataclassTransformerParams<'db>, )
crates/ty_python_semantic/src/types/function.rs:322
↓ 2 callersMethodwith_end
(&self, offset: TextSize)
crates/ruff_text_size/src/range.rs:390
↓ 2 callersMethodwith_file
( mut self, path: &'a (impl AsRef<SystemPath> + ?Sized), content: &'a str,
crates/ty_python_core/src/db.rs:150
↓ 2 callersMethodwith_full_object_ty
(self, full_object_ty: Type<'db>)
crates/ty_python_semantic/src/types/subscript.rs:279
↓ 2 callersMethodwith_func
(self, db: &'db dyn Db, func: Type<'db>)
crates/ty_python_semantic/src/types/method.rs:188
↓ 2 callersMethodwith_handle
(&mut self, callback: impl FnOnce(&mut dyn std::io::Write) -> T)
crates/ty/src/printer.rs:151
↓ 2 callersMethodwith_imported_final
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, candidates: ImportedFi
crates/ty_python_semantic/src/place.rs:913
↓ 2 callersMethodwith_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 callersMethodwith_indent_style
(mut self, indent_style: IndentStyle)
crates/ruff_python_formatter/src/options.rs:184
↓ 2 callersMethodwith_instance_type
(self, instance_type: Type<'db>)
crates/ty_python_semantic/src/types/call/bind/constructor.rs:767
↓ 2 callersMethodwith_invalid
(mut self)
crates/ruff_python_ast/src/nodes.rs:1818
↓ 2 callersMethodwith_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:595
↓ 2 callersMethodwith_line_width
(mut self, width: LineWidth)
crates/ruff_formatter/src/printer/printer_options/mod.rs:32
↓ 2 callersMethodwith_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:770
↓ 2 callersMethodwith_mode
(mut self, mode: Mode)
crates/ruff_python_codegen/src/generator.rs:134
↓ 2 callersMethodwith_notebook
(mut self, notebook: AnySystemPath)
crates/ty_server/src/document/text_document.rs:68
↓ 2 callersMethodwith_parameters
Create a new signature with the given parameters.
crates/ty_python_semantic/src/types/signatures.rs:2552
↓ 2 callersMethodwith_prefix
Return a copy of this parameter list with the given prefix parameters.
crates/ty_python_semantic/src/types/signatures.rs:5243
↓ 2 callersMethodwith_python_platform
(&mut self, platform: PythonPlatform)
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:127
↓ 2 callersMethodwith_python_version
(mut self, python_version: PythonVersion)
crates/ruff_python_parser/tests/fixtures.rs:601
↓ 2 callersMethodwith_recursion_context
(mut self, context: Option<&'env TypeRecursionContext<'db>>)
crates/ty_python_semantic/src/types.rs:563
↓ 2 callersMethodwith_rule_selection
(mut self, selection: RuleSelection)
crates/ty_python_semantic/src/db.rs:267
↓ 2 callersMethodwith_semantic_checker
(&mut self, f: impl FnOnce(&mut SemanticSyntaxChecker, &Self))
crates/ty_python_core/src/builder.rs:3476
↓ 2 callersMethodwith_semantic_checker
(&mut self, f: impl FnOnce(&mut SemanticSyntaxChecker, &Self))
crates/ruff_python_parser/tests/fixtures.rs:610
↓ 2 callersMethodwith_starred_annotation
(mut self)
crates/ty_python_semantic/src/types/signatures.rs:6170
↓ 2 callersMethodwith_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 callersMethodwith_target_version
(mut self, target_version: ast::PythonVersion)
crates/ruff_python_formatter/src/options.rs:160
↓ 2 callersMethodwith_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
← previousnext →7,301–7,400 of 31,562, ranked by callers