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
↓ 1 callers
Method
insert_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:497
↓ 1 callers
Method
insert_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:8530
↓ 1 callers
Method
insert_new
(&mut self, item: T, result: R)
crates/ty_python_semantic/src/types/cyclic.rs:1188
↓ 1 callers
Method
inside_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:1885
↓ 1 callers
Function
inspect
Return errors for workspace requests for external default features.
scripts/check-cargo-bans.py:25
↓ 1 callers
Function
inspect_build_scripts
Return errors for stale entries in the external build-script allowlist.
scripts/check-cargo-bans.py:89
↓ 1 callers
Function
install_dependencies
Install dependencies using uv with date constraints
crates/ruff_benchmark/src/real_world_projects.rs:204
↓ 1 callers
Function
install_hook
()
crates/ruff_db/src/panic.rs:109
↓ 1 callers
Function
install_tests
(tests: &HashMap<String, Test>, target_dir: &str)
crates/ruff_python_parser/tests/generate_inline_tests.rs:101
↓ 1 callers
Method
installed_project
(&self)
crates/ruff_benchmark/benches/ty_walltime.rs:30
↓ 1 callers
Method
instance
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, class: ClassType<'db>, )
crates/ty_python_semantic/src/types/instance.rs:64
↓ 1 callers
Function
instance_attribute_write_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:620
↓ 1 callers
Method
instance_fallback
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/known_instance.rs:158
↓ 1 callers
Method
instance_flags
Return the properties shared by all instances of this class.
crates/ty_python_semantic/src/types/class/static_literal.rs:1056
↓ 1 callers
Method
instance_member
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, name: &str, )
crates/ty_python_semantic/src/types/protocol_class.rs:652
↓ 1 callers
Method
instance_member
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, name: &str, )
crates/ty_python_semantic/src/types/instance.rs:2012
↓ 1 callers
Function
instance_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 callers
Method
instance_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 callers
Function
instance_symbol
Return the known module, name, and class literal for an instance's nominal class.
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:1403
↓ 1 callers
Method
instance_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 callers
Method
instance_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 callers
Method
instance_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:611
↓ 1 callers
Method
instantiate
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 callers
Function
int_on_sliced_str
FURB166
crates/ruff_linter/src/rules/refurb/rules/int_on_sliced_str.rs:70
↓ 1 callers
Method
intern
(&mut self, mut map: UseDefMap<'db>)
crates/ty_python_core/src/use_def.rs:975
↓ 1 callers
Method
intern_interior_node
(&mut self, data: InteriorNodeData)
crates/ty_python_semantic/src/types/constraints.rs:1371
↓ 1 callers
Method
intern_mentioned_typevars_in_type
Interns the free type variables in a constraint bound in a stable order.
crates/ty_python_semantic/src/types/constraints.rs:1295
↓ 1 callers
Method
intern_normalized_name
(&mut self, text: &str)
crates/ruff_python_parser/src/parser/mod.rs:433
↓ 1 callers
Method
intern_place_state
( &mut self, bindings: &Bindings, declarations: Declarations, )
crates/ty_python_core/src/use_def.rs:452
↓ 1 callers
Method
intern_vec
(&mut self, mut elements: Vec<FormatElement>)
crates/ruff_formatter/src/formatter.rs:187
↓ 1 callers
Function
interpolated_element_expression_range
(element: &InterpolatedElement)
crates/ruff_python_formatter/src/other/interpolated_string_element.rs:290
↓ 1 callers
Function
interpreted_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 callers
Function
intersect
()
crates/ruff_text_size/tests/main.rs:43
↓ 1 callers
Method
intersect
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:703
↓ 1 callers
Method
intersect_pending_typevar_constraint
(&mut self, constraint: ConstraintSet<'db, 'c>)
crates/ty_python_semantic/src/types/generics.rs:3547
↓ 1 callers
Method
intersect_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:6735
↓ 1 callers
Function
intersect_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:1840
↓ 1 callers
Method
into_annotation
(self, expr: &Expr)
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:493
↓ 1 callers
Method
into_bindings
(self, receiver: Type<'db>)
crates/ty_python_semantic/src/types.rs:11224
↓ 1 callers
Method
into_bound_method_type
( self, db: &'db dyn Db, self_instance: Type<'db>, )
crates/ty_python_semantic/src/types/function.rs:2085
↓ 1 callers
Method
into_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:2348
↓ 1 callers
Method
into_class
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/subclass_of.rs:547
↓ 1 callers
Method
into_classinfo_constraint_function
(self)
crates/ty_python_semantic/src/types/function.rs:2397
↓ 1 callers
Method
into_comment
(self)
crates/mdtest/src/assertion.rs:198
↓ 1 callers
Method
into_completions
Convert this collection into a simple sequence of completions.
crates/ty_ide/src/completion.rs:194
↓ 1 callers
Method
into_constraints
(self)
crates/ty_python_semantic/src/place_load.rs:852
↓ 1 callers
Method
into_content
(self)
crates/ruff_diagnostics/src/edit.rs:65
↓ 1 callers
Method
into_contents
(self)
crates/ruff_server/src/edit/text_document.rs:64
↓ 1 callers
Method
into_context
(self)
crates/ruff_formatter/src/lib.rs:953
↓ 1 callers
Method
into_diagnostic
(self, file: File)
crates/mdtest/src/matcher.rs:555
↓ 1 callers
Method
into_diagnostic
(self)
crates/ty_ide/src/inlay_hints.rs:8643
↓ 1 callers
Method
into_diagnostic
(self)
crates/ty_ide/src/rename.rs:162
↓ 1 callers
Method
into_document_diagnostics
Returns the diagnostics for the text document or notebook cell at `uri`.
crates/ty_server/src/server/api/diagnostics.rs:188
↓ 1 callers
Method
into_dunder_paramspec
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/callable.rs:981
↓ 1 callers
Method
into_edits
(self)
crates/ruff_diagnostics/src/fix.rs:153
↓ 1 callers
Method
into_error
Reconstructs the implicit call and returns its error if the call is still invalid.
crates/ty_python_semantic/src/types.rs:846
↓ 1 callers
Method
into_error
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, class_literal: Dynamic
crates/ty_python_semantic/src/types/mro.rs:1016
↓ 1 callers
Method
into_errors
Consumes the [`Parsed`] output and returns a list of syntax errors found during parsing.
crates/ruff_python_parser/src/lib.rs:429
↓ 1 callers
Method
into_events
(self)
crates/ty_project/src/watch/watcher.rs:392
↓ 1 callers
Method
into_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 callers
Method
into_expression_inference
Consume the results already collected by this builder without inferring its region.
crates/ty_python_semantic/src/types/infer/builder.rs:12236
↓ 1 callers
Method
into_final_report
(self)
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:249
↓ 1 callers
Method
into_finally_entry_state
(self)
crates/ty_python_core/src/builder/except_handlers.rs:375
↓ 1 callers
Method
into_fix
Return the [`Fix`] contained in this [`EmptyStringFix`].
crates/ruff_linter/src/rules/refurb/rules/print_empty_string.rs:283
↓ 1 callers
Method
into_fixed
(self)
crates/ty_python_semantic/src/fixes.rs:735
↓ 1 callers
Method
into_float
(self)
crates/ruff_python_ast/src/comparable.rs:2184
↓ 1 callers
Method
into_format
(self)
crates/ruff_formatter/shared_traits.rs:45
↓ 1 callers
Method
into_format
(self)
crates/ruff_python_formatter/src/shared_traits.rs:50
↓ 1 callers
Method
into_format_action
Consume this doctest and turn it into a formatting action.
crates/ruff_python_formatter/src/string/docstring.rs:945
↓ 1 callers
Method
into_imports
Convert this collection into a list of "import..." fixes
crates/ty_ide/src/completion.rs:203
↓ 1 callers
Method
into_initial_definitions
Returns the definitions selected directly for the finder's roots.
crates/ty_python_semantic/src/types/ide_support.rs:284
↓ 1 callers
Method
into_inner
(self)
crates/ty_ide/src/docstring/document/numpy.rs:88
↓ 1 callers
Method
into_inner
(self)
crates/ty_ide/src/docstring/document/google.rs:213
↓ 1 callers
Method
into_inner
(self)
crates/ty_python_semantic/src/types/callable.rs:1138
↓ 1 callers
Method
into_iter
(self)
crates/ruff_linter/src/docstrings/sections.rs:254
↓ 1 callers
Method
into_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 callers
Method
into_options
(self)
crates/ty_test/src/config.rs:109
↓ 1 callers
Method
into_options
(self)
crates/ty/src/args.rs:257
↓ 1 callers
Method
into_parameters
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:98
↓ 1 callers
Method
into_parsed
Consumes the [`ParseSource`] and returns the parsed [`Parsed`], parsing the source code if necessary.
crates/ruff_linter/src/linter.rs:736
↓ 1 callers
Method
into_parts
(self)
crates/ty_ide/src/inlay_hints.rs:289
↓ 1 callers
Method
into_parts
(self)
crates/ruff_linter/src/codes.rs:33
↓ 1 callers
Method
into_path
(self)
crates/ruff_workspace/src/resolver.rs:767
↓ 1 callers
Method
into_plugins
Returns the registered plugins in registration order.
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:406
↓ 1 callers
Method
into_program_version
( self, diagnostics: &mut Vec<ProgramSettingsDiagnostic>, )
crates/ty_project/src/metadata/options.rs:732
↓ 1 callers
Method
into_qualifications
Convert this collection into a list of "qualify..." fixes
crates/ty_ide/src/completion.rs:218
↓ 1 callers
Method
into_real
(self)
crates/ruff_python_ast/src/comparable.rs:2148
↓ 1 callers
Method
into_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:3206
↓ 1 callers
Method
into_search_path
Consumes the directory and returns its search root.
crates/ty_module_resolver/src/path.rs:388
↓ 1 callers
Method
into_semantic_token_type
(self)
crates/ty_ide/src/semantic_tokens.rs:608
↓ 1 callers
Method
into_short_circuit_and_continuation
(self, op: ast::BoolOp)
crates/ty_python_core/src/builder.rs:208
↓ 1 callers
Method
into_sorted_diagnostics
(mut self, db: &dyn Db)
crates/ty/src/lib.rs:827
↓ 1 callers
Method
into_sorted_elts
( mut self, sorting_style: SortingStyle, )
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:206
↓ 1 callers
Method
into_sorted_elts
(mut self)
crates/ruff_linter/src/rules/ruff/rules/sort_dunder_slots.rs:367
↓ 1 callers
Method
into_string
(self)
crates/ruff_workspace/src/options.rs:1738
↓ 1 callers
Method
into_string_sequence_line
(self)
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:675
↓ 1 callers
Method
into_text
(self)
crates/ty_ide/src/inlay_hints.rs:326
↓ 1 callers
Method
into_title
(self)
scripts/conformance.py:146
↓ 1 callers
Method
into_truthy
(self)
crates/ty_python_core/src/builder.rs:222
↓ 1 callers
Method
into_type
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, tuple: &VariableLength
crates/ty_python_semantic/src/types/tuple.rs:1470
← previous
next →
10,501–10,600 of 31,766, ranked by callers