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
Method
from_slice
(segments: &[&'a str])
crates/ruff_python_ast/src/name.rs:666
Function
from_slice_heap
()
crates/ruff_python_ast/src/name.rs:991
Function
from_slice_stack
()
crates/ruff_python_ast/src/name.rs:975
Function
from_slice_stack_capacity
()
crates/ruff_python_ast/src/name.rs:983
Method
from_sorted
Builds an index from values sorted by interval start, retaining their input order.
crates/ty_python_semantic/src/suppression.rs:861
Method
from_source
(source: &str)
crates/ty_test/src/config.rs:104
Method
from_source
(source_code: &'a str)
crates/ruff_wasm/src/lib.rs:530
Method
from_source
Create a new token source from the given source code which starts at the given offset.
crates/ruff_python_parser/src/token_source.rs:31
Method
from_source
( db: &'db dyn Db, env: &'a ProgramEnvironment<'db>, index: &'db SemanticIndex<'db>,
crates/ty_python_semantic/src/place_load.rs:65
Method
from_source_code
Read the Jupyter Notebook from its JSON string.
crates/ruff_notebook/src/notebook.rs:89
Method
from_source_code
Read the [`SourceKind`] from the given source code. Returns `None` if the source is a TOML file.
crates/ruff_linter/src/source_kind.rs:138
Method
from_source_code
Create a [`DisplayParseError`] from a [`ParseError`] and a [`SourceCode`].
crates/ruff_linter/src/logging.rs:193
Method
from_source_error
Generate [`Diagnostics`] based on a [`SourceError`].
crates/ruff/src/diagnostics.rs:57
Method
from_source_kind
Create a [`DisplayParseError`] from a [`ParseError`] and a [`SourceKind`].
crates/ruff_linter/src/logging.rs:176
Method
from_source_range
Analyse the source range for a multiline Python tuple/list that represents an `__all__`/`__slots__`/etc. definition or augmentation. Return `None` if
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:402
Method
from_source_text
Builds the [`LineIndex`] from the source text of a file.
crates/ruff_source_file/src/line_index.rs:31
Method
from_source_type
(source_type: PySourceType)
crates/ruff_python_formatter/src/options.rs:112
Method
from_split
( kind: SectionKind, (raw_name, inline_description): (&'a str, &'a str), also_parses_a
crates/ty_ide/src/docstring/document/google.rs:745
Method
from_statement
( with: &'a StmtWith, context: &PyFormatContext, parenthesized_comments: &[SourceComme
crates/ruff_python_formatter/src/statement/stmt_with.rs:252
Method
from_static_class
(db: &'db dyn Db, class: StaticClassLiteral<'db>)
crates/ty_python_semantic/src/types/class.rs:196
Method
from_std_path
(path: &Path)
crates/ruff_db/src/system/path.rs:406
Method
from_step
(step: NonZeroI32)
crates/ty_python_semantic/src/types/tuple.rs:1519
Method
from_stmt
(stmt: &Stmt, source: &str)
crates/ruff_python_formatter/src/verbatim.rs:684
Method
from_stmt
(stmt: &Stmt)
crates/ruff_linter/src/rules/refurb/rules/repeated_global.rs:122
Method
from_stmt
(stmt: &'a Stmt)
crates/ruff_linter/src/rules/ruff/rules/non_empty_init_module.rs:163
Method
from_stmt
(stmt: &'a Stmt)
crates/ruff_linter/src/rules/pylint/rules/swap_with_temporary_variable.rs:162
Method
from_str
(s: &str)
crates/ty_project/src/metadata/python_version.rs:121
Method
from_str
(s: &str)
crates/ruff_source_file/src/line_index.rs:682
Method
from_str
(s: &str)
crates/ruff_python_literal/src/format.rs:468
Method
from_str
(text: &str)
crates/ruff_python_literal/src/cformat.rs:126
Method
from_str
(name: &str)
crates/ty_server/src/capabilities.rs:77
Method
from_str
(s: &str)
crates/ty_module_resolver/src/typeshed.rs:161
Method
from_str
(s: &str)
crates/ruff_python_formatter/src/options.rs:296
Method
from_str
(s: &str)
crates/ruff_python_formatter/src/string/docstring.rs:1659
Method
from_str
(text: &str, flags: AnyStringFlags, preferred_quote: Quote)
crates/ruff_python_formatter/src/string/normalize.rs:321
Method
from_str
(value: &str)
crates/ruff/src/args.rs:1186
Method
from_str
(s: &str)
crates/ruff/src/commands/completions/config.rs:91
Method
from_str
(name: &str)
crates/ruff_server/src/server.rs:364
Method
from_str
(s: &str)
crates/ruff_python_ast/src/python_version.rs:160
Method
from_str
Parse an [`Int`] from a string.
crates/ruff_python_ast/src/int.rs:13
Method
from_str
(s: &str)
crates/ruff_python_parser/src/lib.rs:600
Method
from_str
(source: &'a str)
crates/mdtest/src/assertion.rs:364
Method
from_str
(self, s: str)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_27.py:13
Method
from_str
(self, s: str)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_26.py:18
Method
from_str
(s: &str)
crates/ruff_linter/src/line_width.rs:96
Method
from_str
(s: &str)
crates/ruff_linter/src/rule_selector.rs:194
Method
from_str
(s: &str)
crates/ruff_linter/src/directives.rs:351
Method
from_str
(s: &str)
crates/ruff_linter/src/docstrings/sections.rs:55
Method
from_str
(s: &str)
crates/ruff_linter/src/settings/types.rs:243
Method
from_str
Parses the base from a string.
crates/ruff_linter/src/rules/refurb/rules/fstring_number_format.rs:237
Method
from_str
(value: &str)
crates/ruff_linter/src/rules/ruff/rules/explicit_f_string_type_conversion.rs:236
Method
from_str
(s: &str)
crates/ruff_linter/src/rules/ruff/rules/unraw_re_pattern.rs:120
Method
from_str
(s: &str)
crates/ruff_linter/src/rules/pylint/rules/bad_str_strip_call.rs:108
Method
from_str
(value: &str)
crates/ruff_linter/src/rules/pyupgrade/rules/native_literals.rs:26
Method
from_str
(source_code: &str)
crates/ruff_linter/src/fix/snippet.rs:12
Method
from_str2
(self, s: str)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_27.py:14
Method
from_str2
(self, s: str)
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_26.py:19
Method
from_str_radix
Parse an [`Int`] from a string with a given radix, like `0x95D`. Takes, as input, the numerical portion (`95D`), the parsed base (`16`), and the enti
crates/ruff_python_ast/src/int.rs:48
Method
from_string
(text: &str)
crates/ruff_python_literal/src/format.rs:39
Method
from_string
Creates a Calculator instance from a string representation of a number. Args: value_str (str): The string representing t
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC102_google.py:170
Method
from_string
Creates a Calculator instance from a string representation of a number. Parameters ---------- value_str : str
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC102_numpy.py:224
Method
from_sub_diagnostic
Resolve a single sub-diagnostic.
crates/ruff_db/src/diagnostic/render.rs:196
Method
from_support
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut ConstraintSetStorage<'
crates/ty_python_semantic/src/types/constraints/solutions.rs:1895
Method
from_symbol
(value: &str)
crates/ruff_linter/src/rules/refurb/rules/subclass_builtin.rs:143
Method
from_system
(system: &dyn System, path: &SystemPath)
crates/ty_project/src/watch.rs:175
Method
from_system
Resolves the mode configured by the `TY_UV` environment variable.
crates/ty_project/src/uv.rs:49
Method
from_target_version
(target_version: PythonVersion)
crates/ruff_linter/src/rules/ruff/rules/quadratic_list_summation.rs:85
Method
from_test_nodes
Creates a constraint graph from compacted interior nodes for use by downstream tests. The nodes must satisfy the same ordering and allocation invaria
crates/ty_python_core/src/narrowing_constraints.rs:106
Method
from_text
(text: &str, indent_width: IndentWidth)
crates/ruff_formatter/src/format_element.rs:511
Method
from_text
(original: &'a str, modified: &'a str, path: Option<&'a Path>)
crates/ruff_linter/src/source_kind.rs:209
Method
from_text_document
(document: &TextDocument)
crates/ty_server/src/session.rs:1922
Method
from_text_range
( text_range: ruff_text_size::TextRange, line_index: &LineIndex, source: &str,
crates/ty_wasm/src/lib.rs:1117
Method
from_text_size
( offset: TextSize, line_index: &LineIndex, source: &str, position_encoding: P
crates/ty_wasm/src/lib.rs:1196
Method
from_text_slow
(text: &str, indent_width: IndentWidth, mut width: u32)
crates/ruff_formatter/src/format_element.rs:531
Method
from_tokens
(tokens: &Tokens, source: &'a str)
crates/ruff_python_codegen/src/stylist.rs:39
Method
from_tokens
( source: &str, tokens: &Tokens, indexer: &Indexer, settings: &LinterSettings,
crates/ruff_linter/src/suppression.rs:273
Method
from_tokens
(tokens: &Tokens, locator: &'a Locator<'a>)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/mod.rs:62
Method
from_tokens
(tokens: &Tokens, source: &str)
crates/ruff_python_index/src/indexer.rs:32
Method
from_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
Method
from_toml_str
( content: &str, source: ValueSource, )
crates/ty_project/src/metadata/pyproject.rs:36
Method
from_toml_str
(content: &str, source: ValueSource)
crates/ty_project/src/metadata/options.rs:135
Method
from_toml_table
Deserialize inline configuration in one crate, avoiding repeated code generation.
crates/ruff_workspace/src/options.rs:522
Method
from_transformer_params
(db: &'db dyn Db, params: DataclassTransformerParams<'db>)
crates/ty_python_semantic/src/types.rs:2033
Method
from_truthiness
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, truthiness: Truthiness, )
crates/ty_python_semantic/src/types.rs:11084
Method
from_try_stmt
( ast::StmtTry { handlers, .. }: &ast::StmtTry, semantic: &SemanticModel, )
crates/ruff_python_semantic/src/binding.rs:711
Method
from_two_elements
Create a union type `A | B` from two elements `A` and `B`.
crates/ty_python_semantic/src/types/set_theoretic.rs:140
Method
from_ty
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>, )
crates/ty_ide/src/goto.rs:262
Method
from_type
(member: ProtocolPropertyType<'db>)
crates/ty_python_semantic/src/types/protocol_class.rs:1062
Method
from_type
(ty: Type<'db>)
crates/ty_python_semantic/src/types/unpacker.rs:565
Method
from_type
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/cyclic.rs:248
Method
from_type
Inspect a body without specializing it; `scope` resolves variables in an open graph body.
crates/ty_python_semantic/src/types/type_alias.rs:49
Method
from_type
Resolve a boolean configuration value from its inferred type.
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:544
Method
from_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
Method
from_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
Method
from_type
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder/named_tuple.rs:771
Method
from_type_alias_class
(class: KnownClass)
crates/ty_python_semantic/src/types.rs:761
Method
from_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:12833
Method
from_type_expression
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/union_type_instance.rs:104
Method
from_type_expression
(db: &'db dyn Db, ty: Type<'db>)
crates/ty_python_semantic/src/types/type_form.rs:24
Method
from_type_inner
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>,
crates/ty_python_semantic/src/types/equality/enums.rs:396
← previous
next →
21,201–21,300 of 31,562, ranked by callers