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
↓ 1 callers
Function
ctx2
()
crates/ruff_linter/resources/test/fixtures/pycodestyle/E741.py:62
↓ 1 callers
Function
curly_unescape
(text: &str)
crates/ruff_linter/src/rules/pyupgrade/helpers.rs:27
↓ 1 callers
Method
current_assignment_mut
(&mut self)
crates/ty_python_core/src/builder.rs:2646
↓ 1 callers
Method
current_binding_ids
Get the current binding IDs for a place without materializing pending constraints.
crates/ty_python_core/src/use_def.rs:3174
↓ 1 callers
Method
current_directory
(&self)
crates/ty_server/src/system.rs:257
↓ 1 callers
Method
current_directory
(&self)
crates/ruff_db/src/diagnostic/render.rs:775
↓ 1 callers
Method
current_function_type
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:2192
↓ 1 callers
Method
current_kind
Returns the kind of the current token.
crates/ruff_python_parser/src/lexer.rs:119
↓ 1 callers
Method
current_kind
Returns the kind of the current token.
crates/ruff_python_parser/src/token_source.rs:41
↓ 1 callers
Method
current_loop_mut
(&mut self)
crates/ty_python_core/src/builder.rs:506
↓ 1 callers
Method
current_mut
(&mut self)
crates/ruff_python_parser/src/lexer/interpolated_string.rs:143
↓ 1 callers
Function
current_run
( run_id: int, run_attempt: int, workflow_ref: str, pull_request: int )
scripts/publish_pr_report.py:287
↓ 1 callers
Method
current_scope_ids
Returns an iterator over all scopes IDs, starting from the current [`Scope`].
crates/ruff_python_semantic/src/model.rs:1555
↓ 1 callers
Method
current_section_has_explicit_file_paths
(&self)
crates/mdtest/src/parser.rs:947
↓ 1 callers
Method
current_section_has_merged_snippets
(&self)
crates/mdtest/src/parser.rs:953
↓ 1 callers
Method
current_statement_mut
(&mut self)
crates/ty_python_core/src/builder.rs:2658
↓ 1 callers
Method
custom_getattribute_may_affect_lookup
Return whether a custom `__getattribute__` could affect this lookup. Reusing the receiver class's existing MRO classification avoids interning a memb
crates/ty_python_semantic/src/types.rs:8571
↓ 1 callers
Method
custom_stdlib
Create a new standard-library search path pointing to a custom directory on disk
crates/ty_module_resolver/src/path.rs:632
↓ 1 callers
Method
custom_stdlib_search_path
(self, db: &'db dyn Db)
crates/ty_python_core/src/program.rs:55
↓ 1 callers
Function
custom_type_var_instead_of_self
PYI019
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:118
↓ 1 callers
Function
custom_typevar
Returns `Some(TypeVar)` if `typevar_expr` refers to a `TypeVar` binding
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:294
↓ 1 callers
Method
custom_typevar
( &'a self, semantic: &'a SemanticModel<'a>, scope: ScopeId, )
crates/ruff_linter/src/rules/flake8_pyi/rules/custom_type_var_for_self.rs:229
↓ 1 callers
Method
cycle
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/recursive.rs:311
↓ 1 callers
Method
cycle_normalized
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous: Self,
crates/ty_python_semantic/src/types.rs:2641
↓ 1 callers
Method
cycle_normalized
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous_place: Self,
crates/ty_python_semantic/src/place.rs:1221
↓ 1 callers
Method
cycle_normalized
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous: &Self,
crates/ty_python_semantic/src/types/signatures.rs:283
↓ 1 callers
Method
cycle_normalized_impl
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, previous: Self,
crates/ty_python_semantic/src/types.rs:2651
↓ 1 callers
Function
cycle_normalized_optional_type
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, current: Option<ProtocolPropertyType<'db>>,
crates/ty_python_semantic/src/types/protocol_class.rs:1715
↓ 1 callers
Method
cycle_normalized_without_previous
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, cycle: &salsa::Cycle,
crates/ty_python_semantic/src/types/protocol_class.rs:1141
↓ 1 callers
Method
cycle_summary
Summarize an alias's raw definition once, sharing the result across references. Specializations reuse this summary and check their exposed arguments s
crates/ty_python_semantic/src/types/type_alias.rs:541
↓ 1 callers
Function
d
()
crates/ruff_python_parser/resources/inline/err/invalid_annotation_function.py:1
↓ 1 callers
Function
dag_no_schedule_argument
AIR002
crates/ruff_linter/src/rules/airflow/rules/dag_schedule_argument.rs:56
↓ 1 callers
Function
dangling_open_parenthesis_comments
Formats the dangling comments within a parenthesized expression, for example: ```python [ # comment 1, 2, 3, ] ```
crates/ruff_python_formatter/src/comments/format.rs:262
↓ 1 callers
Function
dataclass_enum
RUF049
crates/ruff_linter/src/rules/ruff/rules/dataclass_enum.rs:64
↓ 1 callers
Method
dataclass_transformer_from_bases
Return the dataclass transform an ordinary class inherits from its bases.
crates/ty_python_semantic/src/types/class/static_literal.rs:943
↓ 1 callers
Function
date_navigation_method
Synthesize `get_next_by_<field>()` and `get_previous_by_<field>()` for non-nullable date fields.
crates/ty_python_semantic/src/types/dedicated/django.rs:414
↓ 1 callers
Function
datetime_min_max
DTZ901
crates/ruff_linter/src/rules/flake8_datetimez/rules/datetime_min_max.rs:67
↓ 1 callers
Function
datetime_utc_alias
UP017
crates/ruff_linter/src/rules/pyupgrade/rules/datetime_utc_alias.rs:59
↓ 1 callers
Method
debug
(&'a self, source: &'a str)
crates/ty_python_semantic/src/suppression/parser.rs:485
↓ 1 callers
Function
debug_information
Returns a string with detailed memory usage.
crates/ty_server/src/server/api/requests/execute_command.rs:40
↓ 1 callers
Function
debug_information
Returns a string with debug information about the session and the document at the given URI.
crates/ruff_server/src/server/api/requests/execute_command.rs:168
↓ 1 callers
Function
debug_module
(source: &str)
crates/ruff_python_ast_integration_tests/tests/comparable.rs:86
↓ 1 callers
Function
debugger_call
T100 Checks for the presence of a debugger call.
crates/ruff_linter/src/rules/flake8_debugger/rules/debugger.rs:53
↓ 1 callers
Function
debugger_import
T100 Checks for the presence of a debugger import.
crates/ruff_linter/src/rules/flake8_debugger/rules/debugger.rs:66
↓ 1 callers
Method
decide_resolution_path
(&mut self)
crates/ty_python_semantic/src/place_load.rs:594
↓ 1 callers
Function
decimal_from_float_literal_syntax
RUF032: `Decimal()` called with float literal argument
crates/ruff_linter/src/rules/ruff/rules/decimal_from_float_literal.rs:53
↓ 1 callers
Method
declaration_type
( &self, owner: Definition<'db>, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/infer.rs:1289
↓ 1 callers
Method
declare_lambda_parameter
( &mut self, index: usize, parameter: &'ast ast::ParameterWithDefault, lambda:
crates/ty_python_core/src/builder.rs:3308
↓ 1 callers
Method
declare_lambda_parameters
( &mut self, parameters: &'ast ast::Parameters, lambda: &'ast ast::ExprLambda, )
crates/ty_python_core/src/builder.rs:3259
↓ 1 callers
Method
declare_parameters
(&mut self, parameters: &'ast ast::Parameters, is_stub_body: bool)
crates/ty_python_core/src/builder.rs:3203
↓ 1 callers
Method
declare_stub_parameter
Creates the definition now so the semantic index can resolve the parameter's AST node. Its binding and optional declaration are recorded when the scop
crates/ty_python_core/src/builder.rs:3237
↓ 1 callers
Method
declared_candidate
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/constraints.rs:3457
↓ 1 callers
Function
declared_encoding
Extract the encoding name from a physical line using the PEP 263 grammar.
crates/ruff_linter/src/rules/pyupgrade/rules/unnecessary_coding_comment.rs:48
↓ 1 callers
Method
declared_instance_attributes
Receiver attributes declared in this scope, such as `self.value: int`.
crates/ty_python_core/src/place.rs:249
↓ 1 callers
Function
decorator_has_multiple_outputs
Returns `true` if the decorator already specifies `multiple_outputs=...`.
crates/ruff_linter/src/rules/airflow/rules/task_implicit_multiple_outputs.rs:163
↓ 1 callers
Method
decorators_inner
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:824
↓ 1 callers
Method
decrement
Decrements the indent by one by: - Reducing the level by one if this is [`Indent::Level`] - Removing the `align` if this is [`Indent::Align`] No-op i
crates/ruff_formatter/src/printer/mod.rs:1011
↓ 1 callers
Function
deduplicate_files
Deduplicate files by path, prioritizing `Root` files over `Nested` files. When the same path appears both as a directly specified input (`Root`) and
crates/ruff_workspace/src/resolver.rs:597
↓ 1 callers
Method
default
(self, o: object)
python/ruff-ecosystem/ruff_ecosystem/main.py:157
↓ 1 callers
Method
default
()
crates/ruff_python_formatter/src/context.rs:229
↓ 1 callers
Method
default
(&self)
crates/ruff_python_ast/src/nodes.rs:3225
↓ 1 callers
Method
default
()
crates/ty_ide/src/completion.rs:730
↓ 1 callers
Method
default
Returns the default docstring state which is to expect a module-level docstring.
crates/ruff_linter/src/checkers/ast/mod.rs:121
↓ 1 callers
Method
default
()
crates/ruff_linter/src/rules/pylint/settings.rs:153
↓ 1 callers
Function
default_broad_exceptions
()
crates/ruff_linter/src/rules/flake8_pytest_style/settings.rs:13
↓ 1 callers
Function
default_broad_warnings
()
crates/ruff_linter/src/rules/flake8_pytest_style/settings.rs:27
↓ 1 callers
Method
default_bytes_flags
Return the default bytestring flags a generated `ByteStringLiteral` node should use, given where we are in the AST.
crates/ruff_linter/src/checkers/ast/mod.rs:398
↓ 1 callers
Function
default_except_not_last
F707
crates/ruff_linter/src/rules/pyflakes/rules/default_except_not_last.rs:60
↓ 1 callers
Function
default_factory_kwarg
RUF026
crates/ruff_linter/src/rules/ruff/rules/default_factory_kwarg.rs:80
↓ 1 callers
Function
default_func_names
()
crates/ruff_linter/src/rules/flake8_gettext/settings.rs:11
↓ 1 callers
Function
default_function
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF009_deferred.py:5
↓ 1 callers
Function
default_indent_style
()
crates/ruff_python_formatter/src/options.rs:78
↓ 1 callers
Function
default_indent_width
()
crates/ruff_python_formatter/src/options.rs:82
↓ 1 callers
Function
default_line_width
()
crates/ruff_python_formatter/src/options.rs:74
↓ 1 callers
Method
default_specialization
( self, db: &'db dyn Db, generic_context: GenericContext<'db>, )
crates/ty_python_semantic/src/types/cyclic.rs:303
↓ 1 callers
Method
default_specialize
Apply defaults to free legacy type variables before converting a referenced value to a type.
crates/ty_python_semantic/src/types.rs:11074
↓ 1 callers
Function
default_tmp_dirs
()
crates/ruff_linter/src/rules/flake8_bandit/settings.rs:7
↓ 1 callers
Function
deferred_comprehensions
Run lint rules over all deferred comprehensions in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_comprehensions.rs:8
↓ 1 callers
Function
deferred_for_loops
Run lint rules over all deferred for-loops in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_for_loops.rs:8
↓ 1 callers
Function
deferred_functional_typed_dict_openness
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/typed_dict.rs:1522
↓ 1 callers
Function
deferred_functional_typed_dict_schema
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/typed_dict.rs:1457
↓ 1 callers
Function
deferred_lambdas
Run lint rules over all deferred lambdas in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_lambdas.rs:8
↓ 1 callers
Function
deferred_scopes
Run lint rules over all deferred scopes in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_scopes.rs:12
↓ 1 callers
Function
deferred_with_statements
Run lint rules over all deferred with-statements in the [`SemanticModel`].
crates/ruff_linter/src/checkers/ast/analyze/deferred_with_statements.rs:6
↓ 1 callers
Function
defineAyuThemes
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:59
↓ 1 callers
Function
defineCommentsLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:692
↓ 1 callers
Function
defineFirLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:802
↓ 1 callers
Function
defineRustPythonAstLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:636
↓ 1 callers
Function
defineRustPythonTokensLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:747
↓ 1 callers
Function
defineTomlLanguage
(monaco: Monaco)
playground/shared/src/setupMonaco.tsx:848
↓ 1 callers
Method
defined_instance_attribute_names
Receiver attributes that this scope can define. A read of `self.value` alone does not establish `value` as an implicit attribute.
crates/ty_python_core/src/place.rs:241
↓ 1 callers
Method
defining_class
(self)
crates/ty_python_semantic/src/types/typed_dict.rs:260
↓ 1 callers
Function
definite_match_pattern_type_for_subject_impl
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, kind: &'pattern PatternPredicateKind<'db>, s
crates/ty_python_semantic/src/types/match_pattern.rs:770
↓ 1 callers
Function
definite_sequence_pattern_type
Return the values that are guaranteed to match a sequence pattern.
crates/ty_python_semantic/src/types/match_pattern.rs:1407
↓ 1 callers
Function
definition
Generate flake8-annotation checks for a given `Definition`. ANN001, ANN401
crates/ruff_linter/src/rules/flake8_annotations/rules/definition.rs:633
↓ 1 callers
Method
definition
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typed_dict.rs:699
↓ 1 callers
Method
definition
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/special_form.rs:787
↓ 1 callers
Function
definition_contains_special_cased_condition
( db: &'db dyn Db, definition: Definition<'db>, )
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/exemptions.rs:689
↓ 1 callers
Function
definition_expression_annotation
Infer the type and qualifiers of a deferred annotation expression that is a sub-expression of a [`Definition`]. Supports expressions that are evaluat
crates/ty_python_semantic/src/types.rs:454
↓ 1 callers
Method
definition_header_start
Finds where a class or function definition actually starts once we skip over decorators.
crates/ty_ide/src/folding_range.rs:432
← previous
next →
8,701–8,800 of 31,562, ranked by callers