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
Function
treats_unmatched_backticks_as_plain_parenthetical_text
()
crates/ty_ide/src/docstring/document/syntax.rs:840
Method
tree
(db: &'db dyn Db, file: ProgramFile<'db>)
crates/ty_ide/src/symbols.rs:736
Method
tree_fold
Combine an iterator of nodes into a single node using an associative operator. Because the operator is associative, we don't have to combine the node
crates/ty_python_semantic/src/types/constraints.rs:2712
Function
trickier_fix_for_this_one
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B004.py:18
Function
tricky
()
crates/ruff_linter/src/rules/flake8_import_conventions/mod.rs:199
Method
tricky_asserts
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/composition.py:98
Method
tricky_asserts
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/composition_no_trailing_comma.py:98
Function
tricky_unicode
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:135
Function
trim_ascii_annotate_ascii_end_no_label
()
crates/ruff_annotate_snippets/tests/formatter.rs:3202
Function
trim_ascii_annotate_ascii_end_with_label
()
crates/ruff_annotate_snippets/tests/formatter.rs:3173
Function
trim_unicode_annotate_ascii_end_no_label
()
crates/ruff_annotate_snippets/tests/formatter.rs:3043
Function
trim_unicode_annotate_ascii_end_with_label
()
crates/ruff_annotate_snippets/tests/formatter.rs:3014
Function
trim_unicode_annotate_unicode_end_no_label
()
crates/ruff_annotate_snippets/tests/formatter.rs:3096
Function
trim_unicode_annotate_unicode_end_with_label
()
crates/ruff_annotate_snippets/tests/formatter.rs:3067
Function
trim_unicode_annotate_unicode_middle_no_label
()
crates/ruff_annotate_snippets/tests/formatter.rs:3149
Function
trim_unicode_annotate_unicode_middle_with_label
()
crates/ruff_annotate_snippets/tests/formatter.rs:3120
Function
trimmed_context
()
crates/ruff_db/src/diagnostic/render.rs:1592
Function
trimmed_multiline_suggestion
()
crates/ruff_annotate_snippets/tests/formatter.rs:4746
Function
trimmed_multiline_suggestion_elided_lines
()
crates/ruff_annotate_snippets/tests/formatter.rs:4854
Function
trio_path_in_foo
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC240.py:40
Function
triple_exact_overlap
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:319
Function
triple_overlap
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:257
Method
triple_quoted
For triple quoted strings, the preferred quote style can't be used if the string contains a tripled of the quote character (e.g., if double quotes are
crates/ruff_python_formatter/src/string/normalize.rs:494
Function
triple_quoted_bytes
b""" not a docstring
crates/ruff_python_formatter/resources/test/fixtures/black/cases/bytes_docstring.py:7
Function
triple_quoted_bytes2
b''' also not a docstring
crates/ruff_python_formatter/resources/test/fixtures/black/cases/bytes_docstring.py:10
Function
triple_quoted_eol
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:2265
Function
triple_quoted_multiline_string_containing_comment
()
crates/ruff_python_trivia_integration_tests/tests/simple_tokenizer.rs:282
Method
triple_quotes
(self)
crates/ruff_python_ast/src/token.rs:798
Function
triple_single_quotes_raw
r'''Summary.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:306
Function
triple_single_quotes_raw_uppercase
R'''Summary.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:311
Function
tripled_quoted
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:36
Function
trivia
()
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:631
Function
trivial
()
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:2
Function
trivial
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:202
Function
trivial_disjointness_does_not_claim_bounded_typevar_class_is_disjoint
()
crates/ty_python_semantic/src/types/constraints.rs:5629
Function
trivial_disjointness_implies_full_disjointness
()
crates/ty_python_semantic/src/types/constraints.rs:5651
Function
trivial_satisfaction_only_recognizes_terminals
()
crates/ty_python_semantic/src/types/constraints.rs:6076
Function
troz
Indentation with tabs is just as OK
crates/ruff_python_formatter/resources/test/fixtures/black/cases/docstring.py:33
Function
truncated_diff
()
crates/ruff_dev/src/generate_all.rs:115
Function
truncated_string_literals_become_literal_string
()
crates/ty_python_semantic/src/types/infer/tests.rs:381
Method
truthiness
Determine whether the operands can compare equal without visiting every pair. A lexicographic tuple comparison reaches later elements only if the pre
crates/ty_python_semantic/src/types/literal.rs:483
Method
truthiness_from_condition
( expression: &ast::Expr, condition: &RedundantCondition<'_, '_>, )
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/mod.rs:284
Function
truthiness_short_circuit
( left: Truthiness, right: Truthiness, expected_and: Truthiness, expected_or:
crates/ty_python_core/src/lib.rs:1261
Method
try_apply_type_mapping_for_paramspec
( db: &'db dyn Db, self_signature: &Signature<'db>, prefix_parameters: &[P
crates/ty_python_semantic/src/types/signatures.rs:328
Method
try_await_notification
Wait for a notification of the specified type from the server and return its parameters. The caller should ensure that the server is expected to send
crates/ty_server/tests/e2e/main.rs:535
Method
try_await_notification
Wait for a notification of the specified type from the server and return its parameters. The caller should ensure that the server is expected to send
crates/ruff_server/tests/e2e/main.rs:473
Method
try_await_request
( &mut self, timeout: Option<Duration>, )
crates/ty_server/tests/e2e/main.rs:694
Method
try_await_request
( &mut self, timeout: Option<Duration>, )
crates/ruff_server/tests/e2e/main.rs:560
Method
try_await_response
Wait for a server response corresponding to the given request ID. This should only be called if a request was already sent to the server via [`send_r
crates/ty_server/tests/e2e/main.rs:469
Method
try_await_response
Wait for a server response corresponding to the given request ID. This should only be called if a request was already sent to the server via [`send_r
crates/ruff_server/tests/e2e/main.rs:407
Method
try_call_bin_op
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, left_ty: Type<'db>, op: ast:
crates/ty_python_semantic/src/types/call.rs:242
Method
try_call_bin_op_result
Memoize the return type and deprecations from binary dunder resolution, without retaining the full call bindings or repeating overload selection at ea
crates/ty_python_semantic/src/types/call.rs:218
Method
try_call_bin_op_result_impl
( db: &'db dyn Db, program: Program<'db>, left_ty: Type<'db>,
crates/ty_python_semantic/src/types/call.rs:226
Method
try_call_bin_op_with_policy
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, left_ty: Type<'db>, op: ast:
crates/ty_python_semantic/src/types/call.rs:259
Method
try_call_dunder_get
Try to call `__get__(None, owner)` on the type of this place (not on the meta type). If it succeeds, return the `__get__` return type. Otherwise, retu
crates/ty_python_semantic/src/place.rs:345
Method
try_call_dunder_get_inner
( db: &'db dyn Db, program: Program<'db>, ty: Type<'db>, insta
crates/ty_python_semantic/src/types.rs:5184
Method
try_call_dunder_get_on_attribute
Tries to call `__get__` on the attribute. The arguments passed to `__get__` depend on whether the owner is an instance or a class. See the `CPython` i
crates/ty_python_semantic/src/types/bound_super.rs:937
Method
try_call_dunder_member_impl
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, member: MemberLookupResult<'db>,
crates/ty_python_semantic/src/types.rs:8475
Method
try_call_rich_comparison_dunder
Return the result of dispatching a rich comparison method between two operands. A strict subclass on the right takes precedence over the normal metho
crates/ty_python_semantic/src/types/call.rs:156
Method
try_convert
Convert a string `.format` call to an f-string.
crates/ruff_linter/src/rules/pyupgrade/rules/f_strings.rs:248
Function
try_else
()
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:73
Function
try_else
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:327
Function
try_except
()
crates/ruff_python_formatter/src/comments/mod.rs:822
Function
try_except
()
crates/ruff_linter/src/rules/pylint/helpers.rs:621
Function
try_except
()
crates/ruff_linter/src/rules/pylint/rules/too_many_branches.rs:346
Function
try_except_else
()
crates/ruff_linter/src/rules/pylint/helpers.rs:635
Function
try_except_else
()
crates/ruff_linter/src/rules/pylint/rules/too_many_branches.rs:359
Function
try_except_else_finally
()
crates/ruff_linter/src/rules/pylint/helpers.rs:651
Function
try_except_except
()
crates/ruff_linter/src/rules/pylint/helpers.rs:669
Function
try_except_except_else_finally
()
crates/ruff_linter/src/rules/pylint/rules/too_many_branches.rs:387
Function
try_except_except_else_finally
()
crates/ruff_linter/src/rules/pylint/rules/too_many_return_statements.rs:226
Function
try_except_except_finally
()
crates/ruff_linter/src/rules/pylint/helpers.rs:685
Function
try_except_finally_else
()
crates/ruff_python_formatter/src/comments/mod.rs:796
Method
try_extract
Parse a shebang directive from a line, or return `None` if the line does not contain a shebang directive.
crates/ruff_linter/src/comments/shebang.rs:15
Function
try_finally
()
crates/ruff_linter/src/rules/pylint/rules/too_many_branches.rs:374
Method
try_fix_from_diagnostic
( db: &dyn Db, diagnostic: &ruff_db::diagnostic::Diagnostic, encoding: PositionEncodin
crates/ty_server/src/server/api/diagnostics.rs:682
Method
try_from
(value: PythonVersion)
crates/ty_project/src/metadata/python_version.rs:102
Method
try_from
(options: DependencyMetadataOptions)
crates/ty_test/src/config.rs:234
Method
try_from
(value: &PositionEncodingKind)
crates/ty_server/src/document.rs:171
Method
try_from
(value: u8)
crates/ruff_formatter/src/lib.rs:131
Method
try_from
(style: QuoteStyle)
crates/ruff_python_formatter/src/string/mod.rs:63
Method
try_from
(value: &Span)
crates/ruff_db/src/files.rs:706
Method
try_from
(diagnostics: &Diagnostics, unsafe_fixes: UnsafeFixes)
crates/ruff/src/printer.rs:529
Method
try_from
(value: &PositionEncodingKind)
crates/ruff_server/src/edit.rs:93
Method
try_from
(value: ClientConfiguration)
crates/ruff_server/src/session/settings.rs:110
Method
try_from
(value: usize)
crates/ruff_text_size/src/size.rs:147
Method
try_from
(value: char)
crates/ruff_python_ast/src/str.rs:62
Method
try_from
(value: (i64, i64))
crates/ruff_python_ast/src/python_version.rs:115
Method
try_from
(value: &'a Expr)
crates/ruff_python_ast/src/expression.rs:182
Method
try_from
(ch: char)
crates/ruff_python_ast/src/nodes.rs:3947
Method
try_from
(node: AnyRootNodeRef<'a>)
crates/ruff_python_ast/src/generated.rs:7576
Method
try_from
(path: &Path)
crates/ruff_python_parser/tests/generate_inline_tests.rs:152
Method
try_from
(value: char)
crates/ruff_python_stdlib/src/open_mode.rs:133
Method
try_from
(level: Level)
crates/ty_python_semantic/src/lint.rs:84
Method
try_from
(value: u16)
crates/ruff_linter/src/line_width.rs:110
Method
try_from
(value: ast::PythonVersion)
crates/ruff_linter/src/settings/types.rs:53
Method
try_from
(value: &str)
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_comprehension_in_call.rs:211
Method
try_from
Returns the expected comparator for the given expression, if any.
crates/ruff_linter/src/rules/flake8_pyi/rules/unrecognized_version_info.rs:211
Method
try_from
(expr: &Expr)
crates/ruff_linter/src/rules/ruff/rules/invalid_index_type.rs:190
Method
try_from
(value: CmpOp)
crates/ruff_linter/src/rules/pycodestyle/rules/literal_comparisons.rs:21
← previous
next →
30,301–30,400 of 31,562, ranked by callers