MCPcopy Create free account

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

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

↓ 4 callersMethoduris
Returns a list of cell URIs in the order they appear in the array.
crates/ruff_server/src/edit/notebook.rs:228
↓ 4 callersMethodurl
Return the URL for the rule documentation.
crates/ruff_linter/src/registry.rs:376
↓ 4 callersMethodused_interiors
(&self)
crates/ty_python_core/src/reachability_constraints.rs:171
↓ 4 callersFunctionuser_visible_definitions
Returns the user-visible definitions represented by a use-def binding. Comprehension walruses are represented in the containing scope by synthetic ea
crates/ty_python_semantic/src/types/definition_resolution.rs:531
↓ 4 callersMethoduv_workspace
(&self)
crates/ty_project/src/metadata.rs:446
↓ 4 callersMethoduv_workspace_discovery_enabled
Whether ty should query uv for workspace metadata.
crates/ty_project/src/metadata.rs:396
↓ 4 callersMethoduv_workspace_metadata
(&self)
crates/ty_project/src/metadata.rs:466
↓ 4 callersMethodvalidate_assignment_target
Validate that the given expression is a valid assignment target. If the expression is a list or tuple, then validate each element in the list. If it'
crates/ruff_python_parser/src/parser/statement.rs:3856
↓ 4 callersMethodvalidate_dynamic_type_bases
Validate base classes from the second argument of a `type()` or `types.new_class()` call. This validates bases that are valid `ClassBase` variants bu
crates/ty_python_semantic/src/types/infer/builder/dynamic_class.rs:123
↓ 4 callersMethodvalue
(self)
crates/ruff_python_formatter/src/expression/binary_like.rs:1081
↓ 4 callersMethodvalue
Returns the value expression for assignment-based definitions. Returns `Some` for `Assignment` and `AnnotatedAssignment` (if it has a value), `None`
crates/ty_python_core/src/definition.rs:1182
↓ 4 callersMethodvalue_expression_types
Yields the operand types used for runtime checks such as `isinstance`. Recorded operands appear in first-occurrence order, counting equivalent special
crates/ty_python_semantic/src/types/union_type_instance.rs:381
↓ 4 callersMethodvariable_index
( self, db: &'db dyn Db, typevar: BoundTypeVarIdentity<'db>, )
crates/ty_python_semantic/src/types/generics.rs:558
↓ 4 callersMethodvariance_of
Refer to this signature's equation, including recursive `TypeOf` references to itself.
crates/ty_python_semantic/src/types/function.rs:1991
↓ 4 callersFunctionvendored_typeshed_versions
(vendored: &VendoredFileSystem)
crates/ty_module_resolver/src/typeshed.rs:13
↓ 4 callersMethodversion
(&self)
crates/ty_server/src/session.rs:1984
↓ 4 callersMethodvisit
Runs the directory traversal and calls the passed `builder` to create visitors that do the visiting. The walker may run multiple threads to visit the
crates/ruff_db/src/system/walk_directory.rs:95
↓ 4 callersMethodvisit_annotation
(&mut self, expr: &'a Expr)
crates/ruff_python_ast/src/visitor.rs:27
↓ 4 callersMethodvisit_arguments
(&mut self, arguments: &'a Arguments)
crates/ruff_db/src/parsed.rs:742
↓ 4 callersMethodvisit_body
(&mut self, body: &'a [Stmt])
crates/ruff_python_ast/src/statement_visitor.rs:7
↓ 4 callersMethodvisit_body
(&self, body: &mut [Stmt])
crates/ruff_python_ast/src/visitor/transformer.rs:80
↓ 4 callersMethodvisit_body
(&mut self, body: &'a [Stmt])
crates/ruff_linter/src/rules/flake8_return/visitor.rs:213
↓ 4 callersMethodvisit_constraints_and_then
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Con
crates/ty_python_semantic/src/types/constraints/solutions.rs:750
↓ 4 callersMethodvisit_decorator
Visit decorators, handling simple name decorators vs complex expressions
crates/ty_ide/src/semantic_tokens.rs:1232
↓ 4 callersMethodvisit_expr
(&mut self, expr: &'db ast::Expr)
crates/ty_ide/src/symbols.rs:1538
↓ 4 callersMethodvisit_expr_with_context
(&mut self, expr: &'ast ast::Expr, context: ExpressionContext)
crates/ty_python_core/src/builder.rs:3487
↓ 4 callersMethodvisit_guarded
(&self, db: &'db dyn Db, ty: Type<'db>, visit: impl FnOnce())
crates/ty_python_semantic/src/types/tuple/promotion.rs:28
↓ 4 callersMethodvisit_interpolated_string_element
( &mut self, interpolated_string_element: &'a InterpolatedStringElement, )
crates/ruff_python_ast/src/visitor.rs:102
↓ 4 callersMethodvisit_node
(&mut self, storage: &ConstraintSetStorage<'_>, node: NodeId)
crates/ty_python_semantic/src/types/constraints.rs:2908
↓ 4 callersMethodvisit_parameters
(&mut self, parameters: &'a Parameters)
crates/ruff_python_ast/src/visitor.rs:60
↓ 4 callersMethodvisit_parameters
Visit parameters for a function or lambda expression and classify them as parameters, selfParameter, or clsParameter as appropriate.
crates/ty_ide/src/semantic_tokens.rs:754
↓ 4 callersMethodvisit_pattern
(&self, pattern: &mut Pattern)
crates/ruff_python_ast/src/visitor/transformer.rs:71
↓ 4 callersMethodvisit_type
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/generics.rs:851
↓ 4 callersMethodvisit_type
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/tuple/promotion.rs:46
↓ 4 callersMethodvisit_type_params
(&mut self, type_params: &'a TypeParams)
crates/ruff_db/src/parsed.rs:786
↓ 4 callersMethodvisit_type_params
(&mut self, type_params: &'a TypeParams)
crates/ruff_python_ast/src/visitor.rs:75
↓ 4 callersFunctionwalk_alias
(_visitor: &V, _alias: &'a Alias)
crates/ruff_python_ast/src/visitor.rs:855
↓ 4 callersFunctionwalk_arguments
(visitor: &mut V, arguments: &'a Arguments)
crates/ruff_python_ast/src/visitor.rs:658
↓ 4 callersMethodwalk_directory
Returns a builder for walking the directory tree of `path`. The only files that are ignored when setting `WalkDirectoryBuilder::standard_filters` are
crates/ruff_db/src/system/memory_fs.rs:272
↓ 4 callersFunctionwalk_parameter
(visitor: &mut V, parameter: &'a Parameter)
crates/ruff_python_ast/src/visitor.rs:684
↓ 4 callersFunctionwalk_t_string
(visitor: &mut V, t_string: &'a TString)
crates/ruff_python_ast/src/visitor.rs:835
↓ 4 callersFunctionwalk_type_params
(visitor: &mut V, type_params: &'a TypeParams)
crates/ruff_python_ast/src/visitor.rs:701
↓ 4 callersMethodwhen_assignable_to_owned
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, target: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:632
↓ 4 callersMethodwhen_subtype_of
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, target: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:411
↓ 4 callersMethodwhen_unconstrained
(self)
crates/ty_python_semantic/src/types/constraints.rs:1826
↓ 4 callersMethodwith_annotation
(self, annotation: Option<Annotation>)
crates/ty_project/src/metadata/options.rs:2645
↓ 4 callersMethodwith_complete_function_parentheses
(mut self, enabled: bool)
crates/ty_server/src/session/options.rs:181
↓ 4 callersMethodwith_kind
(self, kind: FoldingRangeKind)
crates/ty_ide/src/folding_range.rs:42
↓ 4 callersMethodwith_line_width
(mut self, line_width: LineWidth)
crates/ruff_python_formatter/src/options.rs:190
↓ 4 callersMethodwith_materialization
( self, db: &'db dyn Db, materialization: Option<MaterializationKind>, )
crates/ty_python_semantic/src/types/recursive.rs:471
↓ 4 callersMethodwith_parameters
Create a new signature with the given parameters.
crates/ty_python_semantic/src/types/signatures.rs:2563
↓ 4 callersMethodwith_provenance
(self, provenance: Provenance<'db>)
crates/ty_python_semantic/src/types/call.rs:516
↓ 4 callersMethodwith_provenance
(mut self, provenance: ConstraintProvenance)
crates/ty_python_semantic/src/types/constraints/variables.rs:511
↓ 4 callersMethodwith_show_syntax_errors
(mut self, show_syntax_errors: bool)
crates/ty_server/src/session/options.rs:190
↓ 4 callersMethodwith_target
(self, target: Option<NavigationTarget>)
crates/ty_ide/src/inlay_hints.rs:334
↓ 4 callersMethodwith_uv_workspace_discovery
(mut self, enabled: bool)
crates/ty_project/src/metadata.rs:356
↓ 4 callersMethodwithout_context_collection
Temporarily suppress error context collection for the duration of `f`. Note: we may eventually not need this method once we properly retain error con
crates/ty_python_semantic/src/types/relation.rs:1897
↓ 4 callersMethodworkspace_root
(&self)
crates/ty_project/src/uv/metadata.rs:34
↓ 4 callersMethodworkspaces
(&self)
crates/ty_server/src/session.rs:466
↓ 4 callersFunctionwrite_executable
(case: &CliTest, path: impl AsRef<Path>)
crates/ty/tests/cli/server.rs:256
↓ 4 callersMethodwrite_fmt
(&mut self, args: Arguments<Context>)
crates/ruff_formatter/src/buffer.rs:147
↓ 3 callersFunctionToml
({ height = 24, width = 24, }: { height?: number; width?: number; })
playground/shared/src/Icons.tsx:259
↓ 3 callersMethod_
(_: int)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI063.py:46
↓ 3 callersFunction_ctype_from_dtype
(dtype)
crates/ruff_benchmark/resources/numpy/ctypeslib.py:458
↓ 3 callersFunction_ctype_ndarray
Create an ndarray of the given element type and shape
crates/ruff_benchmark/resources/numpy/ctypeslib.py:353
↓ 3 callersFunctiona
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B012.py:1
↓ 3 callersMethodadd
Add resolved [`Settings`] under the given directory.
crates/ruff_workspace/src/resolver.rs:106
↓ 3 callersMethodadd
(&self, request: ImportRequest<'_>)
crates/ty_ide/src/importer.rs:26
↓ 3 callersMethodadd
(&mut self, element: Type<'db>, reachability: Truthiness)
crates/ty_python_semantic/src/place.rs:2083
↓ 3 callersMethodadd_bug_sub_diagnostics
Adds sub diagnostics that tell the user that this is a bug in ty and asks them to open an issue on GitHub.
crates/ruff_db/src/diagnostic/mod.rs:104
↓ 3 callersMethodadd_directive
(&mut self, directive: MdtestDirective, value: Option<String>)
crates/mdtest/src/parser.rs:1108
↓ 3 callersMethodadd_expression_range
Adds a folding range for an expression.
crates/ty_ide/src/folding_range.rs:152
↓ 3 callersMethodadd_in_place_impl
(&mut self, ty: Type<'db>, seen_aliases: &mut Vec<Type<'db>>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:812
↓ 3 callersMethodadd_keys_to_projection
( &self, db: &'db dyn Db, operator: ComparisonOperator, projection: &mut EnumK
crates/ty_python_semantic/src/types/equality/enums.rs:1046
↓ 3 callersMethodadd_not_constraint
Adds a new reachability constraint that is the ternary NOT of an existing one.
crates/ty_python_core/src/reachability_constraints.rs:393
↓ 3 callersMethodadd_parenthesized_expression_range
Adds a folding range for an expression if it is enclosed in parentheses.
crates/ty_ide/src/folding_range.rs:186
↓ 3 callersMethodadd_place_from_target
(&mut self, target: &ast::Expr)
crates/ty_python_core/src/builder/loop_bindings_visitor.rs:37
↓ 3 callersMethodadd_skip_query
Attempts to add the given completion to this collection. Unlike `Completion::add`, this will skip matching the query pattern associated with this col
crates/ty_ide/src/completion.rs:276
↓ 3 callersFunctionadd_suppression_inner
( path: &Path, diagnostics: &[Diagnostic], locator: &Locator, comment_ranges: &CommentRanges,
crates/ruff_linter/src/noqa.rs:816
↓ 3 callersMethodadd_symbol
Add a new symbol and return its ID.
crates/ty_ide/src/symbols.rs:850
↓ 3 callersFunctionadvance_candidates
Finds candidates for the next component of a module name, starting from candidates for its parent prefix. `filter` determines which file types may sup
crates/ty_module_resolver/src/resolve/search.rs:1149
↓ 3 callersMethodalias_spec
(self)
crates/ty_python_semantic/src/types/special_form.rs:985
↓ 3 callersFunctionall_arguments_range
Return the range for a binding diagnostic that is not related to one specific argument. For a normal function call, this is just the range of the ent
crates/ty_python_semantic/src/types/call/bind.rs:11662
↓ 3 callersMethodall_initialized
Returns `true` if all workspaces have been [initialized]. [initialized]: Workspaces::initialize
crates/ty_server/src/session.rs:1829
↓ 3 callersFunctionall_symbols
Get all symbols matching the query string. Returns symbols from all files in the workspace and dependencies, filtered by the query.
crates/ty_ide/src/all_symbols.rs:17
↓ 3 callersFunctionall_values_compare_equal
Return whether every value represented by `ty` is known to compare equal to every other value. Comparison evaluation is reused so this stays aligned
crates/ty_python_semantic/src/types/equality.rs:954
↓ 3 callersMethodallow
Reports whether or not tuple size promotion is allowed for the given typevar in light of the constraints recorded on this object.
crates/ty_python_semantic/src/types/tuple/promotion.rs:157
↓ 3 callersMethodanonymized_line_numbers
Whether to anonymize line numbers in full diagnostic output.
crates/ruff_db/src/diagnostic/mod.rs:1463
↓ 3 callersMethodany_enabled_in
(&self, rules: &RuleSet)
crates/ruff_linter/src/settings/rule_table.rs:39
↓ 3 callersFunctionany_over_type_impl
Shared implementation for type searches.
crates/ty_python_semantic/src/types/visitor.rs:985
↓ 3 callersMethodany_reachable
( mut self, db: &'db dyn Db, mut predicate: impl FnMut(DefinitionState<'db>) -> bool,
crates/ty_python_semantic/src/reachability.rs:2307
↓ 3 callersMethodappend
(self, x)
crates/ruff_linter/resources/test/fixtures/perflint/PERF401.py:66
↓ 3 callersMethodapply
(self, data: &mut FileCacheData)
crates/ruff/src/cache.rs:487
↓ 3 callersMethodapply_changes
(&mut self, changes: &[ChangeEvent])
crates/ty_project/src/db/changes.rs:97
↓ 3 callersMethodapply_changes
( &mut self, changes: Vec<lsp_types::TextDocumentContentChangeEvent>, new_version: Doc
crates/ty_server/src/document/text_document.rs:93
↓ 3 callersFunctionapply_edits
Apply edits from right to left so each replacement leaves the remaining offsets unchanged.
crates/ty_ide/src/inlay_hints.rs:1498
↓ 3 callersMethodapply_in_node
Determine whether to actually apply fluent layout in attribute, call and subscript formatting
crates/ruff_python_formatter/src/expression/mod.rs:1120
↓ 3 callersMethodapply_specialization
Applies a specialization to this specialization. This is used, for instance, when a generic class inherits from a generic alias: ```py class A[T]: ..
crates/ty_python_semantic/src/types/generics.rs:1422
↓ 3 callersFunctionapply_type_alias_specialization
( db: &'db dyn Db, ty: Type<'db>, specialization: Specialization<'db>, recursion_context: Opti
crates/ty_python_semantic/src/types/type_alias.rs:459
↓ 3 callersMethodapply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: &[Type<'db>
crates/ty_python_semantic/src/types/generics.rs:1464
← previousnext →3,701–3,800 of 31,766, ranked by callers