MCPcopy Create free account

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

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

↓ 3 callersMethodcloseDocument
(name: string)
playground/ty/src/Playground.tsx:720
↓ 3 callersMethodclosing_kind
Returns the token kind that closes the parentheses.
crates/ruff_python_parser/src/parser/mod.rs:1034
↓ 3 callersMethodcmp
(&self, other: &Self)
crates/ruff_linter/src/rules/isort/sorting.rs:45
↓ 3 callersFunctioncode_actions
( db: &dyn Db, file: ProgramFile<'_>, diagnostic_range: TextRange, diagnostic_id: &str, )
crates/ty_ide/src/code_action.rs:22
↓ 3 callersMethodcode_prefix
In a `type: ignore` comment, only codes prefixed with `ty:` belong to ty.
crates/ty_python_semantic/src/suppression.rs:551
↓ 3 callersFunctioncollect_for_loop_place_names
(code: &str)
crates/ty_python_core/src/builder/loop_bindings_visitor.rs:269
↓ 3 callersFunctioncollect_specs
(formats: &[CFormatStrOrBytes<String>])
crates/ruff_linter/src/rules/pylint/rules/bad_string_format_type.rs:108
↓ 3 callersMethodcombine
(self, other: Self)
crates/ruff_server/src/session/options.rs:426
↓ 3 callersMethodcombine_with
(&mut self, other: Self)
crates/ty_project/src/uv.rs:69
↓ 3 callersMethodcommand_with_subcommand
(&self, subcommand: &str)
crates/ty/tests/common/mod.rs:153
↓ 3 callersFunctioncompare
(lhs: &ComparableExpr, rhs: &ComparableExpr)
crates/ruff_linter/src/rules/refurb/rules/check_and_remove_from_set.rs:129
↓ 3 callersFunctioncompare
YTT103, YTT201, YTT203, YTT204, YTT302
crates/ruff_linter/src/rules/flake8_2020/rules/compare.rs:241
↓ 3 callersMethodcompatibility_inference_with
Builds a recovery mapping from the already accumulated per-relation solutions. This must not rerun the call-wide solver or present a merged legacy map
crates/ty_python_semantic/src/types/generics.rs:2970
↓ 3 callersMethodcompletions
Requests completions after `QUERY` in the client file, using default settings.
crates/ruff_benchmark/benches/ty_ide.rs:373
↓ 3 callersMethodcompose
(self, other: Self)
crates/ty_python_semantic/src/types/variance.rs:147
↓ 3 callersMethodcompute_line_index
(&self, offset: TextSize)
crates/ruff_linter/src/locator.rs:25
↓ 3 callersMethodcompute_position
(&self, cursor: usize)
crates/ruff_python_parser/src/string.rs:127
↓ 3 callersMethodcompute_possibly_narrowed_places
Computes the conservative set of places that could possibly be narrowed by a predicate. This uses the closure-based approach to avoid calling Salsa q
crates/ty_python_core/src/builder.rs:2366
↓ 3 callersFunctioncondensed_document_diagnostic_snapshot
Formats a document report as diagnostic ranges, severities, and messages.
crates/ty_server/tests/e2e/diagnostic_snapshots.rs:11
↓ 3 callersFunctioncondition_definition_info
Resolves definitions that reach this read, falling back to member lookup for attributes without a definite assignment. The receiver type comes from th
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/exemptions.rs:378
↓ 3 callersMethodconfig_path
(&self)
crates/ruff_workspace/src/resolver.rs:250
↓ 3 callersMethodconfiguration_root
(self)
crates/ty_project/src/metadata/options.rs:684
↓ 3 callersFunctionconftest_files
Returns applicable `conftest.py` files from nearest to outermost.
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:1269
↓ 3 callersMethodconstraint
(self)
crates/ty_python_semantic/src/types/constraints.rs:4993
↓ 3 callersMethodconstraint_for_relation
Returns the assignability constraints required by this comparison's polarity.
crates/ty_python_semantic/src/types/generics.rs:3730
↓ 3 callersMethodconstraint_support_id
(&self, constraint: ConstraintId)
crates/ty_python_semantic/src/types/constraints.rs:1560
↓ 3 callersMethodconstructor_kind
(&self)
crates/ty_python_semantic/src/types/call/bind/constructor.rs:728
↓ 3 callersFunctionconstructor_returns_instance
Classify a return type as either being an instance of the given `class_literal` or not, for purposes of deciding whether downstream constructors shoul
crates/ty_python_semantic/src/types/call/bind/constructor.rs:783
↓ 3 callersFunctionconsume_quoted_string
Advances past a quoted string after its opening quote has been consumed. For example, after the opening quote in `"value" trailing` has been consumed
crates/ty_ide/src/docstring/document/syntax.rs:556
↓ 3 callersMethodcontaining_range
Returns the range of the cell containing the given offset, if any.
crates/ruff_notebook/src/cell.rs:284
↓ 3 callersFunctioncontains_only_an_ellipsis
Returns `true` if a function or class body contains only an ellipsis with no comments.
crates/ruff_python_formatter/src/statement/suite.rs:742
↓ 3 callersFunctioncontains_quote
Return `true` if the haystack contains the quote.
crates/ruff_linter/src/rules/flake8_quotes/rules/avoidable_escaped_quote.rs:384
↓ 3 callersMethodcontent_ranges
Returns an iterator over the concatenated source ranges covered by each cell's actual contents, excluding Ruff's synthetic trailing newline separator.
crates/ruff_notebook/src/cell.rs:332
↓ 3 callersMethodcontext
Set the number of contextual lines to show around each snippet.
crates/ruff_db/src/diagnostic/mod.rs:1471
↓ 3 callersMethodcontext_expr
(&self, module: &'ast ParsedModuleRef)
crates/ty_python_core/src/definition.rs:1565
↓ 3 callersMethodcontext_specific
(mut self, yes: bool)
crates/ty_ide/src/completion.rs:624
↓ 3 callersFunctionconvert_symbol_kind
Convert `ty_ide` `SymbolKind` to LSP `SymbolKind`
crates/ty_server/src/server/api/symbols.rs:11
↓ 3 callersMethodcould_coexist_in_mro_with
Return `true` if this class could coexist in an MRO with `other`. For two given classes `A` and `B`, it is often possible to say for sure that there
crates/ty_python_semantic/src/types/class.rs:1743
↓ 3 callersFunctioncount
()
crates/ruff_linter/resources/test/fixtures/pylint/nonlocal_and_global.py:6
↓ 3 callersFunctioncreate_a005_module_structure
construct a directory tree with this structure: . ├── abc │ └── __init__.py ├── collections │ ├── __init__.py │ ├── abc │ │ └── __init__.py │ └─
crates/ruff/tests/cli/lint.rs:4030
↓ 3 callersFunctioncreate_constraint
( db: &'db TestDb, builder: &'c ConstraintSetBuilder<'db>, bound_typevar: BoundTypeVar
crates/ty_python_semantic/src/types/constraints/paths.rs:1261
↓ 3 callersMethodcreate_definition
Create a definition without making its declaration or binding visible in control flow.
crates/ty_python_core/src/builder.rs:1531
↓ 3 callersFunctioncreate_filter
(patterns: impl IntoIterator<Item = &'static str>)
crates/ty_project/src/glob/include.rs:326
↓ 3 callersFunctioncreate_typevar
(db: &'db TestDb, name: &'static str)
crates/ty_python_semantic/src/types/constraints/paths.rs:1252
↓ 3 callersMethodcurrent_bindings
Get the current live bindings for a place.
crates/ty_python_core/src/use_def.rs:3186
↓ 3 callersMethodcurrent_range
(&self)
crates/ruff_python_parser/src/lexer.rs:125
↓ 3 callersMethodcurrent_statement_ids
Returns an [`Iterator`] over the current statement hierarchy represented as [`NodeId`], from the current [`NodeId`] through to any parents.
crates/ruff_python_semantic/src/model.rs:1541
↓ 3 callersFunctioncustom
()
crates/ruff_linter/src/rules/flake8_errmsg/mod.rs:30
↓ 3 callersFunctioncustom_value_annotation
Returns the `_value_` annotation type if one is declared in the given scope.
crates/ty_python_semantic/src/types/enums.rs:1400
↓ 3 callersMethodcycle_normalized
( mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous_cycle_res
crates/ty_python_semantic/src/types/unpacker.rs:414
↓ 3 callersMethoddb
(&self)
crates/ty_python_semantic/src/semantic_model.rs:66
↓ 3 callersMethoddeclarations
(&self)
crates/ty_python_core/src/use_def/place_state.rs:767
↓ 3 callersMethoddeclared
Constructor that creates a [`Place`] with type origin [`TypeOrigin::Declared`] and definedness [`Definedness::AlwaysDefined`].
crates/ty_python_semantic/src/place.rs:249
↓ 3 callersMethoddefault
()
crates/ty_python_semantic/src/types/infer/builder.rs:13556
↓ 3 callersMethoddefault
()
crates/ruff_linter/src/rules/flake8_pytest_style/settings.rs:47
↓ 3 callersFunctiondefault_banned_aliases
(preview: PreviewMode)
crates/ruff_linter/src/rules/flake8_import_conventions/settings.rs:92
↓ 3 callersFunctiondefault_function
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF009.py:10
↓ 3 callersMethoddefault_level
(&self)
crates/ty_python_semantic/src/lint.rs:130
↓ 3 callersMethoddefers_annotations
(self)
crates/ruff_python_ast/src/python_version.rs:94
↓ 3 callersFunctiondefinite_match_pattern_type_for_subject
Return the values that are statically guaranteed to match `kind`, using `subject_ty` when the answer depends on the subject. This is an under-approxi
crates/ty_python_semantic/src/types/match_pattern.rs:712
↓ 3 callersFunctiondefinite_match_pattern_type_for_subject_cached
Reuse definite-match types when different union arms reach the same nested pattern and type. ```python from __future__ import annotations from typing
crates/ty_python_semantic/src/types/match_pattern.rs:747
↓ 3 callersMethoddefinition
Return the definition associated with this signature, if any.
crates/ty_python_semantic/src/types/signatures.rs:1491
↓ 3 callersMethoddefinition
The defining symbol of this constructor, including for qualified references.
crates/ty_python_semantic/src/types/recursive.rs:296
↓ 3 callersFunctiondefinition_expression_type_in_scope
Infer a definition's expression using an explicitly supplied evaluation scope. [`definition_expression_type`] can look up the scope of a string liter
crates/ty_python_semantic/src/types.rs:424
↓ 3 callersFunctiondefinitions_for_attribute
Returns definitions for an attribute expression, inferring its receiver through the IDE model.
crates/ty_python_semantic/src/types/ide_support.rs:143
↓ 3 callersFunctiondefinitions_for_expression
Shared helper to get definitions for an expr (that is presumably a name/attr)
crates/ty_ide/src/goto.rs:1402
↓ 3 callersFunctiondefinitions_for_module_global
Returns the definitions that may supply a module global at the end of its scope.
crates/ty_python_semantic/src/place/definitions.rs:16
↓ 3 callersMethoddefinitions_for_module_global
Returns the definitions that may supply a module global at the end of its scope. Returns `None` if the module has no file or the name has no symbol-t
crates/ty_python_semantic/src/semantic_model.rs:506
↓ 3 callersMethoddefuse
(&mut self)
crates/ty_python_semantic/src/types/context.rs:433
↓ 3 callersMethoddescribe
Format the recorded failure as Markdown. For a timeout, include the cutoff and any recorded baseline duration.
python/py-fuzzer/fuzz.py:260
↓ 3 callersFunctiondesperately_resolve_module
( db: &'db dyn Db, importing_file: File, module_name: ModuleNameIngredient<'db>, )
crates/ty_module_resolver/src/resolve.rs:334
↓ 3 callersFunctiondiscover_roots
Finds candidates for the root component of a module name (i.e. `foo` from `foo.bar.baz`) across the supplied search paths and stub packages. Callers
crates/ty_module_resolver/src/resolve/search.rs:1068
↓ 3 callersMethoddisplay
(&self)
crates/ty_ide/src/inlay_hints.rs:268
↓ 3 callersMethoddisplay_name
Display name of the parameter, if it has one.
crates/ty_python_semantic/src/types/signatures.rs:6369
↓ 3 callersMethoddocstring
Get the docstring for this definition Typically documentation only appears on implementations and not stubs, so this will check both the goto-declara
crates/ty_ide/src/goto.rs:441
↓ 3 callersFunctiondocstring_for_call_definition
Resolve the docstring for a call-signature's resolved definition. Tries the definition's own docstring first (stub-mapped when appropriate) and falls
crates/ty_ide/src/goto.rs:498
↓ 3 callersMethoddocument
Returns the document targeted by this snapshot.
crates/ty_server/src/session.rs:1596
↓ 3 callersMethoddocument
(&self, path: AnySystemPath)
crates/ty_server/src/system.rs:123
↓ 3 callersFunctiondocument_highlights
Find all document highlights for a symbol at the given position. Document highlights are limited to the current file only.
crates/ty_ide/src/doc_highlights.rs:10
↓ 3 callersMethoddocumentation
(&self)
crates/ruff_options_metadata/src/lib.rs:120
↓ 3 callersMethoddocumentation
Returns the documentation as a single string.
crates/ty_python_semantic/src/lint.rs:122
↓ 3 callersFunctiondraw_col_separator_end
(renderer: &Renderer, buffer: &mut StyledBuffer, line: usize, col: usize)
crates/ruff_annotate_snippets/src/renderer/render.rs:2249
↓ 3 callersFunctiondraw_col_separator_no_space_with_style
( buffer: &mut StyledBuffer, chr: char, line: usize, col: usize, style: ElementStyle, )
crates/ruff_annotate_snippets/src/renderer/render.rs:2279
↓ 3 callersMethoddunder
(self)
crates/ty_python_semantic/src/types/equality.rs:1860
↓ 3 callersFunctiondynamic_content_impl
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>, mode: DynamicContentMode, )
crates/ty_python_semantic/src/types/visitor.rs:505
↓ 3 callersMethodeat_whitespace
(&mut self)
crates/ty_python_semantic/src/suppression/parser.rs:128
↓ 3 callersMethodeat_whitespace
(&mut self)
crates/ruff_linter/src/suppression.rs:1353
↓ 3 callersMethodeffective_members
Iterate over every member that can govern the write at runtime.
crates/ty_python_semantic/src/types/attribute_write.rs:330
↓ 3 callersMethodelements
(&self)
crates/ruff_formatter/src/buffer.rs:143
↓ 3 callersMethodelse_body
Returns the `else` suite. Defaults to an empty suite if the statement has no `else` block.
crates/ruff_linter/src/rules/ruff/rules/needless_else.rs:267
↓ 3 callersMethodenable_diagnostic_related_information
(mut self, enabled: bool)
crates/ty_server/tests/e2e/main.rs:1526
↓ 3 callersMethodenable_multiline_token_support
(mut self, enabled: bool)
crates/ty_server/tests/e2e/main.rs:1537
↓ 3 callersMethodenabled_or
Resolve this value to a boolean, using `default` when it is unspecified. An unknown value resolves to `true`.
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:600
↓ 3 callersMethodenter_string
Entering another interpolated string increases the nesting depth.
crates/ruff_python_formatter/src/context.rs:176
↓ 3 callersMethodentry_is_directory
Returns whether `name` resolves to a directory, following symbolic links.
crates/ruff_db/src/files/directory.rs:43
↓ 3 callersFunctionenum_class_key_profile
( db: &'db dyn Db, enum_class: EnumClassLiteral<'db>, operator: ComparisonOperator, )
crates/ty_python_semantic/src/types/equality/enums.rs:1121
↓ 3 callersFunctionenum_literal_value
Return the statically known runtime value of an enum member. Custom enum construction can replace the declared value, so members of such enums return
crates/ty_python_semantic/src/types/equality.rs:2286
↓ 3 callersMethodeq
(&self, other: &u8)
crates/ruff_python_ast/src/int.rs:154
↓ 3 callersMethodeq
(&self, other: &InnerBindingKind)
crates/ruff_linter/src/rules/pylint/rules/redefined_loop_name.rs:131
↓ 3 callersMethodequation
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/variance/equations.rs:192
← previousnext →3,901–4,000 of 31,766, ranked by callers