MCPcopy Create free account

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

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

↓ 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:455
↓ 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:144
↓ 7 callersMethodis_class_var
Returns `true` if the place has a `ClassVar` type qualifier.
crates/ty_python_semantic/src/place.rs:1100
↓ 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:1250
↓ 7 callersMethodis_empty
(&self)
crates/ty_project/src/uv/environments.rs:520
↓ 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:2288
↓ 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 callersFunctionis_magic
Returns `true` if a function is a "magic method".
crates/ruff_python_semantic/src/analyze/visibility.rs:122
↓ 7 callersFunctionis_mangled_private
Returns `true` if a string is a private identifier, such that, when the identifier is defined in a class definition, it will be mangled prior to code
crates/ruff_python_stdlib/src/identifiers.rs:50
↓ 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_protocol
Returns whether this class is a protocol.
crates/ty_python_semantic/src/types/class.rs:826
↓ 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:797
↓ 7 callersMethodis_runtime
(self)
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:106
↓ 7 callersMethodis_subclass_of
Return `true` if `other` is present in this class's MRO.
crates/ty_python_semantic/src/types/class.rs:1483
↓ 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:1123
↓ 7 callersMethodis_triple_quoted
(&self)
crates/ruff_linter/src/docstrings/mod.rs:61
↓ 7 callersMethodis_typing
(self)
crates/ty_module_resolver/src/module.rs:422
↓ 7 callersMethodis_user_visible
Returns `true` if this definition is user-visible (i.e., not an internal synthetic definition like a loop header or nested bindings definition).
crates/ty_python_core/src/definition.rs:1021
↓ 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:1144
↓ 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:1444
↓ 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:1044
↓ 7 callersMethodkeyword_by_name
Return parameter (with index) for given name, or `None` if no such parameter. Does not return keywords (`**kwargs`) parameter. In an invalid signatu
crates/ty_python_semantic/src/types/signatures.rs:5805
↓ 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:6388
↓ 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:873
↓ 7 callersFunctionloop_header_reachability
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/place.rs:1672
↓ 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:1298
↓ 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:874
↓ 7 callersMethodmatch_parameters
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, arguments: &CallA
crates/ty_python_semantic/src/types/call/bind.rs:357
↓ 7 callersMethodmaterialization_kind
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/type_alias.rs:709
↓ 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:1240
↓ 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:828
↓ 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:2530
↓ 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 callersMethodnode_scope
(&self, node: NodeWithScopeRef)
crates/ty_python_core/src/lib.rs:780
↓ 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:1640
↓ 7 callersMethodpath
(&self)
crates/ruff_benchmark/src/lib.rs:59
↓ 7 callersMethodpath_assignments
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Constrai
crates/ty_python_semantic/src/types/constraints.rs:2976
↓ 7 callersFunctionpep_604_union
Format the expressions as a PEP 604-style union.
crates/ruff_python_ast/src/helpers.rs:1704
↓ 7 callersMethodpoll_sync
Applies completed background requests to their projects or script environments. Background workers cannot apply their results because updating an exi
crates/ty_project/src/uv/environments.rs:318
↓ 7 callersMethodpreview
Whether to enable preview behavior or not.
crates/ruff_db/src/diagnostic/mod.rs:1520
↓ 7 callersMethodprogram_file
(&self, file: File)
crates/ty_project/src/db.rs:611
↓ 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:3629
↓ 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:698
↓ 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
↓ 7 callersMethodreachable_symbol_declarations
( &self, symbol: ScopedSymbolId, )
crates/ty_python_core/src/use_def.rs:1376
↓ 7 callersMethodread_only
(mut self, yes: bool)
crates/ty_python_semantic/src/types/typed_dict.rs:3325
↓ 7 callersMethodregister
Registers a new pending request.
crates/ty_server/src/session/request_queue.rs:62
↓ 7 callersMethodremaining_literal_types
Expand this complement to the enum literals that remain possible.
crates/ty_python_semantic/src/types/enums.rs:780
↓ 7 callersMethodresolve
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/protocol_class.rs:1393
↓ 7 callersFunctionresolve_definition
Resolve import definitions to their targets. Returns resolved definitions which can be either specific definitions or module files. For non-import def
crates/ty_python_semantic/src/types/definition_resolution.rs:593
↓ 7 callersMethodresolve_module
Resolve the given import made in this file to a Module
crates/ty_python_semantic/src/semantic_model.rs:175
↓ 7 callersMethodresolve_target_version
Resolve the [`TargetVersion`] to use for linting. This method respects the per-file version overrides in [`LinterSettings::per_file_target_version`]
crates/ruff_linter/src/settings/mod.rs:879
↓ 7 callersMethodroot
(&self)
crates/ty_server/tests/e2e/main.rs:1724
↓ 7 callersMethodrun
Runs the directory traversal and calls the passed `builder` to create visitors that do the visiting. The walker may run multiple threads to visit the
crates/ruff_db/src/system/walk_directory.rs:86
↓ 7 callersMethodscope_id
The scope in which the reference is defined.
crates/ruff_python_semantic/src/reference.rs:36
↓ 7 callersMethodset_message
Sets the message on this annotation. If one was already set, then this overwrites it. This is useful if one needs to set the message on an annotatio
crates/ruff_db/src/diagnostic/mod.rs:872
↓ 7 callersMethodshadowed_bindings
Returns an iterator over all bindings that the given binding shadows, including itself.
crates/ruff_python_semantic/src/scope.rs:130
↓ 7 callersMethodsignature_receiver
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/method.rs:79
↓ 7 callersMethodsingle_element
Returns the single `CallableBinding` if this is not a union or intersection.
crates/ty_python_semantic/src/types/call/bind.rs:1482
↓ 7 callersMethodsource_file
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:3762
↓ 7 callersMethodsource_text
(&self)
crates/ruff_source_file/src/lib.rs:177
↓ 7 callersFunctionspace
Return a [`ParenthesizableWhitespace`] containing a single space.
crates/ruff_linter/src/cst/helpers.rs:7
↓ 7 callersMethodspecialization
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/type_alias.rs:760
↓ 7 callersMethodspecialize_partial
Creates a specialization of this generic context. Panics if the length of `types` does not match the number of typevars in the generic context. If any
crates/ty_python_semantic/src/types/generics.rs:1165
↓ 7 callersMethodspecialize_recursive
Creates a specialization of this generic context. Panics if the length of `types` does not match the number of typevars in the generic context. If an
crates/ty_python_semantic/src/types/generics.rs:1042
↓ 7 callersMethodstandard_filters
Enables all the standard ignore filters. This toggles, as a group, all the filters that are enabled by default: [`hidden`](Self::ignore_hidden) Any [
crates/ruff_db/src/system/walk_directory.rs:67
↓ 7 callersMethodsub_end
(&self, amount: TextSize)
crates/ruff_text_size/src/range.rs:449
↓ 7 callersFunctionsyntax_error
()
crates/ruff_wasm/tests/api.rs:90
↓ 7 callersMethodsystem
(&self)
crates/ty/tests/file_watching.rs:359
↓ 7 callersMethodtake_salsa_events
Takes the salsa events.
crates/ty_project/src/db.rs:843
↓ 7 callersMethodtake_salsa_events
Takes the salsa events.
crates/ty_module_resolver/src/db.rs:78
↓ 7 callersMethodtext
(name: string)
playground/ty/src/Playground.tsx:730
↓ 7 callersMethodto_class_literal
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types.rs:1567
← previousnext →2,101–2,200 of 31,562, ranked by callers