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
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:5017
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
Function
negative_cases
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_1.py:14
Function
nested
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:145
Function
nested
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/comments.py:15
Function
nested
(x: int)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/allow_empty_first_line.py:81
Function
nested
()
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:79
Function
nested
(values)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET503.py:271
Function
nested
()
crates/ruff_linter/resources/test/fixtures/flake8_errmsg/EM.py:36
Function
nested
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF052_0.py:139
Function
nested
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF047_if.py:52
Function
nested
Do something nested.
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC201_google.py:69
Function
nested
Do something nested.
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC402_google.py:57
Function
nested
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY401.py:131
Function
nested
()
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY400.py:134
Function
nested
()
crates/ruff_linter/resources/test/fixtures/pep8_naming/N807.py:13
Function
nested
()
crates/ruff_linter/resources/test/fixtures/pep8_naming/ignore_names/N807.py:8
Method
nested
(self)
crates/ruff_linter/resources/test/fixtures/ruff/RUF066.py:18
Method
nested
Create a [`PackageRoot::Nested`] variant.
crates/ruff_linter/src/package.rs:29
Function
nested_and_tested
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E40.py:74
Function
nested_attribute_access1
()
crates/ty_ide/src/completion.rs:5995
Function
nested_attribute_access2
()
crates/ty_ide/src/completion.rs:6014
Function
nested_attribute_access3
()
crates/ty_ide/src/completion.rs:6036
Function
nested_attribute_access4
()
crates/ty_ide/src/completion.rs:6052
Function
nested_attribute_access5
()
crates/ty_ide/src/completion.rs:6072
Function
nested_b008
(a=random.randint(0, dt.datetime.now().year))
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:253
Function
nested_binary_expression
()
crates/ruff_python_formatter/src/comments/mod.rs:1057
Function
nested_binding_remains_precise_after_many_module_calls
()
crates/ty_python_semantic/src/types/infer/tests.rs:1087
Function
nested_calls_grow_stack
()
crates/ruff_python_parser/src/parser/tests.rs:422
Function
nested_class
()
crates/ruff_linter/src/rules/pylint/helpers.rs:579
Function
nested_class
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:1630
Function
nested_class_and_function_scope
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:2933
Function
nested_class_method_returning_dict
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:189
Function
nested_combo
(a=[float(3), dt.datetime.now()])
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:242
Function
nested_comprehension_capture_uses_intermediate_rebindings
()
crates/ty_python_semantic/src/types/ide_support/unused_bindings.rs:840
Method
nested_comprehension_scope
(self)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP008.py:57
Function
nested_comprehension_walrus_references_in_function
()
crates/ty_ide/src/find_references.rs:246
Function
nested_def
()
crates/ruff_linter/src/rules/pylint/helpers.rs:564
Function
nested_def
()
crates/ruff_linter/src/rules/pylint/rules/too_many_branches.rs:327
Function
nested_def_blocks_grow_stack
()
crates/ruff_python_parser/src/parser/tests.rs:402
Function
nested_def_ignored
()
crates/ruff_linter/src/rules/pylint/rules/too_many_return_statements.rs:167
Function
nested_directory_walk_root_uses_its_own_ignore_file
()
crates/ruff_db/src/system/os/ignore.rs:181
Function
nested_format_spec
(prefix: char, depth: usize)
crates/ruff_python_parser/src/string.rs:540
Function
nested_funcs
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:31
Function
nested_function_blank
()
crates/ty_ide/src/completion.rs:3963
Function
nested_function_not_in_global_scope_blank
()
crates/ty_ide/src/completion.rs:3995
Function
nested_function_not_in_global_scope_prefix
()
crates/ty_ide/src/completion.rs:3977
Function
nested_function_prefix
()
crates/ty_ide/src/completion.rs:3946
Function
nested_function_returning_dict
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR202.py:181
Function
nested_functions
()
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:62
Function
nested_functions
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:310
Function
nested_functions_nest_scope
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:2920
Function
nested_generator
()
crates/ruff_linter/resources/test/fixtures/pylint/stop_iteration_return.py:59
Function
nested_generators
()
crates/ty_python_core/src/lib.rs:1803
Function
nested_ifs
()
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:29
Function
nested_ifs
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:253
Function
nested_implicit_attribute_graphs_do_not_overflow_stack
()
crates/ty_python_semantic/src/types/infer/tests.rs:966
Function
nested_implicit_namespace_package
()
crates/ruff/tests/cli/lint.rs:3533
Function
nested_imports
()
crates/ruff/tests/analyze_graph.rs:758
Function
nested_in_expression
()
crates/ruff_linter/resources/test/fixtures/flake8_implicit_str_concat/ISC003_docstring.py:58
Function
nested_index_lookup
()
crates/ruff_linter/resources/test/fixtures/pylint/unnecessary_list_index_lookup.py:81
← previous
next →
25,301–25,400 of 31,766, ranked by callers