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
irrefutable_match_case
(stmt: &ast::StmtMatch, ctx: &Ctx)
crates/ruff_python_parser/src/semantic_errors.rs:824
Method
irrelevant
()
crates/ruff_linter/src/rules/flake8_commas/rules/trailing_commas.rs:51
Method
is_active
(&self)
crates/ty_python_semantic/src/types.rs:503
Method
is_allowed
(self)
crates/ruff_python_semantic/src/model.rs:2582
Method
is_allowed_explicit_path
(path: &str)
crates/mdtest/src/parser.rs:362
Function
is_allowed_math_attribute
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs:269
Function
is_allowed_negated_math_attribute
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs:262
Method
is_ann_assign_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:629
Function
is_arguments_huggable
Returns `true` if the arguments can hug directly to the enclosing parentheses in the call, as in Black's `hug_parens_with_braces_and_square_brackets`
crates/ruff_python_formatter/src/other/arguments.rs:172
Method
is_assert_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:925
Method
is_assign_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:555
Method
is_assignable_to
Returns whether this callable can stand in for `target`. The source overloads must collectively cover every target overload. In this stub, the two ov
crates/ty_python_semantic/src/types/callable.rs:1033
Method
is_async
(&self)
crates/ty_python_core/src/definition.rs:1307
Method
is_aug_assign_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:592
Method
is_await_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2059
Method
is_base_type_narrowable_by_len
Check if a type is directly narrowable by `len()` (without considering unions or intersections). In order for this to return `true`, we must know tha
crates/ty_python_semantic/src/types/narrow.rs:3569
Function
is_blocking_http_call
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/flake8_async/rules/blocking_http_call.rs:52
Function
is_blocking_sleep
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/flake8_async/rules/blocking_sleep.rs:49
Method
is_bogus
(&self)
crates/ruff_formatter/src/format_element/tag.rs:416
Method
is_bool
(self)
crates/ty_python_semantic/src/types/class/known.rs:311
Method
is_bool_op_expr
(&self)
crates/ruff_python_ast/src/generated.rs:1615
Method
is_boolean_test_root
Return `true` if `node` is one of the tests recorded in [`UseDefMapExtra::boolean_test_roots`]. See [`super::SemanticIndexBuilder::visit_boolean_test
crates/ty_python_core/src/use_def.rs:1201
Method
is_bound
Is the place given a value in its containing scope?
crates/ty_python_core/src/member.rs:39
Method
is_bound_parameter
(&self, name: &str)
crates/ty_python_core/src/builder.rs:6037
Method
is_bound_parameter
(&self, name: &str)
crates/ruff_linter/src/checkers/ast/mod.rs:1032
Method
is_class_def_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:407
Method
is_comment
(self)
crates/ruff_python_trivia/src/tokenizer.rs:496
Method
is_connected
(self)
crates/ruff_linter/resources/test/fixtures/pyflakes/F841_0.py:136
Method
is_constant_name
(name: &str)
crates/ty_ide/src/semantic_tokens.rs:374
Method
is_constant_name
(name: &str)
crates/ty_ide/src/symbols.rs:1234
Method
is_constraint_set_subtype_of_impl
(db: &'db dyn Db, types: TypePair<'db>)
crates/ty_python_semantic/src/types/relation.rs:592
Method
is_current_class_name
Whether `name` resolves to a class which the semantic model is traversing.
crates/ruff_linter/src/rules/flake8_self/rules/private_member_access.rs:271
Method
is_cycle
(&self)
crates/ty_python_semantic/src/types/mro.rs:787
Method
is_cycle_initial
(&self)
crates/ty_python_semantic/src/types/signatures.rs:193
Method
is_cyclically_defined_recursive
Return `true` if the class is cyclically defined. Also, populates `visited_classes` with all base classes of `class`.
crates/ty_python_semantic/src/types/class/static_literal.rs:3384
Method
is_dataclass_like
(self)
crates/ty_python_semantic/src/types/class.rs:330
Method
is_declared
Is the place declared in its containing scope?
crates/ty_python_core/src/member.rs:44
Method
is_deferred_type_alias
Return `true` if this [`Binding`] represents a [PEP 695] type alias e.g. `OptString` in: ```python type OptString = str | None ``` [PEP 695]: https:/
crates/ruff_python_semantic/src/binding.rs:172
Method
is_definition_token
(token: &Token)
crates/ty_ide/src/completion.rs:1121
Method
is_delete_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:481
Method
is_deleted
Return `true` if this [`Binding`] was deleted.
crates/ruff_python_semantic/src/binding.rs:94
Method
is_deletion
(&self)
crates/ruff_diagnostics/src/edit.rs:81
Method
is_deprecated
Returns whether this type is marked as deprecated via `@warnings.deprecated`.
crates/ty_python_semantic/src/types.rs:2851
Method
is_dict_comp_expr
(&self)
crates/ruff_python_ast/src/generated.rs:1985
Method
is_directory
(&self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:92
Method
is_directory
Returns `true` if `path` exists and is a directory.
crates/ruff_db/src/system.rs:154
Method
is_directory_included
(self, db: &dyn Db, path: &SystemPath)
crates/ty_project/src/lib.rs:396
Method
is_disjoint_from
Returns whether the operands prove that the unions must be distinct runtime objects.
crates/ty_python_semantic/src/types/union_type_instance.rs:206
Method
is_disjunctive
Whether expanding a factor can introduce alternatives, including through De Morgan's law.
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:1632
Method
is_docstring_statement
(stmt: &StmtExpr, context: &PyFormatContext)
crates/ruff_python_formatter/src/statement/suite.rs:822
Method
is_dynamic
(db: &dyn Db, ty: Type<'_>)
crates/ty_python_semantic/src/types/list_members.rs:182
Method
is_empty
(self)
crates/ruff_text_size/src/range.rs:142
Method
is_empty
(&self)
crates/ty_python_core/src/narrowing_constraints.rs:113
Method
is_empty
(&self)
crates/ty_python_semantic/src/types/abstract_methods.rs:242
Method
is_empty
(&self)
crates/ruff_linter/src/linter.rs:91
Method
is_empty
(&self)
crates/ruff_index/src/slice.rs:64
Method
is_empty_literal
Returns `true` if the node represents an empty f-string literal. Note that a [`FStringValue`] node will always have >= 1 [`FStringPart`]s inside it.
crates/ruff_python_ast/src/nodes.rs:651
Function
is_empty_or_null_interpolated_string_element
(element: &ast::InterpolatedStringElement)
crates/ruff_linter/src/rules/flake8_pytest_style/helpers.rs:141
Method
is_enabled
(self)
crates/ruff_formatter/src/printer/printer_options/mod.rs:110
Method
is_equivalent_to_object_inner
( db: &'db dyn Db, protocol: ProtocolInstanceType<'db>, _: (), )
crates/ty_python_semantic/src/types/instance.rs:1889
Method
is_error
(self)
crates/ty_python_semantic/src/lint.rs:58
Method
is_exclude
Returns `true` if the match result is [`ModuleNameMatch::Exclude`].
crates/ty_module_resolver/src/module_glob.rs:217
Method
is_executable
(&self, path: &SystemPath)
crates/ruff_db/src/system/memory_fs.rs:117
Method
is_explicit_any_base
Return whether this is an explicit `Any` base.
crates/ty_python_semantic/src/types/class_base.rs:124
Method
is_fallback_class
Return `true` if this class is a typeshed fallback class which is used to provide attributes and methods for another type (e.g. `NamedTupleFallback` f
crates/ty_python_semantic/src/types/class/known.rs:973
Function
is_fastapi_route
(binding: &Binding, semantic: &SemanticModel)
crates/ruff_python_semantic/src/analyze/typing.rs:1144
Method
is_fastapi_route_constructor
(semantic: &SemanticModel, expr: &Expr)
crates/ruff_python_semantic/src/analyze/typing.rs:980
Function
is_file
()
crates/ruff_db/src/system/memory_fs.rs:765
Method
is_file
(&self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:97
Method
is_file
Returns `true` if `path` exists and is a file.
crates/ruff_db/src/system.rs:160
Method
is_file_included
( &self, path: &SystemPath, mode: GlobFilterCheckMode, )
crates/ty_project/src/glob.rs:54
Method
is_file_open
(&self, path: &FilePath)
crates/ty_server/src/system.rs:190
Method
is_file_open
(&self, path: &FilePath)
crates/ty_wasm/src/lib.rs:1643
Method
is_generator_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2022
Method
is_global
Return `true` if this [`Binding`] represents a `global`. A [`Binding`] is a `global` if it's declared by a `global` statement, or shadows a [`Binding`
crates/ruff_python_semantic/src/binding.rs:89
Method
is_global_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1036
Method
is_gradual_paramspec_value
Return `true` if `callable` is the gradual `...` value for a `ParamSpec`. For example, in `Command[Any, ..., Any]`, the middle type argument is repre
crates/ty_python_semantic/src/types/relation.rs:3380
Method
is_gradual_variadic_parameter
(parameters: &Parameters<'db>, parameter_index: usize)
crates/ty_python_semantic/src/types/call/bind.rs:7806
Method
is_hard
(&self)
crates/ruff_formatter/src/format_element.rs:122
Method
is_hashable
Return `true` if this is the standard-library `Hashable` protocol.
crates/ty_python_semantic/src/types/instance.rs:1709
Function
is_identifier_continuation
Checks if the character c is a valid continuation character as described in <https://docs.python.org/3/reference/lexical_analysis.html#identifiers>.
crates/ruff_python_parser/src/lexer.rs:1547
Function
is_identifier_continuation
Checks if the character c is a valid continuation character as described in https://docs.python.org/3/reference/lexical_analysis.html#identifiers
crates/ruff_python_stdlib/src/identifiers.rs:35
Function
is_identifier_start
Checks if the character c is a valid starting character as described in https://docs.python.org/3/reference/lexical_analysis.html#identifiers
crates/ruff_python_stdlib/src/identifiers.rs:29
Method
is_if_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:740
Method
is_implicit
(&self)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:861
Method
is_implicit_concatenated
Returns `true` if the literal is either a string or bytes literal that is implicitly concatenated.
crates/ruff_python_ast/src/expression.rs:69
Method
is_incomparable_for_union
Return whether two distinct types can skip union redundancy and complement checks. A `true` result guarantees that neither type subsumes the other un
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:1150
Method
is_instance_of
Return `true` if this symbol is an instance of `class`.
crates/ty_python_semantic/src/types/known_instance.rs:570
Method
is_instance_of
Return `true` if this symbol is an instance of `class`.
crates/ty_python_semantic/src/types/special_form.rs:245
Method
is_interpolated_string
(self)
crates/ruff_python_ast/src/expression.rs:93
Method
is_interpolated_string_element
(self)
crates/ruff_python_ast/src/generated.rs:7385
Method
is_intersection
(self)
crates/ty_python_semantic/src/types.rs:3284
Method
is_ipy_escape_command_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2799
Function
is_iterator
Returns `true` if the given name is that of a Python builtin iterator.
crates/ruff_python_stdlib/src/builtins.rs:453
Method
is_lazy
Return `true` if this binding was imported lazily, including through `__lazy_modules__`.
crates/ruff_python_semantic/src/binding.rs:70
Method
is_line
Whether this annotation is a vertical line placeholder.
crates/ruff_annotate_snippets/src/renderer/render.rs:2498
Method
is_literal
(&self)
crates/ruff_python_ast/src/generated.rs:2978
Method
is_magic_cell
Returns `true` if a cell should be ignored due to the use of cell magics.
crates/ruff_notebook/src/cell.rs:84
Method
is_match_as
(&self)
crates/ruff_python_ast/src/generated.rs:3332
Method
is_match_class
(&self)
crates/ruff_python_ast/src/generated.rs:3258
← previous
next →
23,101–23,200 of 31,562, ranked by callers