MCPcopy Create free account

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

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

↓ 3 callersMethodintern_constraint
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, data: Constraint<
crates/ty_python_semantic/src/types/constraints.rs:1342
↓ 3 callersMethodintern_constraint_typevars
Interns all of the typevars mentioned in a constraint in a stable order.
crates/ty_python_semantic/src/types/constraints.rs:1310
↓ 3 callersMethodintern_source_order
(&mut self, data: SourceOrder)
crates/ty_python_semantic/src/types/constraints.rs:1452
↓ 3 callersFunctioninterpolation_fields
(node: &ast::InterpolatedElement)
crates/ruff_python_ast/src/comparable.rs:825
↓ 3 callersMethodinto_all_elements_with_kind
(self)
crates/ty_python_semantic/src/types/tuple.rs:1251
↓ 3 callersMethodinto_branches
(self)
crates/ty_python_core/src/builder.rs:229
↓ 3 callersMethodinto_diagnostic
Convert the violation into a [`Diagnostic`].
crates/ruff_linter/src/violation.rs:74
↓ 3 callersMethodinto_dynamic
(self)
crates/ty_python_semantic/src/types/subclass_of.rs:568
↓ 3 callersMethodinto_fixed_length
(self)
crates/ty_python_semantic/src/types/tuple.rs:122
↓ 3 callersMethodinto_fragments
(self)
crates/ty_ide/src/docstring/document.rs:115
↓ 3 callersMethodinto_iter
(self)
crates/ruff_python_formatter/src/comments/map.rs:340
↓ 3 callersMethodinto_iter
(self)
crates/ty_python_semantic/src/types/typed_dict.rs:3252
↓ 3 callersMethodinto_path
The full path that this entry represents. Analogous to [`DirectoryEntry::path`], but moves ownership of the path.
crates/ruff_db/src/system/walk_directory.rs:178
↓ 3 callersMethodinto_place_and_conflicting_declarations
( self, )
crates/ty_python_semantic/src/place.rs:1055
↓ 3 callersMethodinto_protocol_class
Returns `Some` if this is a protocol class, `None` otherwise.
crates/ty_python_semantic/src/types/protocol_class.rs:44
↓ 3 callersMethodinto_type
(self)
crates/ty_python_semantic/src/types/union_type_instance.rs:100
↓ 3 callersMethodinvalid_assignment_to_final_attribute
( &self, object_ty: Type<'db>, target: &ast::ExprAttribute, attribute: &str,
crates/ty_python_semantic/src/types/infer/builder/final_attribute.rs:93
↓ 3 callersFunctioninvalid_script_metadata_diagnostic
( file: File, message: impl std::fmt::Display, range: Option<TextRange>, )
crates/ty_project/src/script.rs:420
↓ 3 callersMethodinvalidate_narrowing_aliases_for
Invalidate any narrowing aliases affected by a new definition of `place`.
crates/ty_python_core/src/builder.rs:1173
↓ 3 callersFunctionis_airflow_task
Returns `true` if the given function is decorated with `@airflow.decorators.task` (or `@airflow.sdk.task`), including variant forms like `@task.branch
crates/ruff_linter/src/rules/airflow/helpers.rs:313
↓ 3 callersMethodis_always_unbound
(&self)
crates/ty_python_core/src/use_def/place_state.rs:325
↓ 3 callersFunctionis_ambiguous_name
Returns `true` if the name should be considered "ambiguous".
crates/ruff_linter/src/rules/pycodestyle/helpers.rs:4
↓ 3 callersMethodis_any_namespace_package
Is this some kind of namespace package?
crates/ty_module_resolver/src/resolve.rs:1359
↓ 3 callersMethodis_available
Return `true` if `member` is an "available" symbol, i.e., a symbol that has not been bound in the current scope currently being visited, or in any con
crates/ruff_python_semantic/src/model.rs:448
↓ 3 callersMethodis_boolean_test_root
Return `true` if `expression` is an outermost "boolean test". A boolean test is an expression that Python tests for truthiness, such as an `if` condi
crates/ty_python_core/src/lib.rs:643
↓ 3 callersMethodis_bytes
(self)
crates/ty_python_semantic/src/types/literal.rs:264
↓ 3 callersFunctionis_cjk_unified_ideograph
(ch: char)
crates/ruff_unicode_names2/src/lib.rs:74
↓ 3 callersMethodis_class_var
Returns `true` if the place has a `ClassVar` type qualifier.
crates/ty_python_semantic/src/place.rs:1104
↓ 3 callersFunctionis_class_var_annotation
Returns `true` if the given [`Expr`] is a `typing.ClassVar` annotation.
crates/ruff_linter/src/rules/ruff/helpers.rs:58
↓ 3 callersMethodis_classmethod_like
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/callable.rs:898
↓ 3 callersMethodis_code
(&self)
crates/ty_ide/src/docstring/markdown/general.rs:484
↓ 3 callersFunctionis_collection_literal
(expression: &ast::Expr)
crates/ty_python_semantic/src/types/infer/builder.rs:13300
↓ 3 callersMethodis_complete
Whether all keyword values were captured at the call site, rather than described by a type.
crates/ty_python_semantic/src/types/call/arguments.rs:373
↓ 3 callersMethodis_constraint_set_subtype_of
Return true if this type is a subtype of `target` for every specialization of the type variables in either type.
crates/ty_python_semantic/src/types/relation.rs:586
↓ 3 callersFunctionis_context_variable
Check if an expression is a valid Airflow context variable.
crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs:1244
↓ 3 callersMethodis_continue_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1221
↓ 3 callersMethodis_cpython
(self)
crates/ty_site_packages/src/lib.rs:549
↓ 3 callersMethodis_declaration
True if this definition establishes a "declared type" for the place. If so, any assignments reached by this definition are in error if they assign a
crates/ty_python_core/src/definition.rs:908
↓ 3 callersMethodis_directory
(self)
crates/ruff_db/src/system.rs:338
↓ 3 callersFunctionis_document_excluded_for_linting
Return `true` if the document at the given [`Path`] should be excluded from linting.
crates/ruff_server/src/resolve.rs:10
↓ 3 callersFunctionis_dotted_identifier
Returns whether every component of `name` is a Python identifier. For example, this returns `true` for `"package.Type"` and `false` for `"package.1"`
crates/ty_ide/src/docstring/document/syntax.rs:37
↓ 3 callersFunctionis_dunder_all
Checks if the given expression is a name expression for `__all__`.
crates/ty_ide/src/symbols.rs:1632
↓ 3 callersMethodis_empty
(&self)
crates/ruff_python_ast/src/nodes.rs:287
↓ 3 callersFunctionis_empty_or_null_string
(expr: &Expr)
crates/ruff_linter/src/rules/flake8_pytest_style/helpers.rs:121
↓ 3 callersMethodis_enabled
(self)
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:578
↓ 3 callersMethodis_eof
(&self)
crates/ruff_python_trivia/src/cursor.rs:88
↓ 3 callersMethodis_escaped
Returns whether a preceding odd-length backslash run escapes this run.
crates/ty_ide/src/docstring/document/syntax.rs:448
↓ 3 callersMethodis_evidence
(self)
crates/ty_python_semantic/src/types/constraints/variables.rs:74
↓ 3 callersMethodis_exact
(&self)
crates/ty_python_semantic/src/types.rs:2320
↓ 3 callersMethodis_expanded
(&self)
crates/ruff_formatter/src/format_element.rs:140
↓ 3 callersMethodis_explicit_export
Return `true` if this [`Binding`] represents an explicit re-export (e.g., `FastAPI` in `from fastapi import FastAPI as FastAPI`).
crates/ruff_python_semantic/src/binding.rs:59
↓ 3 callersMethodis_expr_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1110
↓ 3 callersFunctionis_fastapi_route
Returns `true` if the function is a FastAPI route.
crates/ruff_linter/src/rules/fastapi/rules/mod.rs:14
↓ 3 callersFunctionis_fastapi_route_decorator
Returns `true` if the decorator is indicative of a FastAPI route.
crates/ruff_linter/src/rules/fastapi/rules/mod.rs:25
↓ 3 callersMethodis_file_included
Returns whether `path` is part of the project and included (see `included_paths_list`). Unlike [Self::files], this method does not respect `.gitignor
crates/ty_project/src/lib.rs:392
↓ 3 callersMethodis_first_statement_in_alternate_body
Returns `true` if `statement` is the first statement in an alternate `body` (e.g. the else of an if statement)
crates/ruff_python_ast/src/node.rs:727
↓ 3 callersMethodis_fixable
Whether or not the diagnostic for this message is fixable. This is rendered as a `[*]` indicator after the `id` in an annotation header, if the annot
crates/ruff_annotate_snippets/src/snippet.rs:224
↓ 3 callersMethodis_frozen
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:89
↓ 3 callersMethodis_function_literal
(&self)
crates/ty_python_semantic/src/types.rs:3311
↓ 3 callersMethodis_hierarchical
(self)
crates/ruff_workspace/src/resolver.rs:57
↓ 3 callersFunctionis_implicit_classmethod
Whether a function should implicitly be treated as a classmethod based on its name.
crates/ty_python_semantic/src/types/function.rs:259
↓ 3 callersMethodis_imported_qualifier
(self)
crates/ty_python_core/src/use_def/place_state.rs:126
↓ 3 callersMethodis_in_excluded
Returns `true` if the `in` keyword should be excluded from a comparison expression.
crates/ruff_python_parser/src/parser/expression.rs:3214
↓ 3 callersMethodis_included
(self)
crates/ty_project/src/glob.rs:143
↓ 3 callersMethodis_init
(self)
crates/ty_python_semantic/src/types/call/bind/constructor.rs:774
↓ 3 callersMethodis_initialization_pending
Returns whether diagnostics for `file` should wait for its first uv synchronization. A `false` result does not guarantee that initialization has fini
crates/ty_project/src/uv/environments.rs:181
↓ 3 callersMethodis_instance_attribute
Is the place an instance attribute?
crates/ty_python_core/src/member.rs:61
↓ 3 callersFunctionis_int
Test whether the given binding can be considered an integer.
crates/ruff_python_semantic/src/analyze/typing.rs:1074
↓ 3 callersFunctionis_invalid_typed_dict_literal
We avoid emitting invalid assignment diagnostic for literal assignments to a `TypedDict`, as they can only occur if we already failed to validate the
crates/ty_python_semantic/src/types/diagnostic.rs:1848
↓ 3 callersMethodis_known
Does this module represent the given known module?
crates/ty_module_resolver/src/module.rs:97
↓ 3 callersFunctionis_known_standard_library
This file is generated by `scripts/generate_known_standard_library.py`
crates/ruff_python_stdlib/src/sys/known_stdlib.rs:3
↓ 3 callersFunctionis_known_to_be_of_type_dict
(semantic: &SemanticModel, expr: &ExprName)
crates/ruff_python_semantic/src/analyze/typing.rs:50
↓ 3 callersMethodis_lambda_expr
(&self)
crates/ruff_python_ast/src/generated.rs:1763
↓ 3 callersMethodis_last
Whether this is the last line in the docstring or not.
crates/ruff_python_formatter/src/string/docstring.rs:629
↓ 3 callersMethodis_lazy
(&self)
crates/ty_project/src/files.rs:57
↓ 3 callersMethodis_lazy
(self)
crates/ty_python_core/src/scope.rs:210
↓ 3 callersFunctionis_literal_fallthrough_arm
(index: usize)
crates/ruff_benchmark/benches/ty.rs:1919
↓ 3 callersFunctionis_logical_line
(node: AnyNodeRef)
crates/ruff_python_formatter/src/range.rs:580
↓ 3 callersMethodis_match_star
(&self)
crates/ruff_python_ast/src/generated.rs:3295
↓ 3 callersMethodis_member
(self)
crates/ty_python_core/src/place.rs:477
↓ 3 callersFunctionis_named_tuple_assignment
Returns `true` if the statement is an assignment to a named tuple.
crates/ruff_linter/src/rules/pep8_naming/helpers.rs:27
↓ 3 callersMethodis_never_satisfied_with_limits
Budget exhaustion leaves satisfiability unknown and must not be cached as a result.
crates/ty_python_semantic/src/types/constraints.rs:2548
↓ 3 callersFunctionis_ngettext_call
Returns true if the function call is ngettext
crates/ruff_linter/src/rules/flake8_gettext/mod.rs:12
↓ 3 callersMethodis_non_divergent_dynamic
(&self)
crates/ty_python_semantic/src/types.rs:2810
↓ 3 callersMethodis_number_literal_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2392
↓ 3 callersFunctionis_object_or_unused
Return `true` if the [`Expr`] is the `object` builtin or the `_typeshed.Unused` type.
crates/ruff_linter/src/rules/flake8_pyi/rules/exit_annotations.rs:501
↓ 3 callersMethodis_off
(self)
crates/ty_server/src/session/options.rs:485
↓ 3 callersFunctionis_package
Return `true` if the directory at the given `Path` appears to be a Python package.
crates/ruff_linter/src/packaging.rs:28
↓ 3 callersMethodis_parameter_def
(&self)
crates/ty_python_core/src/definition.rs:1011
↓ 3 callersMethodis_pass_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1147
↓ 3 callersFunctionis_pattern_parenthesized
( pattern: &Pattern, comment_ranges: &CommentRanges, contents: &str, )
crates/ruff_python_formatter/src/pattern/mod.rs:108
↓ 3 callersMethodis_pending_narrowing
(&self)
crates/ty_python_semantic/src/types.rs:2469
↓ 3 callersFunctionis_pep_593_generic_type
Returns `true` if a call path is a [PEP 593] generic (e.g. `Annotated`). See: <https://docs.python.org/3/library/typing.html> [PEP 593]: https://pep
crates/ruff_python_stdlib/src/typing.rs:127
↓ 3 callersMethodis_positionally_bound
Returns `true` if the parameter at `parameter_index` is removed from the reduced signature because it was already supplied positionally to `functools.
crates/ty_python_semantic/src/types/signatures.rs:915
↓ 3 callersMethodis_private
(self)
crates/ty_python_core/src/scope.rs:192
↓ 3 callersFunctionis_private_attribute
Pydantic treats underscore-prefixed annotations as private instance attributes.
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:38
↓ 3 callersFunctionis_property_method
Identifies the actual implementation, rather than a method with the same name on a subclass.
crates/ty_python_semantic/src/types.rs:1584
↓ 3 callersMethodis_provisional_marker
(self)
crates/ty_python_semantic/src/types/typevar.rs:162
↓ 3 callersFunctionis_python_builtin
Returns `true` if the given name is that of a Python builtin. Intended to be kept in sync with [`python_builtins`].
crates/ruff_python_stdlib/src/builtins.rs:264
↓ 3 callersMethodis_python_notebook
Check if it's a Python notebook. This is determined by checking the `language_info` or `kernelspec` in the notebook metadata. If neither is present,
crates/ruff_notebook/src/notebook.rs:469
← previousnext →4,201–4,300 of 31,766, ranked by callers