Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,562 in github.com/astral-sh/ruff
⨍
Functions
31,562
◇
Types & classes
7,116
↳
Endpoints
82
↓ 7 callers
Function
invalid_syntax
(path: &Utf8Path, content: String)
crates/ruff_python_parser/tests/fixtures.rs:26
↓ 7 callers
Method
is_absent
(self)
crates/ty_python_semantic/src/types/visitor.rs:455
↓ 7 callers
Function
is_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 callers
Method
is_cancelled
Returns true if the request was cancelled.
crates/ty_server/src/session/request_queue.rs:144
↓ 7 callers
Method
is_class_var
Returns `true` if the place has a `ClassVar` type qualifier.
crates/ty_python_semantic/src/place.rs:1100
↓ 7 callers
Method
is_comment
(&self)
crates/ruff_python_ast/src/token.rs:458
↓ 7 callers
Function
is_docstring_stmt
Return `true` if a `Stmt` is a docstring.
crates/ruff_python_ast/src/helpers.rs:1250
↓ 7 callers
Method
is_empty
(&self)
crates/ty_project/src/uv/environments.rs:520
↓ 7 callers
Method
is_empty
(&self)
crates/ruff_linter/src/suppression.rs:283
↓ 7 callers
Method
is_eof
Returns `true` if the cursor is at the end of file.
crates/ruff_python_parser/src/lexer/cursor.rs:87
↓ 7 callers
Method
is_instance_method
(&self)
crates/ty_python_semantic/src/types/protocol_class.rs:2288
↓ 7 callers
Method
is_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 callers
Function
is_magic
Returns `true` if a function is a "magic method".
crates/ruff_python_semantic/src/analyze/visibility.rs:122
↓ 7 callers
Function
is_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 callers
Function
is_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 callers
Method
is_none
Returns `true` if the match result is [`ModuleNameMatch::None`].
crates/ty_module_resolver/src/module_glob.rs:222
↓ 7 callers
Method
is_preview
Returns `true` if preview mode is enabled.
crates/ruff_python_formatter/src/context.rs:126
↓ 7 callers
Function
is_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 callers
Method
is_protocol
Returns whether this class is a protocol.
crates/ty_python_semantic/src/types/class.rs:826
↓ 7 callers
Method
is_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 callers
Method
is_runtime
(self)
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:106
↓ 7 callers
Method
is_subclass_of
Return `true` if `other` is present in this class's MRO.
crates/ty_python_semantic/src/types/class.rs:1483
↓ 7 callers
Method
is_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 callers
Method
is_triple_quoted
(&self)
crates/ruff_linter/src/docstrings/mod.rs:61
↓ 7 callers
Method
is_typing
(self)
crates/ty_module_resolver/src/module.rs:422
↓ 7 callers
Method
is_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 callers
Method
is_variadic
(&self)
crates/ty_python_semantic/src/types/tuple.rs:2535
↓ 7 callers
Method
iter
Returns an iterator over all members in the table.
crates/ty_python_core/src/member.rs:559
↓ 7 callers
Method
iter
(&self)
crates/ty_python_semantic/src/types/callable.rs:1144
↓ 7 callers
Method
iter_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 callers
Method
iter_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 callers
Method
keyword_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 callers
Method
keyword_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 callers
Method
known
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/function.rs:897
↓ 7 callers
Method
last
(mut self)
crates/ruff_formatter/src/format_element.rs:433
↓ 7 callers
Method
layout
(&self)
crates/ruff_python_literal/src/escape.rs:445
↓ 7 callers
Method
lints
Returns all registered, non-removed lints.
crates/ty_python_semantic/src/lint.rs:458
↓ 7 callers
Method
load_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 callers
Method
lookup_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 callers
Function
loop_header_reachability
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/place.rs:1672
↓ 7 callers
Method
map_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 callers
Method
map_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 callers
Function
match_exclusion
( file_path: P, file_basename: R, exclusion: &GlobSet, )
crates/ruff_workspace/src/resolver.rs:874
↓ 7 callers
Method
match_parameters
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, arguments: &CallA
crates/ty_python_semantic/src/types/call/bind.rs:357
↓ 7 callers
Method
materialization_kind
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/type_alias.rs:709
↓ 7 callers
Method
merge_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 callers
Method
mode
Does this error concern a synchronous or asynchronous iterable?
crates/ty_python_semantic/src/types/iteration.rs:763
↓ 7 callers
Method
module
Returns the module this symbol is exported from.
crates/ty_ide/src/all_symbols.rs:173
↓ 7 callers
Method
module
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 callers
Function
module_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 callers
Method
name
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/display.rs:78
↓ 7 callers
Method
name
Returns the corresponding Python special-method name.
crates/ty_python_semantic/src/types/class/static_literal.rs:177
↓ 7 callers
Method
name
(self, source: &'a str)
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:483
↓ 7 callers
Function
next
(iterator, default)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:146
↓ 7 callers
Method
next
(&mut self)
crates/ty_module_resolver/src/lib.rs:62
↓ 7 callers
Method
node_scope
(&self, node: NodeWithScopeRef)
crates/ty_python_core/src/lib.rs:780
↓ 7 callers
Method
p_delim
(&mut self, first: &mut bool, s: &str)
crates/ruff_python_codegen/src/generator.rs:234
↓ 7 callers
Method
parent_statement
(&self, node_id: NodeId)
crates/ruff_python_semantic/src/model.rs:1640
↓ 7 callers
Method
path
(&self)
crates/ruff_benchmark/src/lib.rs:59
↓ 7 callers
Method
path_assignments
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Constrai
crates/ty_python_semantic/src/types/constraints.rs:2976
↓ 7 callers
Function
pep_604_union
Format the expressions as a PEP 604-style union.
crates/ruff_python_ast/src/helpers.rs:1704
↓ 7 callers
Method
poll_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 callers
Method
preview
Whether to enable preview behavior or not.
crates/ruff_db/src/diagnostic/mod.rs:1520
↓ 7 callers
Method
program_file
(&self, file: File)
crates/ty_project/src/db.rs:611
↓ 7 callers
Method
project_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 callers
Method
property_decorators
(&self)
crates/ruff_linter/src/rules/pydocstyle/settings.rs:106
↓ 7 callers
Method
push_leading
Pushes a *leading* part for `key`.
crates/ruff_python_formatter/src/comments/map.rs:72
↓ 7 callers
Method
quote_style
(&self)
crates/ruff_python_ast/src/nodes.rs:698
↓ 7 callers
Method
range
(&self)
crates/ruff_source_file/src/newlines.rs:235
↓ 7 callers
Method
range
Returns the range of the statements comprising the basic block at the given index
crates/ruff_python_semantic/src/cfg/graph.rs:46
↓ 7 callers
Method
reachability_constraint
(&self)
crates/ty_python_core/src/use_def/place_state.rs:422
↓ 7 callers
Method
reachable_symbol_declarations
( &self, symbol: ScopedSymbolId, )
crates/ty_python_core/src/use_def.rs:1376
↓ 7 callers
Method
read_only
(mut self, yes: bool)
crates/ty_python_semantic/src/types/typed_dict.rs:3325
↓ 7 callers
Method
register
Registers a new pending request.
crates/ty_server/src/session/request_queue.rs:62
↓ 7 callers
Method
remaining_literal_types
Expand this complement to the enum literals that remain possible.
crates/ty_python_semantic/src/types/enums.rs:780
↓ 7 callers
Method
resolve
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/protocol_class.rs:1393
↓ 7 callers
Function
resolve_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 callers
Method
resolve_module
Resolve the given import made in this file to a Module
crates/ty_python_semantic/src/semantic_model.rs:175
↓ 7 callers
Method
resolve_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 callers
Method
root
(&self)
crates/ty_server/tests/e2e/main.rs:1724
↓ 7 callers
Method
run
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 callers
Method
scope_id
The scope in which the reference is defined.
crates/ruff_python_semantic/src/reference.rs:36
↓ 7 callers
Method
set_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 callers
Method
shadowed_bindings
Returns an iterator over all bindings that the given binding shadows, including itself.
crates/ruff_python_semantic/src/scope.rs:130
↓ 7 callers
Method
signature_receiver
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/method.rs:79
↓ 7 callers
Method
single_element
Returns the single `CallableBinding` if this is not a union or intersection.
crates/ty_python_semantic/src/types/call/bind.rs:1482
↓ 7 callers
Method
source_file
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:3762
↓ 7 callers
Method
source_text
(&self)
crates/ruff_source_file/src/lib.rs:177
↓ 7 callers
Function
space
Return a [`ParenthesizableWhitespace`] containing a single space.
crates/ruff_linter/src/cst/helpers.rs:7
↓ 7 callers
Method
specialization
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/type_alias.rs:760
↓ 7 callers
Method
specialize_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 callers
Method
specialize_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 callers
Method
standard_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 callers
Method
sub_end
(&self, amount: TextSize)
crates/ruff_text_size/src/range.rs:449
↓ 7 callers
Function
syntax_error
()
crates/ruff_wasm/tests/api.rs:90
↓ 7 callers
Method
system
(&self)
crates/ty/tests/file_watching.rs:359
↓ 7 callers
Method
take_salsa_events
Takes the salsa events.
crates/ty_project/src/db.rs:843
↓ 7 callers
Method
take_salsa_events
Takes the salsa events.
crates/ty_module_resolver/src/db.rs:78
↓ 7 callers
Method
text
(name: string)
playground/ty/src/Playground.tsx:730
↓ 7 callers
Method
to_class_literal
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types.rs:1567
← previous
next →
2,101–2,200 of 31,562, ranked by callers