MCPcopy Create free account

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

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

Methodinlay_hints
Returns the inlay hints for the given test case. All inlay hints are generated using the applicable settings. Use [`inlay_hints_with_settings`] to ge
crates/ty_ide/src/inlay_hints.rs:1323
Functioninlay_hints_range_past_end_of_cell
()
crates/ty_server/tests/e2e/notebook.rs:637
Methodinline
Create an [`Insertion`] that inserts content inline (i.e., within semicolon-delimited statements).
crates/ruff_python_importer/src/insertion.rs:324
Functioninline_after_else
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments9.py:93
Functioninline_and_specific_settings_resolution_order
()
crates/ruff_server/src/session/index/ruff_settings.rs:558
Functioninline_comments_in_brackets_ruin_everything
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments2.py:61
Functioninline_configuration
()
crates/ruff_server/src/session/options.rs:972
Functioninline_documentation_strips_doc_comment_prefixes
()
crates/ty_python_semantic/src/lint.rs:309
Functioninline_err
(path: &Utf8Path, content: String)
crates/ruff_python_parser/tests/fixtures.rs:38
Functioninline_ok
(path: &Utf8Path, content: String)
crates/ruff_python_parser/tests/fixtures.rs:32
Functioninline_overrides_are_ignored
()
crates/ty/tests/cli/scripts.rs:372
Functioninline_path_method_call
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:34
Functioninline_settings
()
crates/ruff_server/src/session/index/ruff_settings.rs:540
Functioninline_settings_override_user_configuration
()
crates/ty/tests/cli/scripts.rs:447
Functioninline_settings_replace_project_settings_and_overrides
()
crates/ty/tests/cli/scripts.rs:7
Functioninline_terminal_settings_do_not_apply
()
crates/ty/tests/cli/scripts.rs:411
Functioninner
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function2.py:18
Functioninner
()
crates/ty_python_semantic/resources/corpus/30_func_enclosed_many.py:9
Functioninner
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:25
Functioninner
()
crates/ruff_linter/resources/test/fixtures/pydocstyle/D202.py:6
Functioninner
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET502.py:54
Functioninner
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:206
Functioninner
()
crates/ruff_linter/resources/test/fixtures/semantic_errors/global_parameter.py:9
Functioninner
()
crates/ruff_linter/resources/test/fixtures/semantic_errors/annotated_global.py:8
Functioninner
()
crates/ruff_linter/resources/test/fixtures/semantic_errors/nonlocal_parameter.py:9
Functioninner
()
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM113.py:176
Functioninner
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF070.py:148
Functioninner
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:646
Functioninner
()
crates/ruff_linter/resources/test/fixtures/flake8_import_conventions/tricky.py:36
Functioninner
(x:int)
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:212
Functioninner
(t: T)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP047_0.py:64
Methodinner
(errors: &mut Vec<ParseError>, error: ParseErrorType, range: TextRange)
crates/ruff_python_parser/src/parser/mod.rs:638
Methodinner
()
crates/ty_python_semantic/resources/corpus/88_regression_generic_method_with_nested_function.py:6
Methodinner
()
crates/ty_python_semantic/resources/corpus/75_classderef_no.py:4
Methodinner
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF066.py:19
Functioninner2
()
crates/ty_python_semantic/resources/corpus/30_func_enclosed_many.py:4
Functioninner2
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:29
Functioninner3
()
crates/ty_python_semantic/resources/corpus/30_func_enclosed_many.py:16
Functioninner3
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:34
Methodinner_argument
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:70
Methodinner_class
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:81
Functioninner_decorator
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:92
Functioninner_func
()
crates/ruff_linter/resources/test/fixtures/pylint/await_outside_async.py:28
Functioninner_function
Do inner something.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:459
Methodinner_functions
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:66
Functioninner_inner
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:447
Functioninner_more
()
crates/ty_python_semantic/resources/corpus/30_func_enclosed_many.py:12
Methodinner_range
(&self)
crates/ruff_python_ast/src/nodes.rs:3825
Functioninsert
(contents: &str)
crates/ruff_python_importer/src/insertion.rs:405
Methodinsert
Inserts a new branch into the vector and returns its unique [`BranchID`].
crates/ruff_python_semantic/src/branches.rs:29
Functioninsert_first_line
()
crates/ruff_server/src/edit/replacement.rs:149
Methodinsert_member
Insert a member, preserving unpromotable literal provenance if either occurrence has it.
crates/ty_python_semantic/src/types/equality/enums.rs:503
Functioninsert_middle_line
()
crates/ruff_server/src/edit/replacement.rs:167
Functioninsert_multiple_lines
()
crates/ruff_server/src/edit/replacement.rs:185
Methodinsertion
Creates an edit that inserts `content` at the [`TextSize`] `at`.
crates/ruff_diagnostics/src/edit.rs:51
Functioninsertion_with_trailing_whitespace
()
crates/ruff_annotate_snippets/tests/ruff.rs:466
Functioninside_token
()
crates/ty_ide/src/completion.rs:3581
Methodinspect
(&mut self, inspector: F)
crates/ruff_formatter/src/buffer.rs:593
Methodinstance_flags_inner
( db: &'db dyn Db, class: StaticClassLiteral<'db>, )
crates/ty_python_semantic/src/types/class/static_literal.rs:1063
Methodinstance_like_member_lookup
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, key: MemberL
crates/ty_python_semantic/src/types.rs:6064
Methodinstance_lookup_class_member_with_policy
Look up the class member that participates in descriptor access through an instance. The meta-type of a type variable preserves method binding to tha
crates/ty_python_semantic/src/types.rs:4616
Methodinstance_member
Look up an instance attribute (available in `__dict__`) of the given name. See [`Type::instance_member`] for more details.
crates/ty_python_semantic/src/types/class/static_literal.rs:3046
Methodinstance_member
Look up an instance member by iterating through the MRO.
crates/ty_python_semantic/src/types/class/dynamic_literal.rs:389
Methodinstance_member
Look up an instance member by name, checking mixin and base class. If members are unknown and nothing was found, returns `Unknown` as a last resort.
crates/ty_python_semantic/src/types/class/enum_literal.rs:301
Methodinstance_method
(self)
crates/ruff_linter/resources/test/fixtures/flake8_annotations/auto_return_type.py:321
Methodinstance_method_bound
(self: S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:79
Methodinstance_method_bound_with_another_parameter
(self: S, other: S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:83
Functioninstance_method_overload_self_type
()
crates/ty_ide/src/inlay_hints.rs:5030
Methodinstance_method_unbound
(self: S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:81
Methodinstance_method_unbound_with_another_parameter
(self: S, other: S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:85
Functioninstance_methods_are_not_regular_functions1
()
crates/ty_ide/src/completion.rs:5712
Functioninstance_methods_are_not_regular_functions2
()
crates/ty_ide/src/completion.rs:5726
Methodint
(self)
crates/ruff_linter/resources/test/fixtures/flake8_builtins/A003.py:11
Methodint_literal
Create a promotable integer literal.
crates/ty_python_semantic/src/types.rs:3418
Functionint_okay
(value=int("12"))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:199
Functioninterleaved_range_suppressions
()
crates/ruff_linter/src/suppression.rs:1684
Functionintermediate_class_scope_ignored
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1563
Methodintern_definitions_by_definition
( definitions_by_definition: FxHashMap< Definition<'db>, DefinitionsAtDefiniti
crates/ty_python_core/src/use_def.rs:3545
Methodintern_enclosing_snapshots
( enclosing_snapshots: EnclosingSnapshots, place_state_interner: &mut PlaceStateInterner,
crates/ty_python_core/src/use_def.rs:3629
Methodintern_end_of_scope_members
( end_of_scope_members: IndexVec<ScopedMemberId, PlaceState>, place_state_interner: &mut Place
crates/ty_python_core/src/use_def.rs:3602
Methodintern_place_states
( place_states: IndexVec<I, T>, get_parts: impl Fn(T) -> (Bindings, Declarations), pla
crates/ty_python_core/src/use_def.rs:3586
Methodintern_reachable_place_states
Retains reachable definitions without duplicating their initial unbound/undeclared entries.
crates/ty_python_core/src/use_def.rs:3500
Methodintern_sequents
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Constraint
crates/ty_python_semantic/src/types/constraints/paths.rs:596
Methodintern_table
( values: &mut FxHashSet<Arc<T>>, value: Arc<T>, )
crates/ty_python_core/src/use_def.rs:982
Methodintern_typevar_constraints
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut ConstraintSetStorage<'
crates/ty_python_semantic/src/types/constraints/solutions.rs:1955
Functioninterpolated_string_escaped_brace_values
()
crates/ruff_python_parser/src/parser/tests.rs:133
Methodinterpolation
(self)
crates/ruff_python_ast/src/generated.rs:2946
Functionintersection_construction_failure_discards_the_projection
()
crates/ty_python_semantic/src/types/constraints/projection/tests.rs:1082
Methodintersection_from_two_elements
(db: &'db dyn Db, types: TypePair<'db>)
crates/ty_python_semantic/src/types/set_theoretic.rs:1156
Methodintersects
Returns `true` if the given range intersects with any multiline string.
crates/ruff_python_index/src/multiline_ranges.rs:27
Methodintersects
Returns `true` if the given range intersects with any f-string range.
crates/ruff_python_index/src/interpolated_string_ranges.rs:18
Functioninterspersed_matches_and_mismatches
()
crates/mdtest/src/matcher.rs:1105
Methodinto_callable_type
Convert the `FunctionType` into a [`CallableType`].
crates/ty_python_semantic/src/types/function.rs:2081
Methodinto_collected
(self)
crates/ty_python_semantic/src/types/unpacker.rs:489
Methodinto_diagnostic
(self)
crates/ty_ide/src/document_symbols.rs:642
Methodinto_diagnostic
(self)
crates/ty_ide/src/all_symbols.rs:1127
Methodinto_diagnostic
(self)
crates/ty_ide/src/workspace_symbols.rs:215
Methodinto_diagnostic
(self)
crates/ty_ide/src/doc_highlights.rs:93
Methodinto_diagnostic
(self)
crates/ty_ide/src/selection_range.rs:473
Methodinto_diagnostic
(self)
crates/ty_ide/src/folding_range.rs:2818
← previousnext →22,901–23,000 of 31,562, ranked by callers