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
Function
invalid_python_environment_preserves_valid_configuration
()
crates/ty_server/tests/e2e/configuration.rs:145
Function
invalid_python_requirement_reports_configuration_error
()
crates/ty/tests/cli/scripts.rs:1252
Function
invalid_range_deserialization
()
crates/ruff_text_size/tests/serde.rs:64
Function
invalid_rule_code_external_rules
(path: &Path)
crates/ruff_linter/src/rules/ruff/mod.rs:655
Function
invalid_script_environment_reports_configuration_error
()
crates/ty/tests/cli/scripts.rs:1420
Function
invalid_script_environment_retains_configured_platform_for_hover
()
crates/ty_server/tests/e2e/hover.rs:44
Function
invalid_script_retains_valid_environment_settings_for_hover
()
crates/ty_server/tests/e2e/hover.rs:96
Function
invalid_script_search_paths_do_not_blame_python_environment
()
crates/ty/tests/cli/scripts.rs:1468
Function
invalid_section_ranges_panic
()
crates/ty_ide/src/docstring/markdown/structured.rs:945
Method
invalid_star_expression
Emit a [`SemanticSyntaxErrorKind::InvalidStarExpression`] if `expr` is starred.
crates/ruff_python_parser/src/semantic_errors.rs:555
Method
invalid_syntax
Creates a `Diagnostic` for a syntax error. Unlike the more general [`Diagnostic::new`], this requires a [`Span`] and a [`TextRange`] attached to it.
crates/ruff_db/src/diagnostic/mod.rs:91
Function
invalid_syntax_with_syntax_errors_disabled
()
crates/ty_server/tests/e2e/pull_diagnostics.rs:365
Function
invalid_syntax_with_syntax_errors_disabled
()
crates/ty_server/tests/e2e/notebook.rs:721
Function
invalid_syntax_with_syntax_errors_disabled
()
crates/ty_server/tests/e2e/publish_diagnostics.rs:917
Function
invalid_toml_reports_configuration_error
()
crates/ty/tests/cli/scripts.rs:1180
Function
invalid_trigger_rule_task
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR301_args.py:275
Method
invalid_type_alias_message
(reference: &ast::Expr)
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:393
Function
invalid_type_ignore_valid_type_ignore
()
crates/ty_python_semantic/src/suppression/parser.rs:379
Function
invalid_typeshed_versions_bad_colon_number
()
crates/ty_module_resolver/src/typeshed.rs:566
Function
invalid_typeshed_versions_bad_hyphen_number
()
crates/ty_module_resolver/src/typeshed.rs:606
Function
invalid_typeshed_versions_bad_period_number
()
crates/ty_module_resolver/src/typeshed.rs:631
Function
invalid_typeshed_versions_non_digits
()
crates/ty_module_resolver/src/typeshed.rs:662
Function
invalid_typeshed_versions_non_identifier_modules
()
crates/ty_module_resolver/src/typeshed.rs:584
Method
invalid_variable_type_expression_message
(reference: &ast::Expr)
crates/ty_python_semantic/src/types/infer/builder/type_expression.rs:386
Method
invoke_descriptor_protocol
Implementation of the descriptor protocol. This method roughly performs the following steps: - Look up the attribute `name` on the meta-type of `sel
crates/ty_python_semantic/src/types.rs:5708
Method
ipy_escape_command_expr
(self)
crates/ruff_python_ast/src/generated.rs:2804
Function
ipy_escape_command_fields
(node: &ast::ExprIpyEscapeCommand)
crates/ruff_python_ast/src/comparable.rs:1445
Method
ipy_escape_command_stmt
(self)
crates/ruff_python_ast/src/generated.rs:1263
Method
ipy_notebook
(notebook: Notebook)
crates/ruff_linter/src/source_kind.rs:30
Function
ipython_escape_command_expression_values
()
crates/ruff_python_parser/src/parser/tests.rs:194
Function
ipython_escape_command_line_continuation_eol
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:1834
Function
ipython_escape_command_line_continuation_with_eol_and_eof
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:1854
Function
ipython_escape_command_values
()
crates/ruff_python_parser/src/parser/tests.rs:163
Method
irrefutable_match_case
(stmt: &ast::StmtMatch, ctx: &Ctx)
crates/ruff_python_parser/src/semantic_errors.rs:834
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:504
Method
is_allowed
(self)
crates/ruff_python_semantic/src/model.rs:2611
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:1031
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:3571
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:1042
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:593
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:172
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:3427
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:2850
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:397
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:1672
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:664
Function
is_empty_or_null_interpolated_string_element
(element: &ast::InterpolatedStringElement)
crates/ruff_linter/src/rules/flake8_pytest_style/helpers.rs:138
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:1934
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
← previous
next →
23,201–23,300 of 31,766, ranked by callers