MCPcopy Create free account

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

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

↓ 2 callersMethodinput
(&self, _file: File)
crates/ruff_linter/src/message/mod.rs:143
↓ 2 callersMethodinput_durability
(&self, default: Durability)
crates/ruff_db/src/files.rs:96
↓ 2 callersMethodinsert
Insert the type into the collection. Returns `true` if the elements was newly added. Returns `false` if the element was already present in the collec
crates/ty_python_semantic/src/types/set_theoretic.rs:866
↓ 2 callersMethodinsert
(&mut self, value: T)
crates/ty_python_semantic/src/types/visitor.rs:407
↓ 2 callersMethodinsert_flags
(&mut self, flags: MemberFlags)
crates/ty_python_core/src/member.rs:69
↓ 2 callersMethodinsert_pending_type_mapping
( &mut self, bound_typevar: BoundTypeVarInstance<'db>, ty: Type<'db>, variance
crates/ty_python_semantic/src/types/generics.rs:3582
↓ 2 callersFunctioninstall_dependencies_to_cache
Install dependencies into a cached virtual environment. Creates a venv under `target/benchmark_cache/<name>/.venv` and installs the given dependencie
crates/ruff_benchmark/src/real_world_projects.rs:140
↓ 2 callersFunctioninstance_attribute_write_is_blocked
Whether or not an attribute write is blocked by the receiver's `__setattr__` method.
crates/ty_python_semantic/src/types/attribute_write.rs:191
↓ 2 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:972
↓ 2 callersMethodinstance_flags
Return the properties shared by all instances of this class.
crates/ty_python_semantic/src/types/class.rs:702
↓ 2 callersMethodinstance_layout
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/slots.rs:453
↓ 2 callersMethodinstance_return_specialization
Combine inferred specializations from this constructor and downstream constructors. The resulting specialization can be applied either to the construc
crates/ty_python_semantic/src/types/call/bind/constructor.rs:382
↓ 2 callersFunctioninstance_setattr_dispatch
Resolve attribute-specific dispatch through inherited frozen-dataclass setters.
crates/ty_python_semantic/src/types/attribute_write.rs:134
↓ 2 callersMethodinstance_type_for_meta_protocol
Return the constructed type used in meta-protocol matching and inference. There are no constructor arguments here from which to infer the class's typ
crates/ty_python_semantic/src/types/instance.rs:191
↓ 2 callersMethodintern
Formats `content` into an interned element without writing it to the formatter's buffer.
crates/ruff_formatter/src/formatter.rs:176
↓ 2 callersMethodintern
Returns the node ID and whether the node was newly inserted.
crates/ty_python_core/src/interned_nodes.rs:60
↓ 2 callersMethodintern_name
(&mut self, text: &str)
crates/ruff_python_parser/src/parser/mod.rs:429
↓ 2 callersMethodintern_support
(&mut self, data: Support)
crates/ty_python_semantic/src/types/constraints.rs:1530
↓ 2 callersMethodinterpolated_string_quote_style
Returns the appropriate quoting for interpolated strings by reversing the one used outside of the interpolated string. If the current expression in t
crates/ruff_linter/src/checkers/ast/mod.rs:418
↓ 2 callersMethodinterpreter_layout
(&self)
crates/ty_site_packages/src/lib.rs:2060
↓ 2 callersMethodintersecting_rev
Returns the indexed values that intersect `query`, in reverse input order. Interval endpoints are treated as inclusive so that an empty diagnostic ra
crates/ty_python_semantic/src/suppression.rs:913
↓ 2 callersMethodintersection
Retain deprecations only for access kinds deprecated in both alternatives. A non-deprecated getter can suppress read warnings without suppressing writ
crates/ty_python_semantic/src/types.rs:1109
↓ 2 callersMethodintersection
An intersection can use a non-deprecated member instead, but an absent member cannot provide an alternative implementation.
crates/ty_python_semantic/src/types/infer/builder/attribute_assignment.rs:194
↓ 2 callersFunctionintersection_all
Collect all the items from an iterable of slices that are present in all slices.
crates/ruff_macros/src/rule_code_prefix.rs:101
↓ 2 callersMethodinto_annotation
( self, context: &InferContext, target_type_display: impl fmt::Display, ordina
crates/ty_python_semantic/src/types/diagnostic.rs:2022
↓ 2 callersMethodinto_callable_with_receiver
( self, db: &'db dyn Db, receiver: Type<'db>, )
crates/ty_python_semantic/src/types/class.rs:2362
↓ 2 callersMethodinto_constraints
(self)
crates/ty_python_semantic/src/types/narrow.rs:1378
↓ 2 callersMethodinto_constructor_bindings
( mut self, constructor_instance_type: Type<'db>, constructor_kind: ConstructorCallabl
crates/ty_python_semantic/src/types/call/bind.rs:885
↓ 2 callersMethodinto_diagnostics
(self)
crates/ruff_python_parser/tests/fixtures.rs:606
↓ 2 callersMethodinto_diagnostics
(self)
crates/ty_python_semantic/src/types/diagnostic.rs:1752
↓ 2 callersMethodinto_diagnostics
(self)
crates/ruff_linter/src/checkers/ast/mod.rs:3762
↓ 2 callersMethodinto_disjuncts
( self, )
crates/ty_python_semantic/src/types/narrow.rs:1183
↓ 2 callersMethodinto_display_name_type_and_description
Consumes this item and returns its display parts.
crates/ty_ide/src/docstring/document.rs:142
↓ 2 callersMethodinto_edit
Convert this [`Insertion`] into an [`Edit`] that inserts the given content.
crates/ruff_python_importer/src/insertion.rs:298
↓ 2 callersMethodinto_edits
(self)
crates/ruff_linter/src/importer/mod.rs:588
↓ 2 callersMethodinto_errors
(self)
crates/ty_python_semantic/src/types/subscript.rs:256
↓ 2 callersMethodinto_expression_cache_entry
Consume the results already collected by this builder without compacting them.
crates/ty_python_semantic/src/types/infer/builder.rs:12243
↓ 2 callersMethodinto_file_failures
( self, db: &dyn Db, action: &str, clarification: Option<&str>, )
crates/mdtest/src/lib.rs:609
↓ 2 callersMethodinto_flat_symbols
(mut self)
crates/ty_ide/src/symbols.rs:762
↓ 2 callersMethodinto_formatted
(self)
crates/ruff_server/src/format.rs:39
↓ 2 callersMethodinto_function_like
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/callable.rs:977
↓ 2 callersMethodinto_functools_partial_instance
Reifies this callable as the nominal `functools.partial[T]` instance for its return type.
crates/ty_python_semantic/src/types/callable.rs:937
↓ 2 callersMethodinto_index
Return the Jupyter notebook index, consuming the notebook. The index is built only once when required. This is only used to report diagnostics, so by
crates/ruff_notebook/src/notebook.rs:393
↓ 2 callersMethodinto_iter
(self)
crates/ty_python_semantic/src/types/set_theoretic.rs:978
↓ 2 callersMethodinto_iter
(self)
crates/ty_python_semantic/src/types/diagnostic.rs:1779
↓ 2 callersMethodinto_mro_error
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, class: ClassType<'db>,
crates/ty_python_semantic/src/types/mro.rs:842
↓ 2 callersMethodinto_name
(self)
crates/ruff_python_semantic/src/model.rs:3219
↓ 2 callersMethodinto_node_iterator
Consume `self` and return an iterator over the interned nodes.
crates/ty_python_core/src/interned_nodes.rs:42
↓ 2 callersMethodinto_nodes_boxed_slice
Consume `self` and return a boxed slice of the interned nodes.
crates/ty_python_core/src/interned_nodes.rs:47
↓ 2 callersMethodinto_options
(self)
crates/ty_project/src/metadata/configuration_file.rs:76
↓ 2 callersMethodinto_other
(self)
crates/ty_python_semantic/src/types/infer.rs:1529
↓ 2 callersMethodinto_owned
(self, parsed: &ParsedModuleRef)
crates/ty_python_core/src/definition.rs:603
↓ 2 callersMethodinto_paramspec_value
Retain every parameter signature and its generic context, but erase return types that do not participate in a `ParamSpec` specialization.
crates/ty_python_semantic/src/types/callable.rs:922
↓ 2 callersMethodinto_precise_functools_partial_instance
Wraps this reduced callable as a synthetic `functools.partial(...)` instance type.
crates/ty_python_semantic/src/types/callable.rs:947
↓ 2 callersMethodinto_raw_parts
(self)
crates/ruff_python_ast/src/generated.rs:8843
↓ 2 callersMethodinto_renderable_fragments
Consumes this section and returns its fragments when it can be rendered structurally.
crates/ty_ide/src/docstring/document.rs:78
↓ 2 callersMethodinto_report
(self)
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:612
↓ 2 callersMethodinto_reset_action
Consume this block and turn it into a reset action. This occurs when we started collecting a code example from something that looked like a block, bu
crates/ruff_python_formatter/src/string/docstring.rs:1280
↓ 2 callersMethodinto_settings
(self)
crates/ty_server/src/session/options.rs:223
↓ 2 callersMethodinto_sorted
(self, db: &dyn Db)
crates/ty_project/src/lib.rs:187
↓ 2 callersMethodinto_sorted_source_code
Sort a multiline sequence of literal strings that is known to be unsorted. This function panics if it is called and `self.items` has length < 2. It's
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:440
↓ 2 callersMethodinto_utf8_path_buf
(self)
crates/ruff_db/src/system/path.rs:584
↓ 2 callersMethodinto_vec
Returns the underlying `stack` vector.
crates/ruff_formatter/src/printer/stack.rs:52
↓ 2 callersFunctioninvalid_argument_name
N803
crates/ruff_linter/src/rules/pep8_naming/rules/invalid_argument_name.rs:87
↓ 2 callersFunctioninvalid_utf8
()
crates/ruff_db/src/system/memory_fs.rs:472
↓ 2 callersMethodirrefutable_pattern
Return `Some(IrrefutablePattern)` if `self` is irrefutable or `None` otherwise.
crates/ruff_python_ast/src/nodes.rs:3086
↓ 2 callersFunctionisConfigurationFile
(name: string)
playground/ty/src/Playground.tsx:301
↓ 2 callersFunctionisPythonFile
(handle: FileHandle)
playground/ty/src/Editor/Files.tsx:213
↓ 2 callersFunctionisSettingsFile
(name: string)
playground/ty/src/Playground.tsx:297
↓ 2 callersFunctionis_acronym
(name: &str, asname: &str)
crates/ruff_linter/src/rules/pep8_naming/helpers.rs:22
↓ 2 callersMethodis_active
(&self)
crates/ty_python_core/src/builder/except_handlers.rs:29
↓ 2 callersMethodis_active
Returns whether the scanner is currently inside an accepted preformatted block.
crates/ty_ide/src/docstring/document/preformatted.rs:70
↓ 2 callersFunctionis_airflow_auth_manager
Check whether the symbol is coming from the `auth.manager` builtin or provider `auth_manager` module which ends with `AuthManager`.
crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs:1199
↓ 2 callersFunctionis_alias
Return `true` if an [`Expr`] is an alias of `OSError`.
crates/ruff_linter/src/rules/pyupgrade/rules/os_error_alias.rs:61
↓ 2 callersFunctionis_alias
Return `true` if an [`Expr`] is an alias of `TimeoutError`.
crates/ruff_linter/src/rules/pyupgrade/rules/timeout_error_alias.rs:70
↓ 2 callersFunctionis_allowed_func_def
Returns `true` if a function definition is allowed to use a boolean trap.
crates/ruff_linter/src/rules/flake8_boolean_trap/helpers.rs:122
↓ 2 callersMethodis_always_satisfied_with_limits
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Constrai
crates/ty_python_semantic/src/types/constraints.rs:2493
↓ 2 callersMethodis_always_undeclared
(&self)
crates/ty_python_core/src/use_def/place_state.rs:193
↓ 2 callersMethodis_arithmetic
(self)
crates/ruff_python_ast/src/token.rs:463
↓ 2 callersFunctionis_assignable_method_override
Checks whether a method override preserves its superclass method's callable domain. An explicitly annotated superclass receiver can restrict a method
crates/ty_python_semantic/src/types/overrides.rs:1532
↓ 2 callersMethodis_assignable_to_via_constraints
Checks whether the assignability constraints for this pair hold for every specialization.
crates/ty_python_semantic/src/types/relation.rs:466
↓ 2 callersMethodis_async
Returns `true` if the method is async, `false` if it is sync.
crates/ruff_linter/src/rules/flake8_async/helpers.rs:73
↓ 2 callersMethodis_async_comprehension
(self, index: &SemanticIndex)
crates/ty_python_core/src/scope.rs:120
↓ 2 callersMethodis_at_start_of_line
Returns `true` if `offset` is at the start of a line.
crates/ruff_source_file/src/line_ranges.rs:34
↓ 2 callersMethodis_available_in_scope
Return `true` if `member` is an "available" symbol in a given scope, i.e., a symbol that has not been bound in that current scope, or in any containin
crates/ruff_python_semantic/src/model.rs:454
↓ 2 callersMethodis_await
(&self)
crates/ruff_python_parser/src/semantic_errors.rs:2062
↓ 2 callersMethodis_bare_final
(self)
crates/ty_python_semantic/src/types.rs:12197
↓ 2 callersMethodis_bitwise_or_shift
(self)
crates/ruff_python_ast/src/token.rs:477
↓ 2 callersMethodis_bottom
Returns whether this is the bottom signature, which is assignable to all other signatures. (It accepts all parameter lists, and returns `Never`.)
crates/ty_python_semantic/src/types/signatures.rs:1088
↓ 2 callersMethodis_bound
Is the symbol given a value in its containing scope?
crates/ty_python_core/src/symbol.rs:71
↓ 2 callersFunctionis_builtin_module
(minor_version: u8, module: &str)
crates/ruff_python_stdlib/src/sys/builtin_modules.rs:13
↓ 2 callersMethodis_builtin_name
Returns `true` if `name` is provided by the configured Python runtime. This includes version- and source-type-specific builtins, magic globals, and c
crates/ruff_python_semantic/src/model.rs:309
↓ 2 callersMethodis_bundled_typing_stub
Returns whether this module resolves to a bundled typing-only stub. A project or installed module with the same name may still exist on a lower-prior
crates/ty_module_resolver/src/module.rs:116
↓ 2 callersFunctionis_call
Returns `true` if a function is a `__call__`.
crates/ruff_python_semantic/src/analyze/visibility.rs:137
↓ 2 callersMethodis_canceled
(&self)
crates/ruff_db/src/diagnostic/mod.rs:1541
↓ 2 callersMethodis_cell
Returns whether the document is a cell in a notebook opened by the client.
crates/ty_server/src/session.rs:1652
↓ 2 callersMethodis_cell_or_notebook
(&self)
crates/ty_server/src/session.rs:2045
↓ 2 callersMethodis_class_body_scope
(self)
crates/ty_python_semantic/src/place_load.rs:1196
↓ 2 callersFunctionis_class_method
Return `true` if a [`Decorator`] is indicative of a class method. Note: Implicit class methods like `__init_subclass__` and `__class_getitem__` are no
crates/ruff_python_semantic/src/analyze/function_type.rs:122
↓ 2 callersFunctionis_collection_initializer
(expr: &ast::Expr)
crates/ty_python_core/src/builder.rs:6285
← previousnext →6,001–6,100 of 31,766, ranked by callers