MCPcopy Create free account

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

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

↓ 1 callersFunctioninner_gen
()
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:60
↓ 1 callersMethodinner_mut
(&mut self)
crates/ty_project/src/watch/watcher.rs:159
↓ 1 callersMethodinnermost
Return the [`TextRange`] of the innermost f-string at the given offset.
crates/ruff_python_index/src/interpolated_string_ranges.rs:26
↓ 1 callersFunctioninplace_argument
PD002
crates/ruff_linter/src/rules/pandas_vet/rules/inplace_argument.rs:61
↓ 1 callersMethodinsert
Inserts an item if its target is new and returns the target identifier.
crates/ty_ide/src/pytest_test_discovery.rs:108
↓ 1 callersMethodinsert_completed
Inserts a completed item after the caller has checked that `item` is not already cached.
crates/ty_python_semantic/src/types/cyclic.rs:1168
↓ 1 callersMethodinsert_flake8_bugbear_range
Adds a [`TextRange`] to the set of ranges of variable names flagged in `flake8-bugbear` violations so far. Returns whether the value was newly insert
crates/ruff_linter/src/checkers/ast/mod.rs:492
↓ 1 callersMethodinsert_inferred_type_into
Stores an inferred argument type under every declared-type key that can later request it. For a forwarded `ParamSpec` argument, the expression is inf
crates/ty_python_semantic/src/types/call/bind.rs:8413
↓ 1 callersMethodinsert_new
(&mut self, item: T, result: R)
crates/ty_python_semantic/src/types/cyclic.rs:1176
↓ 1 callersMethodinside_optional
Return `true` if the model is directly inside an Optional (e.g., the inner `Union` in `Optional[Union[int, str]]`).
crates/ruff_python_semantic/src/model.rs:1856
↓ 1 callersFunctioninspect
Return errors for workspace requests for external default features.
scripts/check-cargo-bans.py:43
↓ 1 callersFunctioninspect_build_scripts
Return errors for stale entries in the external build-script allowlist.
scripts/check-cargo-bans.py:107
↓ 1 callersFunctioninstall_dependencies
Install dependencies using uv with date constraints
crates/ruff_benchmark/src/real_world_projects.rs:204
↓ 1 callersFunctioninstall_hook
()
crates/ruff_db/src/panic.rs:109
↓ 1 callersFunctioninstall_tests
(tests: &HashMap<String, Test>, target_dir: &str)
crates/ruff_python_parser/tests/generate_inline_tests.rs:101
↓ 1 callersMethodinstalled_project
(&self)
crates/ruff_benchmark/benches/ty_walltime.rs:30
↓ 1 callersMethodinstance
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, class: ClassType<'db>, )
crates/ty_python_semantic/src/types/instance.rs:64
↓ 1 callersFunctioninstance_attribute_write_member_requirement
Resolve the declared member that governs an instance attribute write. The returned requirement preserves a possibly-defined class member and its inst
crates/ty_python_semantic/src/types/attribute_write.rs:531
↓ 1 callersFunctioninstance_attribute_write_requirement
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, object_ty: Type<'db>, attribute: &str, r
crates/ty_python_semantic/src/types/attribute_write.rs:510
↓ 1 callersMethodinstance_fallback
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/known_instance.rs:158
↓ 1 callersFunctioninstance_fallback_write_requirement
Convert an instance fallback into a write type, binding `Self` to the receiver. This also applies dataclass converter semantics and preserves possibl
crates/ty_python_semantic/src/types/attribute_write.rs:842
↓ 1 callersMethodinstance_flags
Return the properties shared by all instances of this class.
crates/ty_python_semantic/src/types/class/static_literal.rs:1057
↓ 1 callersMethodinstance_member
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, name: &str, )
crates/ty_python_semantic/src/types/protocol_class.rs:639
↓ 1 callersMethodinstance_member
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, name: &str, )
crates/ty_python_semantic/src/types/instance.rs:1967
↓ 1 callersFunctioninstance_member_for_enum_complement
Look up an instance member on the finite enum literals represented by a complement. The enum-owned `.name`/`.value` attributes can often be answered
crates/ty_python_semantic/src/types/enums.rs:417
↓ 1 callersMethodinstance_name_type
Returns the type of `.name`/`._name_` for an enum instance that is not narrowed to a specific member (e.g. `x: MyEnum` where `MyEnum` has multiple mem
crates/ty_python_semantic/src/types/enums.rs:647
↓ 1 callersFunctioninstance_symbol
Return the known module, name, and class literal for an instance's nominal class.
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:1346
↓ 1 callersMethodinstance_value_may_be_transformed
Returns whether the declared member values cannot be combined into a precise instance `.value` type. `_generate_next_value_` is excluded because `val
crates/ty_python_semantic/src/types/enums.rs:161
↓ 1 callersMethodinstance_value_type
Returns the type of `.value`/`._value_` for an enum instance that is not narrowed to a specific member (e.g. `x: MyEnum` where `MyEnum` has multiple m
crates/ty_python_semantic/src/types/enums.rs:615
↓ 1 callersMethodinstance_write_requirement
Returns the declared instance-write requirement for a protocol member. `None` means that the protocol does not declare `name`; `Some((None, _))` mean
crates/ty_python_semantic/src/types/protocol_class.rs:598
↓ 1 callersMethodinstantiate
Pairs the shared tables with the definitions their indices refer to in this function. The function also keeps its own reachability information for sou
crates/ty_python_core/src/use_def.rs:917
↓ 1 callersFunctionint_on_sliced_str
FURB166
crates/ruff_linter/src/rules/refurb/rules/int_on_sliced_str.rs:70
↓ 1 callersMethodintern
(&mut self, mut map: UseDefMap<'db>)
crates/ty_python_core/src/use_def.rs:975
↓ 1 callersMethodintern_interior_node
(&mut self, data: InteriorNodeData)
crates/ty_python_semantic/src/types/constraints.rs:1442
↓ 1 callersMethodintern_mentioned_typevars_in_type
Interns all of the typevars mentioned in a type in a stable order.
crates/ty_python_semantic/src/types/constraints.rs:1299
↓ 1 callersMethodintern_normalized_name
(&mut self, text: &str)
crates/ruff_python_parser/src/parser/mod.rs:433
↓ 1 callersMethodintern_place_state
( &mut self, bindings: &Bindings, declarations: Declarations, )
crates/ty_python_core/src/use_def.rs:452
↓ 1 callersMethodintern_vec
(&mut self, mut elements: Vec<FormatElement>)
crates/ruff_formatter/src/formatter.rs:187
↓ 1 callersFunctioninterpolated_element_expression_range
(element: &InterpolatedElement)
crates/ruff_python_formatter/src/other/interpolated_string_element.rs:290
↓ 1 callersFunctioninterpreted_text_label
Returns the display label for reStructuredText interpreted text. For example, "~pkg.Widget" becomes "Widget"; a Python role target like ".lines.line"
crates/ty_ide/src/docstring/markdown/structured.rs:437
↓ 1 callersFunctionintersect
()
crates/ruff_text_size/tests/main.rs:43
↓ 1 callersMethodintersect
Updates this constraint set to hold the intersection of itself and another constraint set. In the result's source order, `self` will appear before `o
crates/ty_python_semantic/src/types/constraints.rs:707
↓ 1 callersMethodintersect_pending_typevar_constraint
(&mut self, constraint: ConstraintSet<'db, 'c>)
crates/ty_python_semantic/src/types/generics.rs:3526
↓ 1 callersMethodintersect_specialized_returns
Intersects the specialized return types when they can hold simultaneously for the same call.
crates/ty_python_semantic/src/types/call/bind.rs:6620
↓ 1 callersFunctionintersect_unpacked_typed_dict_openness
Combines the openness policies of intersected `TypedDict`-shaped values. An intersection must satisfy every constituent, so `Closed` dominates, `Impl
crates/ty_python_semantic/src/types/typed_dict.rs:1836
↓ 1 callersMethodinto_annotation
(self, expr: &Expr)
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:456
↓ 1 callersMethodinto_bindings
(self, receiver: Type<'db>)
crates/ty_python_semantic/src/types.rs:11164
↓ 1 callersMethodinto_bound_method_type
( self, db: &'db dyn Db, self_instance: Type<'db>, )
crates/ty_python_semantic/src/types/function.rs:2085
↓ 1 callersMethodinto_callable
Return a callable type (or union of callable types) that represents the callable constructor signature of this class.
crates/ty_python_semantic/src/types/class.rs:2333
↓ 1 callersMethodinto_class
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/subclass_of.rs:543
↓ 1 callersMethodinto_classinfo_constraint_function
(self)
crates/ty_python_semantic/src/types/function.rs:2397
↓ 1 callersMethodinto_comment
(self)
crates/mdtest/src/assertion.rs:198
↓ 1 callersMethodinto_completions
Convert this collection into a simple sequence of completions.
crates/ty_ide/src/completion.rs:194
↓ 1 callersMethodinto_constraints
(self)
crates/ty_python_semantic/src/place_load.rs:852
↓ 1 callersMethodinto_content
(self)
crates/ruff_diagnostics/src/edit.rs:65
↓ 1 callersMethodinto_contents
(self)
crates/ruff_server/src/edit/text_document.rs:64
↓ 1 callersMethodinto_context
(self)
crates/ruff_formatter/src/lib.rs:954
↓ 1 callersMethodinto_diagnostic
(self, file: File)
crates/mdtest/src/matcher.rs:555
↓ 1 callersMethodinto_diagnostic
(self)
crates/ty_ide/src/inlay_hints.rs:8643
↓ 1 callersMethodinto_diagnostic
(self)
crates/ty_ide/src/rename.rs:162
↓ 1 callersMethodinto_document_diagnostics
Returns the diagnostics for the text document or notebook cell at `uri`.
crates/ty_server/src/server/api/diagnostics.rs:188
↓ 1 callersMethodinto_dunder_paramspec
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/callable.rs:983
↓ 1 callersMethodinto_edits
(self)
crates/ruff_diagnostics/src/fix.rs:153
↓ 1 callersMethodinto_error
Reconstructs the implicit call and returns its error if the call is still invalid.
crates/ty_python_semantic/src/types.rs:845
↓ 1 callersMethodinto_error
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, class_literal: Dynamic
crates/ty_python_semantic/src/types/mro.rs:1016
↓ 1 callersMethodinto_errors
Consumes the [`Parsed`] output and returns a list of syntax errors found during parsing.
crates/ruff_python_parser/src/lib.rs:429
↓ 1 callersMethodinto_events
(self)
crates/ty_project/src/watch/watcher.rs:392
↓ 1 callersMethodinto_expression
Convert an [`AutoPythonType`] into an [`Expr`]. If the [`Expr`] relies on importing any external symbols, those imports will be returned as additiona
crates/ruff_linter/src/rules/flake8_annotations/helpers.rs:152
↓ 1 callersMethodinto_expression_inference
Consume the results already collected by this builder without inferring its region.
crates/ty_python_semantic/src/types/infer/builder.rs:12089
↓ 1 callersMethodinto_final_report
(self)
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:246
↓ 1 callersMethodinto_finally_entry_state
(self)
crates/ty_python_core/src/builder/except_handlers.rs:375
↓ 1 callersMethodinto_fix
Return the [`Fix`] contained in this [`EmptyStringFix`].
crates/ruff_linter/src/rules/refurb/rules/print_empty_string.rs:283
↓ 1 callersMethodinto_fixed
(self)
crates/ty_python_semantic/src/fixes.rs:722
↓ 1 callersMethodinto_float
(self)
crates/ruff_python_ast/src/comparable.rs:2184
↓ 1 callersMethodinto_format
(self)
crates/ruff_formatter/shared_traits.rs:45
↓ 1 callersMethodinto_format
(self)
crates/ruff_python_formatter/src/shared_traits.rs:50
↓ 1 callersMethodinto_format_action
Consume this doctest and turn it into a formatting action.
crates/ruff_python_formatter/src/string/docstring.rs:945
↓ 1 callersMethodinto_imports
Convert this collection into a list of "import..." fixes
crates/ty_ide/src/completion.rs:203
↓ 1 callersMethodinto_initial_definitions
Returns the definitions selected directly for the finder's roots.
crates/ty_python_semantic/src/types/ide_support.rs:284
↓ 1 callersMethodinto_inner
(self)
crates/ty_ide/src/docstring/document/numpy.rs:88
↓ 1 callersMethodinto_inner
(self)
crates/ty_ide/src/docstring/document/google.rs:213
↓ 1 callersMethodinto_inner
(self)
crates/ty_python_semantic/src/types/callable.rs:1140
↓ 1 callersMethodinto_iter
(self)
crates/ruff_linter/src/docstrings/sections.rs:254
↓ 1 callersMethodinto_names
Consumes `self` and returns the collected set of names. Returns [`None`] if `__all__` is not defined in the current module or if it contains invalid
crates/ty_python_semantic/src/dunder_all.rs:218
↓ 1 callersMethodinto_options
(self)
crates/ty_test/src/config.rs:109
↓ 1 callersMethodinto_options
(self)
crates/ty/src/args.rs:257
↓ 1 callersMethodinto_parameters
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:98
↓ 1 callersMethodinto_parsed
Consumes the [`ParseSource`] and returns the parsed [`Parsed`], parsing the source code if necessary.
crates/ruff_linter/src/linter.rs:736
↓ 1 callersMethodinto_parts
(self)
crates/ty_ide/src/inlay_hints.rs:289
↓ 1 callersMethodinto_parts
(self)
crates/ruff_linter/src/codes.rs:33
↓ 1 callersMethodinto_path
(self)
crates/ruff_workspace/src/resolver.rs:783
↓ 1 callersMethodinto_program_version
( self, diagnostics: &mut Vec<ProgramSettingsDiagnostic>, )
crates/ty_project/src/metadata/options.rs:691
↓ 1 callersMethodinto_qualifications
Convert this collection into a list of "qualify..." fixes
crates/ty_ide/src/completion.rs:218
↓ 1 callersMethodinto_real
(self)
crates/ruff_python_ast/src/comparable.rs:2148
↓ 1 callersMethodinto_remaining
Consumes the `ParametersZip` and returns a two-element tuple containing the remaining parameters in the `source` and `target` iterators respectively.
crates/ty_python_semantic/src/types/signatures.rs:3165
↓ 1 callersMethodinto_search_path
Consumes the directory and returns its search root.
crates/ty_module_resolver/src/path.rs:388
↓ 1 callersMethodinto_semantic_token_type
(self)
crates/ty_ide/src/semantic_tokens.rs:608
↓ 1 callersMethodinto_short_circuit_and_continuation
(self, op: ast::BoolOp)
crates/ty_python_core/src/builder.rs:208
↓ 1 callersMethodinto_sorted_diagnostics
(mut self, db: &dyn Db)
crates/ty/src/lib.rs:787
↓ 1 callersMethodinto_sorted_elts
( mut self, sorting_style: SortingStyle, )
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:206
← previousnext →10,401–10,500 of 31,562, ranked by callers