Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
↓ 28 callers
Method
bindings
(&self)
crates/ty_python_semantic/src/types/infer.rs:384
↓ 28 callers
Method
enter_node
(&mut self, _node: AnyNodeRef<'a>)
crates/ruff_python_ast/src/visitor/source_order.rs:15
↓ 28 callers
Function
exit
(e)
crates/ruff_linter/resources/test/fixtures/pylint/sys_exit_alias_6.py:5
↓ 28 callers
Method
extend
(&mut self, segments: impl IntoIterator<Item = &'a str>)
crates/ruff_python_ast/src/name.rs:497
↓ 28 callers
Method
infer_type_expression
Infer the type of a type expression.
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:201
↓ 28 callers
Method
inferred_type
(&self, model: &SemanticModel<'db>)
crates/ty_python_semantic/src/semantic_model.rs:1021
↓ 28 callers
Method
is_object
Return `true` if this class represents the builtin class `object`
crates/ty_python_semantic/src/types/class.rs:1351
↓ 28 callers
Method
is_typevartuple
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:340
↓ 28 callers
Method
iter_source_order
Returns an iterator over the patterns and keywords in source order.
crates/ruff_python_ast/src/nodes.rs:3180
↓ 28 callers
Method
leave_node
(&mut self, _node: AnyNodeRef<'a>)
crates/ruff_python_ast/src/visitor/source_order.rs:20
↓ 28 callers
Method
map
Transforms a selected type without losing whether it is only a budget-exhaustion fallback.
crates/ty_python_semantic/src/types/constraints.rs:3306
↓ 28 callers
Method
or_default
(self, code: Option<&SecondaryCode>)
crates/ruff_linter/src/linter.rs:99
↓ 28 callers
Method
program_environment
(&self)
crates/ty_python_semantic/src/types/call/bind.rs:181
↓ 28 callers
Method
run
Run the benchmark using `hyperfine`.
scripts/ty_benchmark/src/benchmark/__init__.py:93
↓ 28 callers
Method
set_fix
Set the fix for this diagnostic.
crates/ruff_db/src/diagnostic/mod.rs:387
↓ 28 callers
Method
shrink_to_fit
Releases excess capacity in a constructor template before Salsa retains it.
crates/ty_python_semantic/src/types/call/bind.rs:913
↓ 28 callers
Method
signature_help
(&self)
crates/ty_ide/src/signature_help.rs:1708
↓ 28 callers
Method
sleep
(x, cls, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:36
↓ 28 callers
Method
to_class_type
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/tuple.rs:270
↓ 28 callers
Method
top_materialization
Returns the top materialization for this class.
crates/ty_python_semantic/src/types/class.rs:1095
↓ 28 callers
Method
visit_type
(&self, db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/cyclic.rs:676
↓ 28 callers
Method
when_all
( self, _db: &'db dyn Db, builder: &'c ConstraintSetBuilder<'db>, mut f: impl
crates/ty_python_semantic/src/types/constraints.rs:230
↓ 27 callers
Method
after
(&self, offset: TextSize)
crates/ruff_linter/src/locator.rs:53
↓ 27 callers
Method
apply_specialization
( self, db: &'db dyn Db, f: impl FnOnce(GenericContext<'db>) -> Specialization<'db>,
crates/ty_python_semantic/src/types/class/static_literal.rs:631
↓ 27 callers
Method
check
(&self, contents: &str)
crates/ruff_wasm/src/lib.rs:342
↓ 27 callers
Method
cmp
(&self, other: &Self)
crates/ty_python_semantic/src/types/literal.rs:358
↓ 27 callers
Method
components
An iterator over the components of the module name: # Examples ``` use ty_module_resolver::ModuleName; assert_eq!(ModuleName::new_static("foo.bar.b
crates/ty_module_resolver/src/module_name.rs:82
↓ 27 callers
Method
concrete_base_type
Walk the `NewTypeBase` chain to find the underlying non-newtype `Type`. There might not be one if this `NewType` is cyclical, and we fall back to `obj
crates/ty_python_semantic/src/types/newtype.rs:111
↓ 27 callers
Method
current_use_def_map_mut
(&mut self)
crates/ty_python_core/src/builder.rs:1078
↓ 27 callers
Method
exception
(self)
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:135
↓ 27 callers
Method
expected_type
(self)
crates/ty_python_semantic/src/types/infer/type_context.rs:91
↓ 27 callers
Method
file
(self, db: &dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:604
↓ 27 callers
Function
from_tokens
( context: &LintContext, path: &Path, locator: &Locator, comment_ranges: &CommentRanges, )
crates/ruff_linter/src/rules/flake8_executable/rules/mod.rs:21
↓ 27 callers
Method
get
Returns the [`OverloadLiteral`] representing this matching overload.
crates/ty_python_semantic/src/types/call/bind.rs:11536
↓ 27 callers
Method
into_class
(self)
crates/ty_python_semantic/src/types/class_base.rs:372
↓ 27 callers
Method
is_empty
(&self)
crates/ruff_python_ast/src/name.rs:482
↓ 27 callers
Method
kind
(&self)
crates/ty_ide/src/lib.rs:222
↓ 27 callers
Method
kind
(&self)
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/diagnostic.rs:73
↓ 27 callers
Method
len
(&self)
crates/ty_python_core/src/rank.rs:68
↓ 27 callers
Method
node
(self)
crates/ty_python_semantic/src/types/constraints.rs:2386
↓ 27 callers
Method
resolver_file
Returns the resolver key for this file.
crates/ty_python_core/src/program_file.rs:85
↓ 27 callers
Function
sum
()
crates/ruff_text_size/tests/main.rs:15
↓ 27 callers
Method
variable
(&self)
crates/ty_python_semantic/src/types/tuple.rs:1218
↓ 27 callers
Method
visit
(&self, db: &'db dyn Db, item: T, compute: impl FnOnce() -> R)
crates/ty_python_semantic/src/types/cyclic.rs:911
↓ 27 callers
Method
with_python_version
(mut self, python_version: PythonVersion)
crates/ty_module_resolver/src/db.rs:59
↓ 27 callers
Method
with_workspace
Add a workspace to the test server with the given root path.
crates/ruff_server/tests/e2e/main.rs:1022
↓ 26 callers
Method
args
Adds multiple arguments to the command.
crates/ruff_db/src/system/command.rs:33
↓ 26 callers
Method
collect_publish_diagnostic_notifications
( &mut self, count: usize, )
crates/ty_server/tests/e2e/main.rs:564
↓ 26 callers
Function
collect_unused_names
(source: &str)
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:264
↓ 26 callers
Method
current_expression_parent
Return the parent [`Expr`] of the current [`Expr`], if any.
crates/ruff_python_semantic/src/model.rs:1516
↓ 26 callers
Method
enclosing_node
The closest parent node that fully encloses the comment. A node encloses a comment when the comment is between two of its direct children (ignoring l
crates/ruff_python_formatter/src/comments/visitor.rs:206
↓ 26 callers
Method
evaluate
Evaluate an expression using declared variance at protocol-parameter references.
crates/ty_python_semantic/src/types/variance/equations.rs:81
↓ 26 callers
Method
expression_type
( &self, expression: impl Into<ExpressionNodeKey>, )
crates/ty_python_semantic/src/types/infer.rs:371
↓ 26 callers
Method
file
(&self)
crates/ty_python_semantic/src/lint.rs:138
↓ 26 callers
Method
full_display
Return the full snippet for user-facing display, or `None` if the snippet should be truncated.
crates/ruff_linter/src/fix/snippet.rs:18
↓ 26 callers
Method
full_line_end
(&self, offset: TextSize)
crates/ruff_linter/src/locator.rs:157
↓ 26 callers
Method
full_range
(&self, db: &dyn Db)
crates/ty_python_semantic/src/types/definition.rs:42
↓ 26 callers
Method
inner_type
(&self)
crates/ty_python_semantic/src/types.rs:12161
↓ 26 callers
Method
into_inner
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/infer.rs:834
↓ 26 callers
Method
into_iter
(self)
crates/ruff_python_ast/src/token/tokens.rs:233
↓ 26 callers
Method
is_expression_parenthesized
(&self, expression: ExprRef)
crates/ruff_python_formatter/src/context.rs:89
↓ 26 callers
Method
kind
(&self)
crates/ty_python_semantic/src/types/call/bind.rs:10101
↓ 26 callers
Method
name
Returns the base symbol name for this group. Callers must ensure that all symbols in this group have the same base name. This returns `None` if and
crates/ty_ide/src/all_symbols.rs:516
↓ 26 callers
Function
new_tokens
Helper function to create [`Tokens`] from an iterator of (kind, range).
crates/ruff_python_ast/src/token/tokens.rs:438
↓ 26 callers
Method
primary_span
Returns the "primary" span of this diagnostic if one exists. When there are multiple primary spans, then the first one that was added to this diagnos
crates/ruff_db/src/diagnostic/mod.rs:332
↓ 26 callers
Method
range
(&self)
crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs:558
↓ 26 callers
Function
rename
Perform a rename operation on the symbol at the given position. Returns all locations that need to be updated with the new name.
crates/ty_ide/src/rename.rs:57
↓ 26 callers
Method
resolve
Refines ambiguous deletions using the project's cached file state. Created and modified paths can be classified from the filesystem, but deleted path
crates/ty_project/src/watch.rs:83
↓ 26 callers
Method
skip_builtins
When set, builtins from completions are skipped. This is useful in tests to reduce noise for scope based completions. Not enabled by default.
crates/ty_ide/src/completion.rs:11709
↓ 26 callers
Method
tests
(&self)
crates/mdtest/src/parser.rs:50
↓ 26 callers
Method
to_meta_type
(self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/instance.rs:477
↓ 26 callers
Function
update_file
Dedents and updates a file's content, ensuring that its last modified time changes.
crates/ty/tests/file_watching.rs:671
↓ 26 callers
Method
value
Return the numeric value for this [`LineWidth`]
crates/ruff_formatter/src/lib.rs:111
↓ 26 callers
Method
visit_body
(&mut self, body: &[ruff_python_ast::Stmt])
crates/ruff_linter/src/rules/numpy/helpers.rs:42
↓ 25 callers
Function
all
(exp)
crates/ruff_linter/resources/test/fixtures/flake8_simplify/SIM111.py:131
↓ 25 callers
Method
annotation
(&self)
crates/ruff_python_ast/src/nodes.rs:3031
↓ 25 callers
Function
any_over_type
Return `true` if `ty`, or any of the types contained in `ty`, match the closure passed in. The function guards against infinite recursion by keeping
crates/ty_python_semantic/src/types/visitor.rs:1074
↓ 25 callers
Method
assert_indexed_project_files
(&self, expected: impl IntoIterator<Item = File>)
crates/ty/tests/file_watching.rs:275
↓ 25 callers
Method
bytes
Returns an iterator over the bytes of the concatenated bytestring.
crates/ruff_python_ast/src/nodes.rs:2095
↓ 25 callers
Method
definition
(&self, id: ScopedDefinitionId)
crates/ty_python_core/src/use_def.rs:1174
↓ 25 callers
Method
document
Create a document reference corresponding to the given document key. Returns an error if the document is not found or if the path cannot be converted
crates/ty_server/src/session/index.rs:179
↓ 25 callers
Method
drain
(&mut self, range: R)
crates/ruff_index/src/vec.rs:42
↓ 25 callers
Method
entry
(&mut self, id: DiagnosticId)
crates/ruff_linter/src/linter.rs:73
↓ 25 callers
Method
extend_from_slice
(&mut self, segments: &[&'a str])
crates/ruff_python_ast/src/name.rs:502
↓ 25 callers
Function
fmt
(old: int, new: int, *, greater_is_better: bool = True)
scripts/conformance.py:767
↓ 25 callers
Method
getLogger
(self)
crates/ruff_linter/resources/test/fixtures/flake8_logging/LOG002.py:20
↓ 25 callers
Method
in_stub
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:1061
↓ 25 callers
Method
len_utf8
(self)
crates/ty_python_semantic/src/suppression.rs:562
↓ 25 callers
Method
module
The module for which the types are inferred.
crates/ty_python_semantic/src/types/context.rs:215
↓ 25 callers
Method
push
(&mut self, component: &str)
crates/ty_module_resolver/src/path.rs:45
↓ 25 callers
Function
setup_micro_case
(code: &str)
crates/ruff_benchmark/benches/ty_shared/mod.rs:35
↓ 25 callers
Method
sort
(&mut self)
crates/ruff_linter/src/rules/ruff/rules/invalid_formatter_suppression_comment.rs:203
↓ 25 callers
Method
sub
(self, rhs: &Support)
crates/ty_python_semantic/src/types/constraints/support.rs:177
↓ 25 callers
Method
to_owned
(&self)
crates/ruff_index/src/slice.rs:197
↓ 25 callers
Method
value_type
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, name: Option<&str>,
crates/ty_python_semantic/src/types/call/arguments.rs:431
↓ 25 callers
Method
visit_node
(&mut self, node: &'ast T)
crates/ruff_db/src/parsed.rs:685
↓ 24 callers
Method
add_positive_in_place
(&mut self, ty: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:1711
↓ 24 callers
Method
add_unsupported_syntax_error
Add an [`UnsupportedSyntaxError`] with the given [`UnsupportedSyntaxErrorKind`] and [`TextRange`] if its minimum version is less than [`Parser::target
crates/ruff_python_parser/src/parser/mod.rs:657
↓ 24 callers
Method
apply_type_mapping
( &self, db: &'db dyn Db, type_mapping: &TypeMapping<'_, 'db>, tcx: TypeContex
crates/ty_python_semantic/src/types/signatures.rs:753
↓ 24 callers
Method
as_typevar
(self)
crates/ty_python_semantic/src/types/typevar.rs:48
← previous
next →
601–700 of 31,766, ranked by callers