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
Function
parameters_overlong_subscript_return_type_with_overlong_single_element
( a )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:134
Function
parameters_overlong_subscript_return_type_with_single_element
( a )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:105
Function
parameters_string_return_type
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:10
Function
parameters_subscript_return_type
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:100
Function
parameters_subscript_return_type_multiple_elements
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:111
Function
parameters_subscript_return_type_multiple_overlong_elements
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:118
Function
parameters_subscriptreturn_type_with_overlong_value_
( a )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:125
Function
params_on_their_own_line
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:106
Method
paramspec
(db: &'db dyn Db, typevar: BoundTypeVarInstance<'db>)
crates/ty_python_semantic/src/types/signatures.rs:5448
Method
paramspec
Creates a context for an argument forwarded through a `ParamSpec` component. `paramspec_parameter_type` is the original `P.args` or `P.kwargs` lookup
crates/ty_python_semantic/src/types/call/bind.rs:8377
Function
paramspec_declared_bounds_specialize_only_free_typevars
()
crates/ty_python_semantic/src/types/constraints/sequents.rs:2317
Function
paramspec_identity_specialization_preserves_source_positions
()
crates/ty_python_semantic/src/types/signatures.rs:6793
Function
paramspec_local_typevars_require_evidence_for_specialization
()
crates/ty_python_semantic/src/types/constraints/sequents.rs:2263
Function
paramspec_validity_substitution_expands_free_paramspec_overloads
()
crates/ty_python_semantic/src/types/constraints/sequents.rs:2374
Method
paramspec_value
(db: &'db dyn Db, parameters: Parameters<'db>)
crates/ty_python_semantic/src/types/callable.rs:824
Method
paramspec_value_callable
Create a non-overloaded callable type which represents the value bound to a `ParamSpec` type variable.
crates/ty_python_semantic/src/types/callable.rs:169
Method
paramspec_value_from_signatures
( db: &'db dyn Db, signatures: CallableSignature<'db>, )
crates/ty_python_semantic/src/types/callable.rs:831
Function
paramspec_value_materializations_do_not_add_return_type
()
crates/ty_python_semantic/src/types/callable.rs:1245
Method
parent
Returns the offset of the parent statement for this diagnostic if it exists. This is primarily used for checking noqa/secondary code suppressions.
crates/ruff_db/src/diagnostic/mod.rs:424
Function
parent_configuration_override
()
crates/ruff/tests/cli/lint.rs:469
Method
parent_id
(&self, node_id: BranchId)
crates/ruff_python_semantic/src/branches.rs:35
Function
parent_ignore_file_disables_root_gitignore_pruning
()
crates/ruff_db/src/system/os/ignore.rs:134
Method
parent_scope
(&self, scope_id: FileScopeId)
crates/ty_python_core/src/lib.rs:553
Method
parent_state
( expression: &MemberExprRef<'a>, symbols: &'a SymbolTable, members: &'a MemberTable,
crates/ty_python_core/src/place.rs:539
Function
parentheses_no_params
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:15
Function
parentheses_no_params_multiline
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:27
Function
parentheses_with_params
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:20
Function
parenthesize_test
Parenthesize an expression for use in an `or` operator (e.g., parenthesize `x` in `x or y`), if it's required to maintain the correct order of operati
crates/ruff_linter/src/rules/refurb/rules/if_exp_instead_of_or_operator.rs:105
Function
parenthesized
()
crates/ruff_linter/src/rules/pyupgrade/fixes.rs:116
Function
parenthesized_callee
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF057.py:98
Function
parenthesized_callee
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF046.py:220
Function
parenthesized_expression
()
crates/ruff_python_formatter/src/comments/mod.rs:674
Function
parenthesized_expression
()
crates/mdtest/src/matcher.rs:1229
Function
parenthesized_item
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:58
Function
parenthesized_range
Returns the [`TextRange`] of a given expression including parentheses, if the expression is parenthesized; or `None`, if the expression is not parenth
crates/ruff_python_ast/src/token/parentheses.rs:56
Function
parenthesized_ranges
()
crates/ruff_python_formatter/src/expression/parentheses.rs:441
Function
parenthesized_trailing_comment
()
crates/ruff_python_formatter/src/comments/mod.rs:689
Function
parenthesized_tuple
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:63
Function
parse
(expression: &str)
crates/ruff_python_semantic/src/analyze/type_inference.rs:462
Method
parse
(input: ParseStream)
crates/ruff_macros/src/cache_key.rs:132
Method
parse
( iter: &mut ParseIter<I>, context: CFormatContext, )
crates/ruff_python_literal/src/cformat.rs:139
Method
parse
(content: &'a str, len: usize)
crates/ty_ide/src/docstring/markdown/general/inline.rs:372
Method
parse
Attempt to parse a single field list from the given lines of a docstring.
crates/ty_ide/src/docstring/document/rst.rs:159
Method
parse_all
Parse all the field lists in the given lines of a docstring.
crates/ty_ide/src/docstring/document/rst.rs:135
Method
parse_at
(contents: &[u8], index: usize)
crates/ruff_python_ast/src/script.rs:71
Method
parse_attribute_argument
(argument: &'a str)
crates/ty_ide/src/docstring/document/rst.rs:603
Method
parse_attribute_name
(name: &'a str)
crates/ty_ide/src/docstring/document/rst.rs:613
Function
parse_basic_str_escape_multiline
(src: str, pos: Pos)
crates/ruff_benchmark/resources/tomllib/_parser.py:497
Function
parse_bool
Parse a boolean value bool or type(default) Raises `ValueError` ê>>> all(parse_bool(x) for x in [True, "yes", "Yes", "true", "True", "o
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC501.py:2
Function
parse_doc
Parse a `doc` attribute into it a string literal.
crates/ruff_macros/src/config.rs:141
Function
parse_empty_codes
()
crates/ruff_linter/src/suppression.rs:2707
Function
parse_err
(glob: &str)
crates/ty_project/src/glob/portable.rs:303
Function
parse_error_extends
()
crates/ruff/tests/cli/lint.rs:804
Function
parse_error_not_included
()
crates/ruff/tests/integration_test.rs:914
Method
parse_escaped_unicode_string
(text: &str)
crates/ruff_python_literal/src/format.rs:695
Function
parse_fstring_error
(source: &str)
crates/ruff_python_parser/src/string.rs:625
Function
parse_fstring_nested_spec_grows_stack
()
crates/ruff_python_parser/src/string.rs:586
Method
parse_header
(line: ParsedLine<'_>)
crates/ty_ide/src/docstring/document/google.rs:291
Function
parse_invalid_action
()
crates/ruff_linter/src/suppression.rs:2677
Method
parse_list_member
Parses either a valid field header or a malformed header for a supported field.
crates/ty_ide/src/docstring/document/rst.rs:398
Method
parse_literal
(text: &str, is_raw: bool)
crates/ruff_python_literal/src/format.rs:591
Method
parse_literal_single
(text: &str)
crates/ruff_python_literal/src/format.rs:574
Method
parse_malformed_supported_field
Recognizes malformed syntax for a supported field so it remains part of the surrounding field list and prevents partial structured rendering.
crates/ty_ide/src/docstring/document/rst.rs:462
Method
parse_metadata_output
Parses and validates the output returned by [`Self::execute`].
crates/ty_project/src/uv/command.rs:129
Function
parse_missing_bracket
()
crates/ruff_linter/src/suppression.rs:2722
Function
parse_missing_codes
()
crates/ruff_linter/src/suppression.rs:2692
Function
parse_missing_comma
()
crates/ruff_linter/src/suppression.rs:2737
Method
parse_named_item
(line: ParsedLine<'a>, following_lines: &[ParsedLine<'_>])
crates/ty_ide/src/docstring/document/numpy.rs:618
Method
parse_no_redirect
Parse [`RuleSelector`] from a string; but do not follow redirects.
crates/ruff_linter/src/rule_selector.rs:437
Method
parse_parameter_argument
Parses a parameter name and an optional parameter type from a raw field argument. Returns None if we fail to parse the argument.
crates/ty_ide/src/docstring/document/rst.rs:580
Method
parse_parameter_name
Normalizes a parameter name into display and lookup identifiers.
crates/ty_ide/src/docstring/document/rst.rs:619
Method
parse_part
( chars: &mut impl PeekingNext<Item = char>, )
crates/ruff_python_literal/src/format.rs:481
Method
parse_part_in_brackets
(text: &str)
crates/ruff_python_literal/src/format.rs:626
Method
parse_raise_item
(line: ParsedLine<'a>)
crates/ty_ide/src/docstring/document/numpy.rs:683
Method
parse_ref
( &self, cmd: &clap::Command, arg: Option<&clap::Arg>, value: &std::ffi::OsStr
crates/ruff/src/args.rs:989
Method
parse_ref
( &self, cmd: &clap::Command, arg: Option<&clap::Arg>, value: &std::ffi::OsStr
crates/ruff/src/commands/completions/config.rs:113
Method
parse_ref
( &self, _cmd: &clap::Command, _arg: Option<&clap::Arg>, value
crates/ruff_linter/src/rule_selector.rs:510
Method
parse_ref
( &self, cmd: &clap::Command, arg: Option<&clap::Arg>, value:
crates/ruff_linter/src/registry.rs:475
Method
parse_return_item
(line: ParsedLine<'a>, following_lines: &[ParsedLine<'_>])
crates/ty_ide/src/docstring/document/numpy.rs:646
Function
parse_seed_argument
Helper for argument parsing
python/py-fuzzer/fuzz.py:793
Method
parse_spec
( text: &str, allow_nesting: AllowPlaceholderNesting, )
crates/ruff_python_literal/src/format.rs:660
Method
parse_supported
Categorizes a supported field, returning `None` only for an unknown field name.
crates/ty_ide/src/docstring/document/rst.rs:533
Function
parse_tstring_error
(source: &str)
crates/ruff_python_parser/src/string.rs:742
Function
parse_tstring_nested_spec_grows_stack
()
crates/ruff_python_parser/src/string.rs:703
Method
parse_type_param
Parses a type parameter. See: <https://docs.python.org/3/reference/compound_stmts.html#grammar-token-python-grammar-type_param>
crates/ruff_python_parser/src/parser/statement.rs:3665
Function
parse_unchecked_source
Parse the given Python source code using the specified [`PySourceType`].
crates/ruff_python_parser/src/lib.rs:294
Method
parse_unicode_literal
(&mut self)
crates/ruff_python_parser/src/string.rs:156
Function
parse_unrelated_comment
()
crates/ruff_linter/src/suppression.rs:2662
Function
parser_no_panic
()
crates/ty_python_semantic/tests/corpus.rs:35
Function
parser_preserves_supported_and_unknown_fields
()
crates/ty_ide/src/docstring/document/rst.rs:832
Function
parser_quick_test
()
crates/ruff_python_parser/tests/fixtures.rs:307
Function
parser_records_field_list_ranges
()
crates/ty_ide/src/docstring/document/rst.rs:904
Function
parser_recovers_after_dedented_doctest
()
crates/ty_ide/src/docstring/document/rst.rs:1115
Function
parser_recovers_from_partial_and_malformed_fields
()
crates/ty_ide/src/docstring/document/rst.rs:960
Function
parser_supports_complex_inline_parameter_types
()
crates/ty_ide/src/docstring/document/rst.rs:772
Function
parser_treats_indented_field_like_text_as_continuation
()
crates/ty_ide/src/docstring/document/rst.rs:1003
Function
parses_attributes_without_descriptions
()
crates/ty_ide/src/docstring/document/numpy.rs:1284
Function
parses_named_and_anonymous_return_items
()
crates/ty_ide/src/docstring/document/numpy.rs:1314
Function
parses_parenthesized_type_with_quoted_parenthesis
()
crates/ty_ide/src/docstring/document/google.rs:1043
Function
parsing_pyvenv_cfg_with_key_but_no_value_fails
()
crates/ty_site_packages/src/lib.rs:3084
← previous
next →
26,401–26,500 of 31,562, ranked by callers