MCPcopy Create free account

hub / github.com/astral-sh/ruff / functions

Functions31,562 in github.com/astral-sh/ruff

Methodirrefutable_match_case
(stmt: &ast::StmtMatch, ctx: &Ctx)
crates/ruff_python_parser/src/semantic_errors.rs:824
Methodirrelevant
()
crates/ruff_linter/src/rules/flake8_commas/rules/trailing_commas.rs:51
Methodis_active
(&self)
crates/ty_python_semantic/src/types.rs:503
Methodis_allowed
(self)
crates/ruff_python_semantic/src/model.rs:2582
Methodis_allowed_explicit_path
(path: &str)
crates/mdtest/src/parser.rs:362
Functionis_allowed_math_attribute
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs:269
Functionis_allowed_negated_math_attribute
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/flake8_pyi/rules/simple_defaults.rs:262
Methodis_ann_assign_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:629
Functionis_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
Methodis_assert_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:925
Methodis_assign_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:555
Methodis_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
Methodis_async
(&self)
crates/ty_python_core/src/definition.rs:1307
Methodis_aug_assign_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:592
Methodis_await_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2059
Methodis_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
Functionis_blocking_http_call
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/flake8_async/rules/blocking_http_call.rs:52
Functionis_blocking_sleep
(qualified_name: &QualifiedName)
crates/ruff_linter/src/rules/flake8_async/rules/blocking_sleep.rs:49
Methodis_bogus
(&self)
crates/ruff_formatter/src/format_element/tag.rs:416
Methodis_bool
(self)
crates/ty_python_semantic/src/types/class/known.rs:311
Methodis_bool_op_expr
(&self)
crates/ruff_python_ast/src/generated.rs:1615
Methodis_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
Methodis_bound
Is the place given a value in its containing scope?
crates/ty_python_core/src/member.rs:39
Methodis_bound_parameter
(&self, name: &str)
crates/ty_python_core/src/builder.rs:6037
Methodis_bound_parameter
(&self, name: &str)
crates/ruff_linter/src/checkers/ast/mod.rs:1032
Methodis_class_def_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:407
Methodis_comment
(self)
crates/ruff_python_trivia/src/tokenizer.rs:496
Methodis_connected
(self)
crates/ruff_linter/resources/test/fixtures/pyflakes/F841_0.py:136
Methodis_constant_name
(name: &str)
crates/ty_ide/src/semantic_tokens.rs:374
Methodis_constant_name
(name: &str)
crates/ty_ide/src/symbols.rs:1234
Methodis_constraint_set_subtype_of_impl
(db: &'db dyn Db, types: TypePair<'db>)
crates/ty_python_semantic/src/types/relation.rs:592
Methodis_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
Methodis_cycle
(&self)
crates/ty_python_semantic/src/types/mro.rs:787
Methodis_cycle_initial
(&self)
crates/ty_python_semantic/src/types/signatures.rs:193
Methodis_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
Methodis_dataclass_like
(self)
crates/ty_python_semantic/src/types/class.rs:330
Methodis_declared
Is the place declared in its containing scope?
crates/ty_python_core/src/member.rs:44
Methodis_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
Methodis_definition_token
(token: &Token)
crates/ty_ide/src/completion.rs:1121
Methodis_delete_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:481
Methodis_deleted
Return `true` if this [`Binding`] was deleted.
crates/ruff_python_semantic/src/binding.rs:94
Methodis_deletion
(&self)
crates/ruff_diagnostics/src/edit.rs:81
Methodis_deprecated
Returns whether this type is marked as deprecated via `@warnings.deprecated`.
crates/ty_python_semantic/src/types.rs:2851
Methodis_dict_comp_expr
(&self)
crates/ruff_python_ast/src/generated.rs:1985
Methodis_directory
(&self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:92
Methodis_directory
Returns `true` if `path` exists and is a directory.
crates/ruff_db/src/system.rs:154
Methodis_directory_included
(self, db: &dyn Db, path: &SystemPath)
crates/ty_project/src/lib.rs:396
Methodis_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
Methodis_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
Methodis_docstring_statement
(stmt: &StmtExpr, context: &PyFormatContext)
crates/ruff_python_formatter/src/statement/suite.rs:822
Methodis_dynamic
(db: &dyn Db, ty: Type<'_>)
crates/ty_python_semantic/src/types/list_members.rs:182
Methodis_empty
(self)
crates/ruff_text_size/src/range.rs:142
Methodis_empty
(&self)
crates/ty_python_core/src/narrowing_constraints.rs:113
Methodis_empty
(&self)
crates/ty_python_semantic/src/types/abstract_methods.rs:242
Methodis_empty
(&self)
crates/ruff_linter/src/linter.rs:91
Methodis_empty
(&self)
crates/ruff_index/src/slice.rs:64
Methodis_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
Functionis_empty_or_null_interpolated_string_element
(element: &ast::InterpolatedStringElement)
crates/ruff_linter/src/rules/flake8_pytest_style/helpers.rs:141
Methodis_enabled
(self)
crates/ruff_formatter/src/printer/printer_options/mod.rs:110
Methodis_equivalent_to_object_inner
( db: &'db dyn Db, protocol: ProtocolInstanceType<'db>, _: (), )
crates/ty_python_semantic/src/types/instance.rs:1889
Methodis_error
(self)
crates/ty_python_semantic/src/lint.rs:58
Methodis_exclude
Returns `true` if the match result is [`ModuleNameMatch::Exclude`].
crates/ty_module_resolver/src/module_glob.rs:217
Methodis_executable
(&self, path: &SystemPath)
crates/ruff_db/src/system/memory_fs.rs:117
Methodis_explicit_any_base
Return whether this is an explicit `Any` base.
crates/ty_python_semantic/src/types/class_base.rs:124
Methodis_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
Functionis_fastapi_route
(binding: &Binding, semantic: &SemanticModel)
crates/ruff_python_semantic/src/analyze/typing.rs:1144
Methodis_fastapi_route_constructor
(semantic: &SemanticModel, expr: &Expr)
crates/ruff_python_semantic/src/analyze/typing.rs:980
Functionis_file
()
crates/ruff_db/src/system/memory_fs.rs:765
Methodis_file
(&self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:97
Methodis_file
Returns `true` if `path` exists and is a file.
crates/ruff_db/src/system.rs:160
Methodis_file_included
( &self, path: &SystemPath, mode: GlobFilterCheckMode, )
crates/ty_project/src/glob.rs:54
Methodis_file_open
(&self, path: &FilePath)
crates/ty_server/src/system.rs:190
Methodis_file_open
(&self, path: &FilePath)
crates/ty_wasm/src/lib.rs:1643
Methodis_generator_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2022
Methodis_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
Methodis_global_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1036
Methodis_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
Methodis_gradual_variadic_parameter
(parameters: &Parameters<'db>, parameter_index: usize)
crates/ty_python_semantic/src/types/call/bind.rs:7806
Methodis_hard
(&self)
crates/ruff_formatter/src/format_element.rs:122
Methodis_hashable
Return `true` if this is the standard-library `Hashable` protocol.
crates/ty_python_semantic/src/types/instance.rs:1709
Functionis_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
Functionis_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
Functionis_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
Methodis_if_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:740
Methodis_implicit
(&self)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:861
Methodis_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
Methodis_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
Methodis_instance_of
Return `true` if this symbol is an instance of `class`.
crates/ty_python_semantic/src/types/known_instance.rs:570
Methodis_instance_of
Return `true` if this symbol is an instance of `class`.
crates/ty_python_semantic/src/types/special_form.rs:245
Methodis_interpolated_string
(self)
crates/ruff_python_ast/src/expression.rs:93
Methodis_interpolated_string_element
(self)
crates/ruff_python_ast/src/generated.rs:7385
Methodis_intersection
(self)
crates/ty_python_semantic/src/types.rs:3284
Methodis_ipy_escape_command_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2799
Functionis_iterator
Returns `true` if the given name is that of a Python builtin iterator.
crates/ruff_python_stdlib/src/builtins.rs:453
Methodis_lazy
Return `true` if this binding was imported lazily, including through `__lazy_modules__`.
crates/ruff_python_semantic/src/binding.rs:70
Methodis_line
Whether this annotation is a vertical line placeholder.
crates/ruff_annotate_snippets/src/renderer/render.rs:2498
Methodis_literal
(&self)
crates/ruff_python_ast/src/generated.rs:2978
Methodis_magic_cell
Returns `true` if a cell should be ignored due to the use of cell magics.
crates/ruff_notebook/src/cell.rs:84
Methodis_match_as
(&self)
crates/ruff_python_ast/src/generated.rs:3332
Methodis_match_class
(&self)
crates/ruff_python_ast/src/generated.rs:3258
← previousnext →23,101–23,200 of 31,562, ranked by callers