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
Method
with_materialization_kind
( self, db: &'db dyn Db, materialization_kind: Option<MaterializationKind>, )
crates/ty_python_semantic/src/types/generics.rs:1438
↓ 1 callers
Method
with_message
(self, message: impl Display)
crates/ty_project/src/metadata/options.rs:2530
↓ 1 callers
Method
with_mode
(mut self, mode: BestFittingMode)
crates/ruff_formatter/src/builders.rs:2706
↓ 1 callers
Method
with_name_suffix
(self, db: &'db dyn Db, suffix: &str)
crates/ty_python_semantic/src/types/typevar.rs:295
↓ 1 callers
Method
with_nested_string_quote_style
( mut self, nested_string_quote_style: NestedStringQuoteStyle, )
crates/ruff_python_formatter/src/options.rs:220
↓ 1 callers
Method
with_nominal_protocol_receiver
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, origin: ClassLiteral<
crates/ty_python_semantic/src/types/signatures.rs:1416
↓ 1 callers
Method
with_options
Return a copy of self with the given options set.
python/ruff-ecosystem/ruff_ecosystem/projects.py:245
↓ 1 callers
Method
with_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/statement/stmt_try.rs:28
↓ 1 callers
Method
with_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/expr_attribute.rs:21
↓ 1 callers
Method
with_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/expr_lambda.rs:182
↓ 1 callers
Method
with_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/expr_string_literal.rs:23
↓ 1 callers
Method
with_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/expr_subscript.rs:20
↓ 1 callers
Method
with_options
(mut self, options: Self::Options)
crates/ruff_python_formatter/src/expression/expr_call.rs:18
↓ 1 callers
Method
with_options
(mut self, options: ClientOptions)
crates/ruff_server/src/workspace.rs:104
↓ 1 callers
Method
with_os
(&mut self, cwd: SystemPathBuf, temp_dir: TempDir)
crates/ty_test/src/db.rs:474
↓ 1 callers
Method
with_preferred_quote_style
(mut self, quote_style: QuoteStyle)
crates/ruff_python_formatter/src/string/normalize.rs:31
↓ 1 callers
Method
with_preview
(mut self, preview: bool)
crates/ruff_server/src/session/options.rs:236
↓ 1 callers
Method
with_preview_enabled
(self: Self)
python/ruff-ecosystem/ruff_ecosystem/projects.py:40
↓ 1 callers
Method
with_promotable
(mut self, promotable: bool)
crates/ty_python_semantic/src/types/literal.rs:67
↓ 1 callers
Method
with_provenance
(mut self, provenance: Provenance<'db>)
crates/ty_python_semantic/src/types.rs:12092
↓ 1 callers
Method
with_public_type_policy
(mut self, public_type_policy: PublicTypePolicy)
crates/ty_python_semantic/src/place.rs:180
↓ 1 callers
Method
with_python_version
Specify the Python version the module resolver should assume
crates/ty_module_resolver/src/testing.rs:155
↓ 1 callers
Method
with_qualifier
Return `self` with an additional qualifier added to the set of qualifiers.
crates/ty_python_semantic/src/types.rs:12111
↓ 1 callers
Method
with_quote_style
(mut self, style: QuoteStyle)
crates/ruff_python_formatter/src/options.rs:172
↓ 1 callers
Method
with_reachability_cache
( mut self, cache: Option<&'a ReachabilityEvaluationCache<'db>>, constraints: &Reachab
crates/ty_python_semantic/src/reachability.rs:1219
↓ 1 callers
Method
with_relaxed_override_keywords
Restrict the base signature to positional calls for parameters whose keyword name is lost in every overriding overload. This comparison-only signature
crates/ty_python_semantic/src/types/signatures.rs:1381
↓ 1 callers
Method
with_renames
Return a list of deprecated imports whose members were renamed.
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs:459
↓ 1 callers
Method
with_search_paths
(mut self, search_paths: SearchPaths)
crates/ty_module_resolver/src/db.rs:54
↓ 1 callers
Method
with_signature_recursion_guard
( &self, source: &Signature<'db>, target: &Signature<'db>, work: impl FnOnce()
crates/ty_python_semantic/src/types/signatures.rs:3025
↓ 1 callers
Method
with_source_overload_index
Records the overload's source definition index for later diagnostics.
crates/ty_python_semantic/src/types/call/bind.rs:9253
↓ 1 callers
Method
with_src_roots
(mut self, src_roots: Vec<SystemPathBuf>)
crates/ty_python_semantic/src/db.rs:262
↓ 1 callers
Method
with_text
(&self, new_text: String, source_map: &SourceMap)
crates/ruff_db/src/source.rs:120
↓ 1 callers
Function
with_tracker
(f: F)
crates/ruff_memory_usage/src/lib.rs:23
↓ 1 callers
Method
with_trailing_comma
Set the trailing comma behavior for the builder. Trailing commas will only be inserted if the group breaks, and will _always_ be inserted if the last
crates/ruff_python_formatter/src/builders.rs:151
↓ 1 callers
Method
with_type_params
( &mut self, with_scope: NodeWithScopeRef, type_params: Option<&'ast ast::TypeParams>,
crates/ty_python_core/src/builder.rs:3019
↓ 1 callers
Method
with_typevar_bounds
Intersects gradual type arguments with their type parameters' upper bounds. For example, in a protocol `P[T: str]`, a member typed as `T` remains bou
crates/ty_python_semantic/src/types/generics.rs:1299
↓ 1 callers
Method
with_unspecialized_type_var_policy
( mut self, unspecialized_type_var_policy: UnspecializedTypeVarPolicy, )
crates/ty_python_semantic/src/types/constraints/solutions.rs:145
↓ 1 callers
Method
with_unused_self_upper_bound
Replaces an unused implicit `Self` receiver with its upper bound.
crates/ty_python_semantic/src/types/signatures.rs:1950
↓ 1 callers
Method
with_yield_expression_allowed
Returns a new [`ExpressionContext`] which allows yield expression.
crates/ruff_python_parser/src/parser/expression.rs:3199
↓ 1 callers
Method
without
Returns the rule table with every rule in `rules` disabled.
crates/ruff_linter/src/settings/rule_table.rs:65
↓ 1 callers
Method
without_diff
(self)
python/ruff-ecosystem/ruff_ecosystem/check.py:410
↓ 1 callers
Method
without_first
Return a copy of this parameter list without its first parameter. Removing the only prefix parameter from a `Concatenate` form leaves the tail as a p
crates/ty_python_semantic/src/types/signatures.rs:5347
↓ 1 callers
Method
without_fix_available
(self)
python/ruff-ecosystem/ruff_ecosystem/check.py:407
↓ 1 callers
Method
without_overloads
Ignore previous overloads when applying decorators to an individual definition.
crates/ty_python_semantic/src/types/function.rs:863
↓ 1 callers
Method
without_renames
Return a list of deprecated imports whose members were moved, but not renamed.
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs:491
↓ 1 callers
Method
without_updated_signatures
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/function.rs:1286
↓ 1 callers
Function
worker_disconnected
()
crates/ty_project/src/uv/service.rs:355
↓ 1 callers
Method
worker_pool
(&self, system: &dyn System)
crates/ty_project/src/uv/service.rs:119
↓ 1 callers
Method
wrap_as_constructor
( self, constructed_instance_type: Type<'db>, constructor_kind: ConstructorCallableKin
crates/ty_python_semantic/src/types/call/bind.rs:466
↓ 1 callers
Function
wrap_with_call_to
Wrap given function call with yet another call.
crates/ruff_linter/src/rules/refurb/rules/reimplemented_starmap.rs:334
↓ 1 callers
Method
write
Save the failure kind and baseline duration as JSON.
python/py-fuzzer/fuzz.py:255
↓ 1 callers
Method
write
(self, db: &dyn Db, path: &SystemPath)
crates/ty_project/src/baseline.rs:302
↓ 1 callers
Method
write
(&mut self, buf: &[u8])
crates/ty/src/printer.rs:164
↓ 1 callers
Function
write_anynoderef
Create the AnyNodeRef type. ```rust pub enum AnyNodeRef<'a> { ... TypeParamTypeVar(&'a TypeParamTypeVar), TypePa
crates/ruff_python_ast/generate.py:625
↓ 1 callers
Method
write_array
(&mut self, name: &str, ty: &str, elements: &[T], format: F)
crates/ruff_unicode_names2_generator/src/formatting.rs:10
↓ 1 callers
Method
write_body_slow
(&self, formatter: &mut impl std::fmt::Write)
crates/ruff_python_literal/src/escape.rs:454
↓ 1 callers
Function
write_changes
( db: &dyn Db, system: &dyn WritableSystem, file: File, path: &SystemPath, new_text: &Sour
crates/ty_python_semantic/src/fixes.rs:466
↓ 1 callers
Function
write_cjk_ideograph_ranges
(ctxt: &mut Context, ranges: &[(char, char)])
crates/ruff_unicode_names2_generator/src/lib.rs:117
↓ 1 callers
Function
write_codepoint_maps
(ctxt: &mut Context, codepoint_names: Vec<(char, &str)>)
crates/ruff_unicode_names2_generator/src/lib.rs:237
↓ 1 callers
Method
write_continuously
( &self, writer: &mut dyn Write, diagnostics: &Diagnostics, preview: PreviewMo
crates/ruff/src/printer.rs:400
↓ 1 callers
Function
write_corpus_arguments
(target_directory: Path, corpus: list[str])
scripts/build_ruff_pgo.py:535
↓ 1 callers
Method
write_diagnostics
( &self, db: &ProjectDatabase, diagnostics: &[Diagnostic], fixed_diagnostics:
crates/ty/src/lib.rs:652
↓ 1 callers
Method
write_diff
Write a diff of the formatting changes to the given writer.
crates/ruff/src/commands/format.rs:549
↓ 1 callers
Method
write_elements
Writes a sequence of elements into this buffer.
crates/ruff_formatter/src/buffer.rs:643
↓ 1 callers
Method
write_error
( self, assertion_buf: &mut String, file: &str, line: OneIndexed, fail
crates/mdtest/src/lib.rs:193
↓ 1 callers
Method
write_file
Writes the given content to the file at the given path.
crates/ruff_db/src/system.rs:245
↓ 1 callers
Method
write_file
( &self, path: impl AsRef<Path>, content: impl AsRef<str>, )
crates/ruff_server/tests/e2e/main.rs:675
↓ 1 callers
Method
write_file_bytes
(&self, path: &SystemPath, content: &[u8])
crates/ty_test/src/db.rs:620
↓ 1 callers
Method
write_file_bytes
(&self, path: &SystemPath, content: &[u8])
crates/ruff_db/src/system/os.rs:265
↓ 1 callers
Function
write_github_issue_body
Write a GitHub issue body for the fuzzing run to a Markdown file.
python/py-fuzzer/fuzz.py:675
↓ 1 callers
Method
write_gutter
(&self, f: &mut std::fmt::Formatter, width: NonZeroUsize)
crates/ruff_db/src/diagnostic/render/full.rs:313
↓ 1 callers
Method
write_i128
(&mut self, i: i128)
crates/ruff_cache/src/cache_key.rs:470
↓ 1 callers
Method
write_i16
(&mut self, i: i16)
crates/ruff_cache/src/cache_key.rs:455
↓ 1 callers
Method
write_i32
(&mut self, i: i32)
crates/ruff_cache/src/cache_key.rs:460
↓ 1 callers
Method
write_i64
(&mut self, i: i64)
crates/ruff_cache/src/cache_key.rs:465
↓ 1 callers
Method
write_i8
(&mut self, i: i8)
crates/ruff_cache/src/cache_key.rs:450
↓ 1 callers
Method
write_inconsistency
( self, assertion_buf: &mut String, fixture_path: &Utf8Path, inconsistency: &i
crates/mdtest/src/lib.rs:226
↓ 1 callers
Method
write_isize
(&mut self, i: isize)
crates/ruff_cache/src/cache_key.rs:475
↓ 1 callers
Function
write_metadata
(metadata: dict[str, Any], output: Path)
scripts/collect_ty_ecosystem_run_metadata.py:417
↓ 1 callers
Function
write_node
(out: list[str], ast: Ast)
crates/ruff_python_ast/generate.py:1070
↓ 1 callers
Function
write_nodekind
Create the NodeKind type. ```rust pub enum NodeKind { ... TypeParamTypeVar, TypeParamTypeVarTuple, ...
crates/ruff_python_ast/generate.py:1025
↓ 1 callers
Method
write_once
( &self, diagnostics: &Diagnostics, writer: &mut dyn Write, preview: PreviewMo
crates/ruff/src/printer.rs:214
↓ 1 callers
Function
write_output
(root: Path, out: list[str])
crates/ruff_python_ast/generate.py:1204
↓ 1 callers
Function
write_owned_enum
Create an enum for each group that contains an owned copy of a syntax node. ```rust pub enum TypeParam { TypeVar(TypeParamTypeVa
crates/ruff_python_ast/generate.py:329
↓ 1 callers
Method
write_plain_string
(&mut self, name: &str, data: &str)
crates/ruff_unicode_names2_generator/src/formatting.rs:41
↓ 1 callers
Function
write_preamble
(out: list[str])
crates/ruff_python_ast/generate.py:315
↓ 1 callers
Function
write_ref_enum
Create an enum for each group that contains a reference to a syntax node. ```rust pub enum TypeParamRef<'a> { TypeVar(&'a TypePa
crates/ruff_python_ast/generate.py:532
↓ 1 callers
Method
write_report
(&mut self, report: WorkspaceDocumentDiagnosticReport)
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:482
↓ 1 callers
Function
write_root_anynoderef
Create the AnyRootNodeRef type. ```rust pub enum AnyRootNodeRef<'a> { ... TypeParam(&'a TypeParam), ... }
crates/ruff_python_ast/generate.py:798
↓ 1 callers
Function
write_rule
(output: &mut String, lint: LintId, aliases: &FxHashMap<LintId, Vec<LintName>>)
crates/ruff_dev/src/generate_ty_rules.rs:91
↓ 1 callers
Function
write_skipped_statements
( first_skipped: &'a Stmt, statements: &mut std::slice::Iter<'a, Stmt>, verbatim_range: TextRange,
crates/ruff_python_formatter/src/verbatim.rs:456
↓ 1 callers
Function
write_source
(path: &SystemPath, source: &str)
crates/ruff_benchmark/benches/ty_ide.rs:477
↓ 1 callers
Method
write_source
(&self, formatter: &mut impl std::fmt::Write)
crates/ruff_python_literal/src/escape.rs:449
↓ 1 callers
Function
write_source_order
(out: list[str], ast: Ast)
crates/ruff_python_ast/generate.py:1121
↓ 1 callers
Method
write_statistics
( &self, diagnostics: &Diagnostics, writer: &mut dyn Write, )
crates/ruff/src/printer.rs:274
↓ 1 callers
Method
write_summary
Write a summary of the formatting results to the given writer.
crates/ruff/src/commands/format.rs:610
↓ 1 callers
Function
write_suppressed_clause
( clause: &FormatClause, f: &mut Formatter<PyFormatContext<'_>>, last_child_in_clause: AnyNodeRef,
crates/ruff_python_formatter/src/statement/clause.rs:754
↓ 1 callers
Function
write_suppressed_clause_header
( header: ClauseHeader, f: &mut PyFormatter, )
crates/ruff_python_formatter/src/verbatim.rs:932
↓ 1 callers
Function
write_suppressed_statements_starting_with_leading_comment
( // The first suppressed statement first_suppressed: SuiteChildStatement<'a>, statements: &mut st
crates/ruff_python_formatter/src/verbatim.rs:63
↓ 1 callers
Method
write_to_user
(&self, message: &str)
crates/ruff/src/printer.rs:84
← previous
next →
14,401–14,500 of 31,562, ranked by callers