MCPcopy Create free account

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

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

↓ 1 callersFunctionsubject_independent_definite_match_pattern_type
Return the definite-match type when it does not depend on the current subject type. `None` means that callers must use subject-aware analysis instead
crates/ty_python_semantic/src/types/match_pattern.rs:1297
↓ 1 callersMethodsubject_ty
Return the union of the contributions that alias the current subject.
crates/ty_python_semantic/src/types/narrow.rs:375
↓ 1 callersFunctionsubprocess_popen_preexec_fn
PLW1509
crates/ruff_linter/src/rules/pylint/rules/subprocess_popen_preexec_fn.rs:55
↓ 1 callersFunctionsubprocess_run_without_check
PLW1510
crates/ruff_linter/src/rules/pylint/rules/subprocess_run_without_check.rs:72
↓ 1 callersFunctionsubscript
(checker: &Checker, value: &Expr, expr: &Expr)
crates/ruff_linter/src/rules/pandas_vet/rules/subscript.rs:149
↓ 1 callersMethodsubscript
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, slice_ty: Type<'db>,
crates/ty_python_semantic/src/types/subscript.rs:647
↓ 1 callersMethodsubscript_for_string
Returns the subscript whose complete slice is this string.
crates/ty_ide/src/completion.rs:1040
↓ 1 callersFunctionsubscript_slice_to_string
Convert the given expression to a string representation, suitable to be a function argument.
crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs:250
↓ 1 callersFunctionsubscript_with_parenthesized_tuple
RUF031
crates/ruff_linter/src/rules/ruff/rules/incorrectly_parenthesized_tuple_in_subscript.rs:67
↓ 1 callersFunctionsubstitution_cost
Determine the "cost" of converting `string_a` to `string_b`.
crates/ty_python_semantic/src/diagnostic/levenshtein.rs:91
↓ 1 callersFunctionsubtypes
Sends a `typeHierarchy/subtypes` request.
crates/ty_server/tests/e2e/type_hierarchy.rs:190
↓ 1 callersMethodsubtyping_is_always_reflexive
Return `true` if subtyping is always reflexive for this type; `T <: T` is always true for any `T` of this type. This is true for fully static types,
crates/ty_python_semantic/src/types/relation.rs:322
↓ 1 callersFunctionsuccess
()
crates/ruff_linter/resources/test/fixtures/pylint/yield_from_in_async_function.py:1
↓ 1 callersMethodsuccessful_sequence_binding_type
Return the sequence type safe to assign to a binding created by the pattern. An exact tuple encodes immutable length and element types, so it can ret
crates/ty_python_semantic/src/types/narrow.rs:3198
↓ 1 callersMethodsuffix
(self)
crates/ty_site_packages/src/lib.rs:717
↓ 1 callersMethodsuffix_slice_index
(&self, index: Option<i32>)
crates/ty_python_semantic/src/types/tuple.rs:2002
↓ 1 callersMethodsuffix_stop
(self, tuple: &VariableLengthTuple<Type<'_>, VariableSegment<'_>>)
crates/ty_python_semantic/src/types/tuple.rs:1412
↓ 1 callersMethodsuggest_call
Add a suggestion and fix that they might have meant to call (and possibly also await) this function. It's true that calling the function might not ac
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/diagnostic.rs:1666
↓ 1 callersFunctionsuggested_to_move_to_provider_in_3
AIR312
crates/ruff_linter/src/rules/airflow/rules/suggested_to_move_to_provider_in_3.rs:114
↓ 1 callersFunctionsuite
Given a [`Stmt`] and its parent, return the [`ast::Suite`] that contains the [`Stmt`].
crates/ruff_python_ast/src/traversal.rs:5
↓ 1 callersMethodsummary_full_range_relative
Range of the summary line relative to [`Docstring::body`], including the trailing newline character.
crates/ruff_linter/src/docstrings/sections.rs:359
↓ 1 callersMethodsummary_range
The absolute range of the summary line, excluding any trailing newline character.
crates/ruff_linter/src/docstrings/sections.rs:354
↓ 1 callersFunctionsuper_call_with_parameters
UP008
crates/ruff_linter/src/rules/pyupgrade/rules/super_call_with_parameters.rs:73
↓ 1 callersFunctionsuper_without_brackets
PLW0245
crates/ruff_linter/src/rules/pylint/rules/super_without_brackets.rs:74
↓ 1 callersFunctionsuperfluous_elif_else
RET505, RET506, RET507, RET508
crates/ruff_linter/src/rules/flake8_return/rules/function.rs:723
↓ 1 callersFunctionsuperfluous_else_node
RET505, RET506, RET507, RET508
crates/ruff_linter/src/rules/flake8_return/rules/function.rs:690
↓ 1 callersFunctionsupported_code_actions
If `action_filter` is `None`, this returns [`SupportedCodeActionKind::all()`]. Otherwise, the list is filtered.
crates/ruff_server/src/server/api/requests/code_action.rs:335
↓ 1 callersMethodsupports_completion_item_label_details
Returns `true` if the client supports "label details" in completion items.
crates/ty_server/src/capabilities.rs:197
↓ 1 callersMethodsupports_completion_item_snippets
Returns `true` if the client supports snippets in completion items.
crates/ty_server/src/capabilities.rs:202
↓ 1 callersMethodsupports_declaration_link
Returns `true` if the client supports definition links in goto declaration.
crates/ty_server/src/capabilities.rs:129
↓ 1 callersMethodsupports_definition_link
Returns `true` if the client supports definition links in goto definition.
crates/ty_server/src/capabilities.rs:124
↓ 1 callersMethodsupports_diagnostic_related_information
Returns `true` if the client has related information support for diagnostics.
crates/ty_server/src/capabilities.rs:187
↓ 1 callersMethodsupports_domain_narrowing
Return whether equality can soundly transfer the right-hand enum restriction to the left. The right domain must be closed, and the left must either b
crates/ty_python_semantic/src/types/equality/enums.rs:351
↓ 1 callersMethodsupports_file_watcher
Returns `true` if the client supports file watcher capabilities.
crates/ty_server/src/capabilities.rs:169
↓ 1 callersMethodsupports_hierarchical_document_symbols
Returns `true` if the client supports hierarchical document symbols.
crates/ty_server/src/capabilities.rs:159
↓ 1 callersMethodsupports_implementation_link
Returns `true` if the client supports location links in goto implementation.
crates/ty_server/src/capabilities.rs:134
↓ 1 callersFunctionsupports_protocol_variance_inference
( db: &'db dyn Db, class: StaticClassLiteral<'db>, )
crates/ty_python_semantic/src/types/protocol_class.rs:3528
↓ 1 callersMethodsupports_relative_file_watcher
Returns `true` if the client supports relative file watcher capabilities. This permits specifying a "base uri" that a glob is interpreted relative to
crates/ty_server/src/capabilities.rs:177
↓ 1 callersMethodsupports_semantic_tokens_refresh
Returns `true` if the client supports refreshing semantic tokens.
crates/ty_server/src/capabilities.rs:109
↓ 1 callersMethodsupports_signature_active_parameter
Returns `true` if the client supports per-signature active parameter in signature help.
crates/ty_server/src/capabilities.rs:154
↓ 1 callersMethodsupports_signature_label_offset
Returns `true` if the client supports signature label offsets in signature help.
crates/ty_server/src/capabilities.rs:149
↓ 1 callersMethodsupports_trigger_parameter_hints_command
Returns `true` if the client supports the `ty.triggerParameterHints` completion command.
crates/ty_server/src/capabilities.rs:212
↓ 1 callersMethodsupports_type_definition_link
Returns `true` if the client supports definition links in goto type definition.
crates/ty_server/src/capabilities.rs:119
↓ 1 callersMethodsupports_type_parameter_materialization_proof
Returns whether this member has a form supported by `protocol_materialization_is_noop_with_type_parameters`. That proof inspects `P[T]` once and trea
crates/ty_python_semantic/src/types/protocol_class.rs:2157
↓ 1 callersMethodsupports_workspace_configuration
Returns `true` if the client supports workspace configuration.
crates/ty_server/src/capabilities.rs:99
↓ 1 callersFunctionsuppress_all
Creates fixes to suppress all violations in `ids_with_range`. Unlike calling [`suppress_single`] for each diagnostic, this groups diagnostics that ca
crates/ty_python_semantic/src/suppression/add_ignore.rs:34
↓ 1 callersMethodsuppress_callable_parentheses
(&self)
crates/ty_ide/src/completion.rs:1084
↓ 1 callersMethodsuppress_class_parentheses
(&self, model: &SemanticModel<'_>)
crates/ty_ide/src/completion.rs:1107
↓ 1 callersFunctionsuppress_single
Creates a fix to suppress a single lint.
crates/ty_python_semantic/src/suppression/add_ignore.rs:169
↓ 1 callersMethodsuppresses
(self, enclosing: Self)
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/mod.rs:381
↓ 1 callersFunctionsuppressible_exception
SIM105
crates/ruff_linter/src/rules/flake8_simplify/rules/suppressible_exception.rs:84
↓ 1 callersFunctionsuppression_edit_range
Returns the range to replace when updating an existing suppression directive, along with whether the directive is on an otherwise blank line.
crates/ruff_linter/src/noqa.rs:1171
↓ 1 callersMethodsurrounding_brackets
N.B. We only need the source code for the Tuple variant here, but if you already have a `Locator` instance handy, getting the source code is very chea
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:149
↓ 1 callersFunctionsuspected_as_section
(unindented: &str, style: SectionStyle)
crates/ruff_linter/src/docstrings/sections.rs:442
↓ 1 callersFunctionsuspicious_function_call
(checker: &Checker, call: &ExprCall)
crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs:976
↓ 1 callersFunctionsuspicious_function_decorator
S308
crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs:1327
↓ 1 callersFunctionsuspicious_function_reference
(checker: &Checker, func: &Expr)
crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs:985
↓ 1 callersFunctionsuspicious_imports
S401, S402, S403, S404, S405, S406, S407, S408, S409, S410, S411, S412, S413, S415
crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_imports.rs:375
↓ 1 callersFunctionswap_with_temporary_variable
(checker: &Checker, scope_id: ScopeId, scope: &Scope)
crates/ruff_linter/src/rules/pylint/rules/swap_with_temporary_variable.rs:66
↓ 1 callersFunctionsyllable_decomposition
(c: char)
crates/ruff_unicode_names2/src/jamo.rs:21
↓ 1 callersMethodsymbol_stored_in_outer_scope
The symbol that is stored in the outer scope as a result of this import. For example: - `import foo` => `foo` symbol stored in outer scope - `import
crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs:541
↓ 1 callersFunctionsymbol_to_diagnostics
( symbols: &'db HierarchicalSymbols, id: SymbolId, symbol: SymbolInfo<'db>, fi
crates/ty_ide/src/document_symbols.rs:615
↓ 1 callersFunctionsymbol_used_in_dunder_all
(semantic: &SemanticModel<'_>, binding: &ImportBinding)
crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs:980
↓ 1 callersFunctionsymlink
()
crates/ty_module_resolver/src/resolve.rs:2610
↓ 1 callersMethodsync_all
Refreshes the state of all known files. This is a last-resort method that should only be used when more granular updates aren't possible (for example
crates/ruff_db/src/files.rs:319
↓ 1 callersFunctionsync_call
ASYNC105
crates/ruff_linter/src/rules/flake8_async/rules/sync_call.rs:62
↓ 1 callersFunctionsync_context_manager_suppresses
(db: &'db dyn Db, expression: Expression<'db>)
crates/ty_python_semantic/src/reachability.rs:1997
↓ 1 callersMethodsynchronize_environments
( &mut self, db: &mut ProjectDatabase, changes: &ChangeResult, )
crates/ty/src/lib.rs:598
↓ 1 callersMethodsynchronize_script
Synchronizes an open script, using `availability` until its first synchronization completes.
crates/ty_server/src/session.rs:2022
↓ 1 callersMethodsynthesize_comprehension_binding_definitions
Records assignment-expression bindings from a comprehension in its containing scope. The value expression still belongs to the comprehension scope, s
crates/ty_python_core/src/builder.rs:1998
↓ 1 callersMethodsynthesize_loop_header_definitions
Create loop header definitions for places that are bound or invalidated within a loop. Return the `LoopHeaderId` referenced by those definitions, the
crates/ty_python_core/src/builder.rs:1840
↓ 1 callersMethodsynthesize_nested_binding_definitions
( &mut self, nested_bindings: NestedGlobalOrNonlocalDeclarations, )
crates/ty_python_core/src/builder.rs:1920
↓ 1 callersFunctionsynthesize_typed_dict_delitem
Synthesize the `__delitem__` method for a `TypedDict`.
crates/ty_python_semantic/src/types/class/typed_dict.rs:327
↓ 1 callersFunctionsynthesize_typed_dict_get
Synthesize the `get` method for a `TypedDict`.
crates/ty_python_semantic/src/types/class/typed_dict.rs:380
↓ 1 callersFunctionsynthesize_typed_dict_getitem
Synthesize the `__getitem__` method for a `TypedDict`.
crates/ty_python_semantic/src/types/class/typed_dict.rs:227
↓ 1 callersFunctionsynthesize_typed_dict_init
Synthesize the `__init__` method for a `TypedDict`. overloads: 1. `__init__(self, __map: TD, /, *, field1: T1 = ..., field2: T2 = ...) -> None` Allow
crates/ty_python_semantic/src/types/class/typed_dict.rs:143
↓ 1 callersFunctionsynthesize_typed_dict_merge
Synthesize a merge operator (`__or__`, `__ror__`, or `__ior__`) for a `TypedDict`.
crates/ty_python_semantic/src/types/class/typed_dict.rs:757
↓ 1 callersFunctionsynthesize_typed_dict_pop
Synthesize the `pop` method for a `TypedDict`.
crates/ty_python_semantic/src/types/class/typed_dict.rs:589
↓ 1 callersFunctionsynthesize_typed_dict_setdefault
Synthesize the `setdefault` method for a `TypedDict`.
crates/ty_python_semantic/src/types/class/typed_dict.rs:667
↓ 1 callersFunctionsynthesize_typed_dict_setitem
Synthesize the `__setitem__` method for a `TypedDict`.
crates/ty_python_semantic/src/types/class/typed_dict.rs:268
↓ 1 callersFunctionsynthesize_typed_dict_update
Synthesize the `update` method for a `TypedDict`.
crates/ty_python_semantic/src/types/class/typed_dict.rs:518
↓ 1 callersFunctionsynthesize_typed_dict_view_method
Synthesize `items`, `keys`, or `values` for a closed or extra-items `TypedDict`.
crates/ty_python_semantic/src/types/class/typed_dict.rs:732
↓ 1 callersMethodsynthesized_class_member
Generate synthesized class members for namedtuples.
crates/ty_python_semantic/src/types/class/named_tuple.rs:377
↓ 1 callersFunctionsynthesized_member
Provides synthesized attributes and methods for Django models.
crates/ty_python_semantic/src/types/dedicated/django.rs:219
↓ 1 callersFunctionsynthesized_typed_dict_class_member
Resolves members of a schema that has no defining `TypedDict` class.
crates/ty_python_semantic/src/types/class/typed_dict.rs:1048
↓ 1 callersFunctionsynthesizes_constructor_signature_from_fields
Return `true` if `class` should synthesize a field-derived constructor signature. A fixed custom initializer on an intermediate base class controls t
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:1430
↓ 1 callersMethodsynthesizes_constructor_signature_from_fields
Return `true` if the class constructor is synthesized from its fields. For example, a dataclass field becomes a parameter in the generated constructo
crates/ty_python_semantic/src/types/class.rs:367
↓ 1 callersFunctionsys_exit_alias
PLR1722
crates/ruff_linter/src/rules/pylint/rules/sys_exit_alias.rs:75
↓ 1 callersFunctionsys_prefix_from_executable_path
(path: &SystemPath)
crates/ty_site_packages/src/lib.rs:1916
↓ 1 callersFunctionsys_version_info_class
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/instance.rs:1640
↓ 1 callersMethodsystem
(&self)
crates/ty_test/src/db.rs:125
↓ 1 callersMethodsystem
(&self)
crates/ty_python_core/src/db.rs:103
↓ 1 callersMethodsystem
(&self)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:83
↓ 1 callersMethodsystem_listing
Returns the cached listing from [`System`], or `None` for an inaccessible directory or a path in the vendored typeshed archive.
crates/ty_module_resolver/src/path.rs:394
↓ 1 callersFunctionsystem_path_is_directory
(db: &dyn Db, path: &SystemPath)
crates/ty_module_resolver/src/path.rs:504
↓ 1 callersMethodt
(self)
crates/ruff_linter/resources/test/fixtures/pylint/non_augmented_assignment.py:46
↓ 1 callersFunctiont_suffixed_type_alias
PYI043
crates/ruff_linter/src/rules/flake8_pyi/rules/type_alias_naming.rs:129
↓ 1 callersFunctiontab_indentation
W191
crates/ruff_linter/src/rules/pycodestyle/rules/tab_indentation.rs:39
↓ 1 callersFunctiontab_indentation_at_line_start
If a line includes tabs in its indentation, returns the range of the indent.
crates/ruff_linter/src/rules/pycodestyle/rules/tab_indentation.rs:58
↓ 1 callersMethodtag_kind
(&self)
crates/ruff_formatter/src/format_element.rs:72
← previousnext →13,401–13,500 of 31,562, ranked by callers