MCPcopy Create free account

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

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

↓ 7 callersFunctionfoo
()
crates/ty_python_semantic/resources/corpus/57_await.py:1
↓ 7 callersFunctionfoo
function without params, single line docstring
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_singles_function.py:1
↓ 7 callersFunctiongenerated_file_diff
Limit generated-file diffs so stale files do not overwhelm CI logs.
crates/ruff_dev/src/generate_all.rs:58
↓ 7 callersMethodget_source_type
Return a mapped [`SourceType`] for a given path.
crates/ruff_linter/src/settings/types.rs:518
↓ 7 callersMethodglobal_settings
(&self)
crates/ty_server/src/session.rs:1509
↓ 7 callersMethodgroup_id
Creates a new unique group id with the given debug name.
crates/ruff_formatter/src/group_id.rs:70
↓ 7 callersMethodhas_explicit_return_annotation
Returns `true` if any overload or implementation has an explicit return annotation. This distinguishes untyped decorators that infer an unknown retur
crates/ty_python_semantic/src/types/function.rs:1725
↓ 7 callersMethodhas_explicit_slots
Returns whether this class body explicitly defines `__slots__`.
crates/ty_python_semantic/src/types/class/slots.rs:223
↓ 7 callersMethodhas_provisional_marker
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/typevar.rs:154
↓ 7 callersMethodhas_typevar_or_typevar_instance
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/typevar.rs:129
↓ 7 callersMethodhomogeneous_type
(self)
crates/ty_python_semantic/src/types/tuple.rs:924
↓ 7 callersMethodhover_request
Send a `textDocument/hover` request for the document at the given path and position.
crates/ruff_server/tests/e2e/main.rs:810
↓ 7 callersFunctionid
(lint_name: &'static str)
crates/ruff_db/src/diagnostic/render.rs:2953
↓ 7 callersMethodin_exception_handler
Return `true` if the model is in an exception handler.
crates/ruff_python_semantic/src/model.rs:2244
↓ 7 callersFunctionin_parentheses_only_group
Makes `content` a group, but only if the outer expression is parenthesized (a list, parenthesized expression, dict, ...) or if the expression gets par
crates/ruff_python_formatter/src/expression/parentheses.rs:297
↓ 7 callersMethodindex
(self)
crates/ty_python_core/src/ast_ids.rs:333
↓ 7 callersMethodinfer_body
(&mut self, suite: &[ast::Stmt])
crates/ty_python_semantic/src/types/infer/builder.rs:2274
↓ 7 callersMethodinfer_type_expression_no_store
Infer the type of a type expression without storing the result.
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:436
↓ 7 callersMethodinfer_value
(&mut self, tcx: TypeContext<'db>, emit_diagnostics: bool)
crates/ty_python_semantic/src/types/infer/builder/attribute_assignment.rs:215
↓ 7 callersMethodinit
( package_roots: &FxHashMap<&'a Path, Option<PackageRoot<'a>>>, resolver: &Resolver, )
crates/ruff/src/cache.rs:423
↓ 7 callersMethodinsert_flags
(&mut self, flags: SymbolFlags)
crates/ty_python_core/src/symbol.rs:167
↓ 7 callersMethodinstall
Installs the dependencies required to type check the project.
scripts/ty_benchmark/src/benchmark/venv.py:77
↓ 7 callersMethodinstance_fallback
Return the instance type which this type is a subtype of. For example, the symbol `typing.Literal` is an instance of `typing._SpecialForm`, so `Speci
crates/ty_python_semantic/src/types/special_form.rs:193
↓ 7 callersMethodintern_typevar
Interns a single typevar, giving it a stable order in this builder
crates/ty_python_semantic/src/types/constraints.rs:1281
↓ 7 callersMethodinterpolated_string_state
(&self)
crates/ruff_python_formatter/src/context.rs:114
↓ 7 callersMethodintersection
Create an "intersection" constraint: the previous type will be intersected with this constraint
crates/ty_python_semantic/src/types/narrow.rs:1137
↓ 7 callersMethodinto_bool
(self)
crates/ruff_python_ast/src/helpers.rs:1526
↓ 7 callersMethodinto_inner
(self)
crates/ty_python_semantic/src/types/constraints.rs:1814
↓ 7 callersMethodinto_iter
(self)
crates/mdtest/src/assertion.rs:178
↓ 7 callersMethodinto_settings
( self, )
crates/ruff_workspace/src/options.rs:1189
↓ 7 callersMethodinto_vec
Returns the available solution paths, discarding completeness information.
crates/ty_python_semantic/src/types/constraints.rs:4902
↓ 7 callersMethodinto_vec
(self)
crates/ty_python_semantic/src/types/infer/builder.rs:13523
↓ 7 callersFunctioninvalid_syntax
(path: &Utf8Path, content: String)
crates/ruff_python_parser/tests/fixtures.rs:26
↓ 7 callersMethodis_absent
(self)
crates/ty_python_semantic/src/types/visitor.rs:459
↓ 7 callersFunctionis_airflow_builtin_or_provider
Check whether the segments corresponding to the fully qualified name points to a symbol that's either a builtin or coming from one of the providers in
crates/ruff_linter/src/rules/airflow/helpers.rs:176
↓ 7 callersMethodis_cancelled
Returns true if the request was cancelled.
crates/ty_server/src/session/request_queue.rs:150
↓ 7 callersMethodis_comment
(&self)
crates/ruff_python_ast/src/token.rs:458
↓ 7 callersFunctionis_docstring_stmt
Return `true` if a `Stmt` is a docstring.
crates/ruff_python_ast/src/helpers.rs:1246
↓ 7 callersMethodis_empty
(&self)
crates/ruff_linter/src/suppression.rs:283
↓ 7 callersMethodis_eof
Returns `true` if the cursor is at the end of file.
crates/ruff_python_parser/src/lexer/cursor.rs:87
↓ 7 callersMethodis_instance_method
(&self)
crates/ty_python_semantic/src/types/protocol_class.rs:2346
↓ 7 callersMethodis_irrefutable
Return `true` for `case [*rest]`, the only sequence pattern with no length or element constraints.
crates/ty_python_core/src/predicate.rs:233
↓ 7 callersMethodis_literal_string
(self)
crates/ty_python_semantic/src/types/literal.rs:252
↓ 7 callersFunctionis_magic
Returns `true` if a function is a "magic method".
crates/ruff_python_semantic/src/analyze/visibility.rs:122
↓ 7 callersFunctionis_mutable_expr
Return `true` if `expr` is an expression that resolves to a mutable value.
crates/ruff_python_semantic/src/analyze/typing.rs:424
↓ 7 callersMethodis_none
Returns `true` if the match result is [`ModuleNameMatch::None`].
crates/ty_module_resolver/src/module_glob.rs:222
↓ 7 callersMethodis_preview
Returns `true` if preview mode is enabled.
crates/ruff_python_formatter/src/context.rs:126
↓ 7 callersFunctionis_property
Returns `true` if a function definition is a `@property`. `extra_properties` can be used to check additional non-standard `@property`-like decorators.
crates/ruff_python_semantic/src/analyze/visibility.rs:66
↓ 7 callersMethodis_redundant_with
Return `true` if it would be redundant to add `self` to a union that already contains `other`. See [`TypeRelation::Redundancy`] for more details.
crates/ty_python_semantic/src/types/relation.rs:798
↓ 7 callersMethodis_runtime
(self)
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:110
↓ 7 callersMethodis_subclass_of
Return `true` if `other` is present in this class's MRO.
crates/ty_python_semantic/src/types/class.rs:1502
↓ 7 callersMethodis_top
Returns whether this is the top signature, which is assignable from all other signatures. (It permits no calls, and has return type `object`.)
crates/ty_python_semantic/src/types/signatures.rs:1096
↓ 7 callersMethodis_triple_quoted
(&self)
crates/ruff_linter/src/docstrings/mod.rs:61
↓ 7 callersMethodis_typing
(self)
crates/ty_module_resolver/src/module.rs:436
↓ 7 callersMethodis_variadic
(&self)
crates/ty_python_semantic/src/types/tuple.rs:2535
↓ 7 callersMethoditer
Returns an iterator over all members in the table.
crates/ty_python_core/src/member.rs:559
↓ 7 callersMethoditer
(&self)
crates/ty_python_semantic/src/types/callable.rs:1142
↓ 7 callersMethoditer_explicit_ancestors
Visit this class and its explicit ancestors depth-first and left-to-right, yielding each distinct specialization once. Cyclic classes are skipped. Un
crates/ty_python_semantic/src/types/class.rs:1463
↓ 7 callersMethoditer_flat_mut
Returns a mutable iterator over all `CallableBinding`s, flattening the two-level structure. Note: This loses the union/intersection distinction. Use
crates/ty_python_semantic/src/types/call/bind.rs:1055
↓ 7 callersMethodkeyword_name
Returns the name of this parameter if it is a keyword-only or standard parameter.
crates/ty_python_semantic/src/types/signatures.rs:6291
↓ 7 callersMethodknown
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/function.rs:897
↓ 7 callersMethodlast
(mut self)
crates/ruff_formatter/src/format_element.rs:433
↓ 7 callersMethodlayout
(&self)
crates/ruff_python_literal/src/escape.rs:445
↓ 7 callersMethodlints
Returns all registered, non-removed lints.
crates/ty_python_semantic/src/lint.rs:458
↓ 7 callersMethodload_then_clear_on_drop
Loads the parsed module and simultaneously notes whether the underlying file is closed. If so, we proactively clear its AST from the Salsa cache when
crates/ruff_db/src/parsed.rs:175
↓ 7 callersMethodlookup_symbol_in_scope
Lookup a symbol in a certain scope without materializing lazy builtins. This is a carbon copy of [`Self::resolve_load`], but doesn't add any read ref
crates/ruff_python_semantic/src/model.rs:858
↓ 7 callersFunctionloop_header_reachability
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/place.rs:1615
↓ 7 callersMethodmap_positive
Map a type transformation over all positive elements of the intersection. Leave the negative elements unchanged.
crates/ty_python_semantic/src/types/set_theoretic.rs:1316
↓ 7 callersMethodmap_with_db
Maps items in parallel with a separate Salsa database for each Rayon job. Rayon's standard scheduling adapters can be applied before this method. For
crates/ty_project/src/parallel.rs:32
↓ 7 callersFunctionmatch_exclusion
( file_path: P, file_basename: R, exclusion: &GlobSet, )
crates/ruff_workspace/src/resolver.rs:858
↓ 7 callersMethodmatch_parameters
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, arguments: &CallA
crates/ty_python_semantic/src/types/call/bind.rs:370
↓ 7 callersMethodmaterialization_kind
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/type_alias.rs:712
↓ 7 callersMethodmerge_constraint_and
Merge two constraints, taking their intersection but respecting "replacement" semantics (with `other` winning)
crates/ty_python_semantic/src/types/narrow.rs:1242
↓ 7 callersMethodmode
Does this error concern a synchronous or asynchronous iterable?
crates/ty_python_semantic/src/types/iteration.rs:763
↓ 7 callersMethodmodule
Returns the module this symbol is exported from.
crates/ty_ide/src/all_symbols.rs:173
↓ 7 callersMethodmodule
Create a new [`ImportRequest`] for bringing the given module into scope. This is for just importing the module itself, always via an `import` stateme
crates/ty_python_semantic/src/importer.rs:829
↓ 7 callersFunctionmodule_type_implicit_global_symbol
Looks up the type of an "implicit global symbol". Returns [`Place::Undefined`] if `name` is not present as an implicit symbol in module-global namespa
crates/ty_python_semantic/src/place.rs:2467
↓ 7 callersMethodname
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/display.rs:78
↓ 7 callersMethodname
Returns the corresponding Python special-method name.
crates/ty_python_semantic/src/types/class/static_literal.rs:177
↓ 7 callersMethodname
(self, source: &'a str)
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:483
↓ 7 callersFunctionnext
(iterator, default)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:146
↓ 7 callersMethodnext
(&mut self)
crates/ty_module_resolver/src/lib.rs:62
↓ 7 callersMethodnotify_skipped_lazy_type_attributes
(&self)
crates/ty_python_semantic/src/types/typevar.rs:2020
↓ 7 callersMethodoptions_in_precedence_order
Returns project or script option layers from highest to lowest precedence. `options` is the raw project or script configuration, and `uv_options` is
crates/ty_project/src/metadata.rs:490
↓ 7 callersMethodown_instance_member
Look up an instance member defined directly on this class (not inherited). `NamedTuple` fields are exposed via synthesized descriptors on the class r
crates/ty_python_semantic/src/types/class/named_tuple.rs:301
↓ 7 callersMethodown_synthesized_member
Returns a definitely synthesized class member, such as a dataclass's `__init__`, a named tuple's `__new__`, or the implicit `__hash__ = None`.
crates/ty_python_semantic/src/types/class/static_literal.rs:1844
↓ 7 callersMethodp_delim
(&mut self, first: &mut bool, s: &str)
crates/ruff_python_codegen/src/generator.rs:234
↓ 7 callersMethodparent_statement
(&self, node_id: NodeId)
crates/ruff_python_semantic/src/model.rs:1669
↓ 7 callersMethodpath
(&self)
crates/ruff_benchmark/src/lib.rs:70
↓ 7 callersMethodpath_assignments
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Constrai
crates/ty_python_semantic/src/types/constraints.rs:2937
↓ 7 callersFunctionpep_604_union
Format the expressions as a PEP 604-style union.
crates/ruff_python_ast/src/helpers.rs:1700
↓ 7 callersMethodpreview
Whether to enable preview behavior or not.
crates/ruff_db/src/diagnostic/mod.rs:1491
↓ 7 callersMethodprogram
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:1905
↓ 7 callersMethodproject_for_legacy_fallback
Adds available solutions, including fallback bindings, to the legacy recovery mapping. Only accepted relations can contribute; omitted evidence makes
crates/ty_python_semantic/src/types/generics.rs:3650
↓ 7 callersMethodproperty_decorators
(&self)
crates/ruff_linter/src/rules/pydocstyle/settings.rs:106
↓ 7 callersMethodpush_leading
Pushes a *leading* part for `key`.
crates/ruff_python_formatter/src/comments/map.rs:72
↓ 7 callersMethodquote_style
(&self)
crates/ruff_python_ast/src/nodes.rs:711
↓ 7 callersMethodrange
(&self)
crates/ruff_source_file/src/newlines.rs:235
↓ 7 callersMethodrange
Returns the range of the statements comprising the basic block at the given index
crates/ruff_python_semantic/src/cfg/graph.rs:46
↓ 7 callersMethodreachability_constraint
(&self)
crates/ty_python_core/src/use_def/place_state.rs:422
← previousnext →2,101–2,200 of 31,766, ranked by callers