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
Method
n
(self: S, other: T)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:141
Method
n
(cls: type[S], other: S)
crates/ruff_linter/resources/test/fixtures/flake8_pyi/PYI019_0.py:149
Method
name
The name of the virtual environment directory.
scripts/ty_benchmark/src/benchmark/venv.py:36
Method
name
(self)
scripts/ty_benchmark/src/benchmark/tool.py:42
Method
name
(self)
scripts/ty_benchmark/src/benchmark/tool.py:147
Method
name
(self)
scripts/ty_benchmark/src/benchmark/tool.py:237
Method
name
(self)
scripts/ty_benchmark/src/benchmark/tool.py:284
Method
name
(self)
scripts/ty_benchmark/src/benchmark/tool.py:333
Method
name
Returns the name of the reference.
crates/ruff_python_semantic/src/reference.rs:168
Method
name
(&self)
crates/ruff_python_semantic/src/model/all.rs:34
Method
name
Returns the name of the item being defined, if applicable.
crates/ty_python_core/src/definition.rs:121
Method
name
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class_base.rs:67
Method
name
f"{self.first_name} {self.last_name}
crates/ruff_linter/resources/test/fixtures/ruff/RUF066.py:7
Function
name_1
(name_2: name_0)
crates/ty_python_semantic/resources/corpus/cyclic_pep695_typevars.py:1
Function
name_1
(_2: name_4)
crates/ty_python_semantic/resources/corpus/cyclic_type_alias.py:10
Function
name_1
()
crates/ty_python_semantic/resources/corpus/classliteral_decorators_cycle.py:11
Function
name_10000_invalid
(b: &mut Bencher)
crates/ruff_unicode_names2/src/lib.rs:598
Function
name_2
(x: T)
crates/ty_python_semantic/resources/corpus/except_handler_with_Any_bound_typevar.py:3
Function
name_2
()
crates/ty_python_semantic/resources/corpus/88_regression_pr_20962.py:6
Function
name_3
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_params.py:17
Function
name_3
()
crates/ty_python_semantic/resources/corpus/cyclic_symbol_in_comprehension.py:23
Function
name_3
()
crates/ty_python_semantic/resources/corpus/classliteral_decorators_cycle.py:15
Function
name_4
()
crates/ty_python_semantic/resources/corpus/cyclic_lambdas.py:23
Function
name_all_valid
(b: &mut Bencher)
crates/ruff_unicode_names2/src/lib.rs:618
Method
name_and_code
Return the rule's name, followed by its code in parentheses when available. For example: ```text unused-import (F401) ``` When formatted with the `
crates/ruff_linter/src/registry.rs:404
Function
name_basic
(b: &mut Bencher)
crates/ruff_unicode_names2/src/lib.rs:584
Function
name_cjk_unified_ideograph
()
crates/ruff_unicode_names2/src/lib.rs:532
Method
name_expr
(self)
crates/ruff_python_ast/src/generated.rs:2656
Function
name_fields
(node: &ast::ExprName)
crates/ruff_python_ast/src/comparable.rs:1386
Function
name_hangul_syllable
()
crates/ruff_unicode_names2/src/lib.rs:493
Function
name_keys_ignore_context_location_and_node_index
()
crates/ruff_python_ast_integration_tests/tests/comparable.rs:70
Function
name_range_with_comments
()
crates/ruff_python_formatter/src/expression/expr_name.rs:39
Function
name_to_string
()
crates/ruff_unicode_names2/src/lib.rs:475
Function
named_catch_all_match_case
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:500
Function
named_expr
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_0.py:137
Method
named_expr
(self)
crates/ruff_python_ast/src/generated.rs:1657
Function
named_field_struct
()
crates/ruff_cache/tests/cache_key.rs:22
Function
named_fields
(node: &ast::ExprNamed)
crates/ruff_python_ast/src/comparable.rs:1035
Method
named_tuple_ancestors
( db: &'db dyn Db, class: StaticClassLiteral<'db>, )
crates/ty_python_semantic/src/types/class/static_literal.rs:928
Function
named_types_classes
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:4601
Function
namedtuple_methods
()
crates/ty_ide/src/completion.rs:5351
Function
namedtuple_prepare_and_supertypes_inline
()
crates/ty_ide/src/type_hierarchy.rs:513
Function
namedtuple_prepare_and_supertypes_variable_definition
()
crates/ty_ide/src/type_hierarchy.rs:491
Function
namedtuple_subtypes_of_namedtuple
()
crates/ty_ide/src/type_hierarchy.rs:546
Function
namedtuple_subtypes_of_tuple
()
crates/ty_ide/src/type_hierarchy.rs:565
Function
names_declared_in_except_blocks
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1076
Function
namespace
(bencher: Bencher, scenario: &Scenario)
crates/ruff_benchmark/benches/ty_ide.rs:497
Method
namespace_package
( db: &'db dyn Db, resolver_environment: ResolverEnvironment<'db>, name: Cow<'_, Modul
crates/ty_module_resolver/src/module.rs:48
Function
namespace_package_precedence
()
crates/ty_module_resolver/src/list.rs:1324
Method
narrow_type_by_len
Narrow a type based on `len()`, only narrowing the parts that are safe to narrow. For narrowable types (literals, tuples), we apply `~AlwaysFalsy` (p
crates/ty_python_semantic/src/types/narrow.rs:3599
Method
narrow_type_by_len_comparison
Filter a type based on a comparison against an integer length. Equality comparisons specialize exact tuple types to the observed length. Other compar
crates/ty_python_semantic/src/types/narrow.rs:3668
Method
narrowable_ast
(expr: &ast::Expr)
crates/ty_python_semantic/src/types/narrow.rs:4062
Function
ndpointer
Array-checking restype/argtypes. An ndpointer instance is used to describe an ndarray in restypes and argtypes specifications. This app
crates/ruff_benchmark/resources/numpy/ctypeslib.py:235
Function
nearby_fix_edits_share_diff_frame
()
crates/ruff_db/src/diagnostic/render/full.rs:1126
Function
needs_parentheses
( )
crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/parentheses.py:1
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/pattern/pattern_match_or.rs:54
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/pattern/pattern_match_mapping.rs:97
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/pattern/pattern_match_sequence.rs:65
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/pattern/pattern_match_as.rs:55
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/pattern/pattern_match_singleton.rs:21
Method
needs_parentheses
( &self, parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/pattern/pattern_match_value.rs:22
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/pattern/pattern_match_star.rs:30
Method
needs_parentheses
( &self, _parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/pattern/pattern_match_class.rs:36
Method
needs_parentheses
( &self, parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_named.rs:49
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_number_literal.rs:55
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_list_comp.rs:46
Method
needs_parentheses
( &self, parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_generator.rs:82
Method
needs_parentheses
( &self, _parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_attribute.rs:204
Method
needs_parentheses
( &self, _parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_string_literal.rs:67
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_list.rs:43
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_dict_comp.rs:77
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_boolean_literal.rs:21
Method
needs_parentheses
( &self, parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_yield.rs:40
Method
needs_parentheses
( &self, parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_yield_from.rs:18
Method
needs_parentheses
( &self, _parent: ruff_python_ast::AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_ipy_escape_command.rs:17
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_set_comp.rs:46
Method
needs_parentheses
( &self, parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_compare.rs:22
Method
needs_parentheses
( &self, parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_unary_op.rs:78
Method
needs_parentheses
( &self, _parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_f_string.rs:36
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_none_literal.rs:17
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_ellipsis_literal.rs:17
Method
needs_parentheses
( &self, parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_bin_op.rs:21
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_set.rs:37
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_dict.rs:67
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_tuple.rs:226
Method
needs_parentheses
( &self, parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_subscript.rs:84
Method
needs_parentheses
( &self, _parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_bytes_literal.rs:34
Method
needs_parentheses
( &self, parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_if.rs:87
Method
needs_parentheses
( &self, parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_await.rs:35
Method
needs_parentheses
( &self, _parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_t_string.rs:36
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_starred.rs:30
Method
needs_parentheses
( &self, _parent: AnyNodeRef, context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_call.rs:76
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_name.rs:24
Method
needs_parentheses
( &self, parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_bool_op.rs:20
Method
needs_parentheses
( &self, _parent: AnyNodeRef, _context: &PyFormatContext, )
crates/ruff_python_formatter/src/expression/expr_slice.rs:278
Method
negate_if
(self, condition: bool)
crates/ty_python_core/src/lib.rs:1028
Method
negated
(self)
crates/ty_python_semantic/src/types/constraints.rs:4942
Function
negated_per_file_ignores
()
crates/ruff/tests/cli/lint.rs:2063
Function
negated_per_file_ignores_absolute
()
crates/ruff/tests/cli/lint.rs:2095
Function
negated_per_file_ignores_overlap
()
crates/ruff/tests/cli/lint.rs:2128
← previous
next →
25,101–25,200 of 31,562, ranked by callers