MCPcopy Create free account

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

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

Methodfrom_text_slow
(text: &str, indent_width: IndentWidth, mut width: u32)
crates/ruff_formatter/src/format_element.rs:531
Methodfrom_tokens
(tokens: &Tokens, source: &'a str)
crates/ruff_python_codegen/src/stylist.rs:39
Methodfrom_tokens
( source: &str, tokens: &Tokens, indexer: &Indexer, settings: &LinterSettings,
crates/ruff_linter/src/suppression.rs:273
Methodfrom_tokens
(tokens: &Tokens, locator: &'a Locator<'a>)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:62
Methodfrom_tokens
(tokens: &Tokens, source: &str)
crates/ruff_python_index/src/indexer.rs:32
Methodfrom_toml
TODO(konstin): For the real version, fix printing of error chains and remove the path argument
crates/ruff_dev/src/format_dev.rs:915
Methodfrom_toml_str
( content: &str, source: ValueSource, )
crates/ty_project/src/metadata/pyproject.rs:36
Methodfrom_toml_str
(content: &str, source: ValueSource)
crates/ty_project/src/metadata/options.rs:162
Methodfrom_toml_table
Deserialize inline configuration in one crate, avoiding repeated code generation.
crates/ruff_workspace/src/options.rs:522
Methodfrom_transformer_params
(db: &'db dyn Db, params: DataclassTransformerParams<'db>)
crates/ty_python_semantic/src/types.rs:2032
Methodfrom_truthiness
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, truthiness: Truthiness, )
crates/ty_python_semantic/src/types.rs:11144
Methodfrom_try_stmt
( ast::StmtTry { handlers, .. }: &ast::StmtTry, semantic: &SemanticModel, )
crates/ruff_python_semantic/src/binding.rs:711
Methodfrom_two_elements
Create a union type `A | B` from two elements `A` and `B`.
crates/ty_python_semantic/src/types/set_theoretic.rs:140
Methodfrom_two_elements_leave_aliases
Normalize a pair without unpacking aliases. Repeated annotations often share the same operand types even when their enclosing function signatures diff
crates/ty_python_semantic/src/types/set_theoretic.rs:167
Methodfrom_ty
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>, )
crates/ty_ide/src/goto.rs:262
Methodfrom_type
(ty: Type<'db>)
crates/ty_python_semantic/src/types.rs:12189
Methodfrom_type
(member: ProtocolPropertyType<'db>)
crates/ty_python_semantic/src/types/protocol_class.rs:1075
Methodfrom_type
(ty: Type<'db>)
crates/ty_python_semantic/src/types/unpacker.rs:565
Methodfrom_type
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/cyclic.rs:260
Methodfrom_type
Inspect a body without specializing it; `scope` resolves variables in an open graph body.
crates/ty_python_semantic/src/types/type_alias.rs:52
Methodfrom_type
Resolve a boolean configuration value from its inferred type.
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:587
Methodfrom_type
Extract only structural enum membership facts from `ty`. This deliberately does not use subtyping: extra nominal restrictions must not be transferred
crates/ty_python_semantic/src/types/equality/enums.rs:390
Methodfrom_type
Returns an eligible candidate if the given type represents one (i.e., it is a fixed-length homogeneous tuple or the empty tuple).
crates/ty_python_semantic/src/types/tuple/promotion.rs:207
Methodfrom_type
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder/named_tuple.rs:771
Methodfrom_type_alias_class
(class: KnownClass)
crates/ty_python_semantic/src/types.rs:762
Methodfrom_type_expression
Construct an unbound `TypeIs` return type from the user-written type expression. ```python from typing import TypeIs def is_tuple(value: object) ->
crates/ty_python_semantic/src/types.rs:12909
Methodfrom_type_expression
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/union_type_instance.rs:104
Methodfrom_type_expression
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/type_form.rs:24
Methodfrom_type_inner
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>,
crates/ty_python_semantic/src/types/equality/enums.rs:396
Methodfrom_type_params
Creates a generic context from a list of PEP-695 type parameters.
crates/ty_python_semantic/src/types/generics.rs:378
Methodfrom_typed_dict_type
Return the module for a `TypedDict` special form, including a union of the special forms exported by `typing` and `typing_extensions`.
crates/ty_python_semantic/src/types.rs:735
Methodfrom_typevar_bound
(bound: impl ProvidesTypeVarBound<'db>)
crates/ty_python_semantic/src/types/constraints/sequents.rs:527
Methodfrom_typevar_instances
Creates a generic context from a nonempty list of `BoundTypeVarInstance`s. # Panics Panics if `type_params` is empty. Use [`Self::try_from_typevar_i
crates/ty_python_semantic/src/types/generics.rs:445
Methodfrom_typevar_instances_in_program
( db: &'db dyn Db, program: Program<'db>, type_params: impl IntoIterator<Item = BoundT
crates/ty_python_semantic/src/types/generics.rs:476
Methodfrom_typevar_set
( db: &'db dyn Db, storage: &mut ConstraintSetStorage<'db>, typevars: TypeVarSet<'db>,
crates/ty_python_semantic/src/types/constraints/support.rs:30
Methodfrom_typevars
( db: &'db dyn Db, typevars: impl IntoIterator<Item = BoundTypeVarInstance<'db>>, )
crates/ty_python_semantic/src/types/typevar.rs:2125
Functionfrom_u32_panics_for_u32_max
()
crates/ruff_index/src/idx.rs:30
Methodfrom_u8
(value: u8)
crates/ruff_python_ast/src/generated.rs:7532
Methodfrom_union
Extract an exact included-member set from a union of enum domains. Whole-domain and complement arms are rejected because they are not exact included
crates/ty_python_semantic/src/types/equality/enums.rs:451
Methodfrom_union
Creates a new `Bindings` from an iterator of [`Bindings`]s for a union type. Each input `Bindings` becomes a union element, preserving any intersectio
crates/ty_python_semantic/src/types/call/bind.rs:787
Methodfrom_unpack
(unpack: Option<Unpack<'db>>, unpack_position: UnpackPosition)
crates/ty_python_core/src/definition.rs:1220
Methodfrom_uri
Converts the given [`Uri`] to an [`DocumentKey`]. If the URI scheme is `file`, then the path is converted to a [`SystemPathBuf`] unless the uri isn't
crates/ty_server/src/document.rs:103
Methodfrom_usize
(value: usize)
crates/ty_python_semantic/src/types/constraints.rs:2378
Functionfrom_usize_panics_for_u32_max
()
crates/ruff_index/src/idx.rs:36
Methodfrom_utf8_path_buf
(path: Utf8PathBuf)
crates/ruff_db/src/system/path.rs:531
Methodfrom_uv_mode
Translates an explicit uv mode into ty configuration overrides.
crates/ty_project/src/metadata/options.rs:141
Methodfrom_value
Create the initialization options from the given JSON value that corresponds to the initialization options sent by the client. Invalid settings fall
crates/ty_server/src/session/options.rs:75
Methodfrom_value
Initializes the controller from the serialized initialization options. This fails if `options` are not valid initialization options.
crates/ruff_server/src/session/options.rs:349
Methodfrom_value
(value: Option<&str>)
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:542
Methodfrom_value
(value: f64)
crates/ruff_linter/src/rules/refurb/rules/math_constant.rs:114
Methodfrom_value_expression_types
( db: &'db dyn Db, values: [Type<'db>; 2], scope_id: ScopeId<'db>, typevar_bin
crates/ty_python_semantic/src/types/union_type_instance.rs:108
Methodfrom_vec
(segments: SmallVec<[SegmentInfo; 8]>)
crates/ty_python_core/src/member.rs:692
Methodfrom_vec_unchecked
(variants: Vec<FormatElement>)
crates/ruff_formatter/src/format_element.rs:338
Methodfrom_versions
(black: &str, ruff: &str)
crates/ruff_dev/src/format_dev.rs:109
Methodfrom_workspace_folders
Create the workspaces from the provided workspace folders as provided by the client during initialization.
crates/ruff_server/src/workspace.rs:14
Methodfrom_zero_indexed
Construct a new [`OneIndexed`] from a zero-indexed value
crates/ruff_source_file/src/line_index.rs:594
Methodfrom_zip_file
(zip_file: ZipFile<'_, R>)
crates/ruff_db/src/vendored.rs:300
Methodfrom_zip_file_name
(name: &str)
crates/ruff_db/src/vendored.rs:276
Methodfront_start_index
(start: Option<i32>)
crates/ty_python_semantic/src/types/tuple.rs:1995
Functionfrozen_inputs_support_a_one_shot_check
()
crates/ty_project/src/db.rs:1093
Functionfrozen_map_iterates_with_mutable_values
()
crates/ty_python_core/src/frozen.rs:346
Functionfrozen_map_preserves_last_value_for_duplicate_keys
()
crates/ty_python_core/src/frozen.rs:336
Functionfrozen_value_map_deduplicates_values
()
crates/ty_python_core/src/frozen.rs:360
Functionfrozen_value_map_preserves_last_value_for_duplicate_keys
()
crates/ty_python_core/src/frozen.rs:373
Functionfrozen_value_map_updates_and_rededuplicates_values
()
crates/ty_python_core/src/frozen.rs:380
Functionfrozen_value_map_uses_less_heap_for_repeated_large_values
()
crates/ty_python_core/src/frozen.rs:393
Functionfrozenset_also_okay
(value=frozenset())
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:26
Functionfscope_id_missing_function_identifier3
()
crates/ty_ide/src/completion.rs:6311
Methodfstring
(self, x)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:116
Functionfstring_number_format_python_311
()
crates/ruff_linter/src/rules/refurb/mod.rs:94
Functionfstring_single_quote_escape_eol
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:2372
Functionfstring_with_mixed_literals
()
crates/ty_ide/src/semantic_tokens.rs:4459
Functionfu
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_16.py:8
Functionfu
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_17.py:9
Functionfu
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_15.py:4
Functionfull_diagnostic_output
()
crates/ty_server/tests/e2e/publish_diagnostics.rs:42
Methodfull_line_str
(&self, offset: TextSize)
crates/ruff_source_file/src/line_ranges.rs:377
Methodfull_lines_str
(&self, range: TextRange)
crates/ruff_source_file/src/line_ranges.rs:393
Methodfull_lines_str
(&self, range: TextRange)
crates/ruff_linter/src/locator.rs:187
Functionfull_output_format
()
crates/ruff/tests/integration_test.rs:986
Functionfull_output_preview
()
crates/ruff/tests/integration_test.rs:935
Functionfull_output_preview_config
()
crates/ruff/tests/integration_test.rs:957
Methodfull_range
(self, db: &'db dyn Db, module: &ParsedModuleRef)
crates/ty_python_core/src/definition.rs:112
Methodfullname
(self)
python/ruff-ecosystem/ruff_ecosystem/projects.py:370
Functionfully_static_paramspec_value_has_no_dynamic_content
()
crates/ty_python_semantic/src/types/visitor.rs:1193
Functionfun
()
crates/ty_python_semantic/resources/corpus/74_class_super_nested.py:1
Methodfun
(self)
crates/ruff_linter/resources/test/fixtures/ruff/RUF052_0.py:91
Functionfun_with_params_no_docstring
(a, b=''' not a ''' '''docstring''')
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_singles_function.py:15
Functionfun_with_params_no_docstring
(a, b=""" not a """ """docstring""")
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_doubles_function.py:15
Functionfun_with_params_no_docstring2
(a, b=c[foo():], c=\ ''' not a docstring ''')
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_singles_function.py:21
Functionfun_with_params_no_docstring2
(a, b=c[foo():], c=\ """ not a docstring """)
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_doubles_function.py:21
Functionfun_with_python_syntax
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF033.py:116
Functionfunc
(lotsoflongargs: T, lotsoflongargs2: T, lotsoflongargs3: T, lotsoflongargs4: T, lotsoflongargs5: T)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:438
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/decorators.py:7
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/newlines.py:1
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_comments7.py:46
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/async_stmts.py:1
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function_trailing_comma.py:40
Functionfunc
( arg1, arg2, )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/long_strings__type_annotations.py:1
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_params.py:1
← previousnext →21,401–21,500 of 31,766, ranked by callers