MCPcopy Create free account

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

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

Functionparameters_overlong_subscript_return_type_with_overlong_single_element
( a )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:134
Functionparameters_overlong_subscript_return_type_with_single_element
( a )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:105
Functionparameters_string_return_type
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:10
Functionparameters_subscript_return_type
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:100
Functionparameters_subscript_return_type_multiple_elements
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:111
Functionparameters_subscript_return_type_multiple_overlong_elements
(a)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:118
Functionparameters_subscriptreturn_type_with_overlong_value_
( a )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:125
Functionparams_on_their_own_line
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:106
Methodparamspec
(db: &'db dyn Db, typevar: BoundTypeVarInstance<'db>)
crates/ty_python_semantic/src/types/signatures.rs:5448
Methodparamspec
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
Functionparamspec_declared_bounds_specialize_only_free_typevars
()
crates/ty_python_semantic/src/types/constraints/sequents.rs:2317
Functionparamspec_identity_specialization_preserves_source_positions
()
crates/ty_python_semantic/src/types/signatures.rs:6793
Functionparamspec_local_typevars_require_evidence_for_specialization
()
crates/ty_python_semantic/src/types/constraints/sequents.rs:2263
Functionparamspec_validity_substitution_expands_free_paramspec_overloads
()
crates/ty_python_semantic/src/types/constraints/sequents.rs:2374
Methodparamspec_value
(db: &'db dyn Db, parameters: Parameters<'db>)
crates/ty_python_semantic/src/types/callable.rs:824
Methodparamspec_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
Methodparamspec_value_from_signatures
( db: &'db dyn Db, signatures: CallableSignature<'db>, )
crates/ty_python_semantic/src/types/callable.rs:831
Functionparamspec_value_materializations_do_not_add_return_type
()
crates/ty_python_semantic/src/types/callable.rs:1245
Methodparent
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
Functionparent_configuration_override
()
crates/ruff/tests/cli/lint.rs:469
Methodparent_id
(&self, node_id: BranchId)
crates/ruff_python_semantic/src/branches.rs:35
Functionparent_ignore_file_disables_root_gitignore_pruning
()
crates/ruff_db/src/system/os/ignore.rs:134
Methodparent_scope
(&self, scope_id: FileScopeId)
crates/ty_python_core/src/lib.rs:553
Methodparent_state
( expression: &MemberExprRef<'a>, symbols: &'a SymbolTable, members: &'a MemberTable,
crates/ty_python_core/src/place.rs:539
Functionparentheses_no_params
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:15
Functionparentheses_no_params_multiline
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:27
Functionparentheses_with_params
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:20
Functionparenthesize_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
Functionparenthesized
()
crates/ruff_linter/src/rules/pyupgrade/fixes.rs:116
Functionparenthesized_callee
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF057.py:98
Functionparenthesized_callee
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF046.py:220
Functionparenthesized_expression
()
crates/ruff_python_formatter/src/comments/mod.rs:674
Functionparenthesized_expression
()
crates/mdtest/src/matcher.rs:1229
Functionparenthesized_item
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:58
Functionparenthesized_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
Functionparenthesized_ranges
()
crates/ruff_python_formatter/src/expression/parentheses.rs:441
Functionparenthesized_trailing_comment
()
crates/ruff_python_formatter/src/comments/mod.rs:689
Functionparenthesized_tuple
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP052.py:63
Functionparse
(expression: &str)
crates/ruff_python_semantic/src/analyze/type_inference.rs:462
Methodparse
(input: ParseStream)
crates/ruff_macros/src/cache_key.rs:132
Methodparse
( iter: &mut ParseIter<I>, context: CFormatContext, )
crates/ruff_python_literal/src/cformat.rs:139
Methodparse
(content: &'a str, len: usize)
crates/ty_ide/src/docstring/markdown/general/inline.rs:372
Methodparse
Attempt to parse a single field list from the given lines of a docstring.
crates/ty_ide/src/docstring/document/rst.rs:159
Methodparse_all
Parse all the field lists in the given lines of a docstring.
crates/ty_ide/src/docstring/document/rst.rs:135
Methodparse_at
(contents: &[u8], index: usize)
crates/ruff_python_ast/src/script.rs:71
Methodparse_attribute_argument
(argument: &'a str)
crates/ty_ide/src/docstring/document/rst.rs:603
Methodparse_attribute_name
(name: &'a str)
crates/ty_ide/src/docstring/document/rst.rs:613
Functionparse_basic_str_escape_multiline
(src: str, pos: Pos)
crates/ruff_benchmark/resources/tomllib/_parser.py:497
Functionparse_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
Functionparse_doc
Parse a `doc` attribute into it a string literal.
crates/ruff_macros/src/config.rs:141
Functionparse_empty_codes
()
crates/ruff_linter/src/suppression.rs:2707
Functionparse_err
(glob: &str)
crates/ty_project/src/glob/portable.rs:303
Functionparse_error_extends
()
crates/ruff/tests/cli/lint.rs:804
Functionparse_error_not_included
()
crates/ruff/tests/integration_test.rs:914
Methodparse_escaped_unicode_string
(text: &str)
crates/ruff_python_literal/src/format.rs:695
Functionparse_fstring_error
(source: &str)
crates/ruff_python_parser/src/string.rs:625
Functionparse_fstring_nested_spec_grows_stack
()
crates/ruff_python_parser/src/string.rs:586
Methodparse_header
(line: ParsedLine<'_>)
crates/ty_ide/src/docstring/document/google.rs:291
Functionparse_invalid_action
()
crates/ruff_linter/src/suppression.rs:2677
Methodparse_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
Methodparse_literal
(text: &str, is_raw: bool)
crates/ruff_python_literal/src/format.rs:591
Methodparse_literal_single
(text: &str)
crates/ruff_python_literal/src/format.rs:574
Methodparse_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
Methodparse_metadata_output
Parses and validates the output returned by [`Self::execute`].
crates/ty_project/src/uv/command.rs:129
Functionparse_missing_bracket
()
crates/ruff_linter/src/suppression.rs:2722
Functionparse_missing_codes
()
crates/ruff_linter/src/suppression.rs:2692
Functionparse_missing_comma
()
crates/ruff_linter/src/suppression.rs:2737
Methodparse_named_item
(line: ParsedLine<'a>, following_lines: &[ParsedLine<'_>])
crates/ty_ide/src/docstring/document/numpy.rs:618
Methodparse_no_redirect
Parse [`RuleSelector`] from a string; but do not follow redirects.
crates/ruff_linter/src/rule_selector.rs:437
Methodparse_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
Methodparse_parameter_name
Normalizes a parameter name into display and lookup identifiers.
crates/ty_ide/src/docstring/document/rst.rs:619
Methodparse_part
( chars: &mut impl PeekingNext<Item = char>, )
crates/ruff_python_literal/src/format.rs:481
Methodparse_part_in_brackets
(text: &str)
crates/ruff_python_literal/src/format.rs:626
Methodparse_raise_item
(line: ParsedLine<'a>)
crates/ty_ide/src/docstring/document/numpy.rs:683
Methodparse_ref
( &self, cmd: &clap::Command, arg: Option<&clap::Arg>, value: &std::ffi::OsStr
crates/ruff/src/args.rs:989
Methodparse_ref
( &self, cmd: &clap::Command, arg: Option<&clap::Arg>, value: &std::ffi::OsStr
crates/ruff/src/commands/completions/config.rs:113
Methodparse_ref
( &self, _cmd: &clap::Command, _arg: Option<&clap::Arg>, value
crates/ruff_linter/src/rule_selector.rs:510
Methodparse_ref
( &self, cmd: &clap::Command, arg: Option<&clap::Arg>, value:
crates/ruff_linter/src/registry.rs:475
Methodparse_return_item
(line: ParsedLine<'a>, following_lines: &[ParsedLine<'_>])
crates/ty_ide/src/docstring/document/numpy.rs:646
Functionparse_seed_argument
Helper for argument parsing
python/py-fuzzer/fuzz.py:793
Methodparse_spec
( text: &str, allow_nesting: AllowPlaceholderNesting, )
crates/ruff_python_literal/src/format.rs:660
Methodparse_supported
Categorizes a supported field, returning `None` only for an unknown field name.
crates/ty_ide/src/docstring/document/rst.rs:533
Functionparse_tstring_error
(source: &str)
crates/ruff_python_parser/src/string.rs:742
Functionparse_tstring_nested_spec_grows_stack
()
crates/ruff_python_parser/src/string.rs:703
Methodparse_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
Functionparse_unchecked_source
Parse the given Python source code using the specified [`PySourceType`].
crates/ruff_python_parser/src/lib.rs:294
Methodparse_unicode_literal
(&mut self)
crates/ruff_python_parser/src/string.rs:156
Functionparse_unrelated_comment
()
crates/ruff_linter/src/suppression.rs:2662
Functionparser_no_panic
()
crates/ty_python_semantic/tests/corpus.rs:35
Functionparser_preserves_supported_and_unknown_fields
()
crates/ty_ide/src/docstring/document/rst.rs:832
Functionparser_quick_test
()
crates/ruff_python_parser/tests/fixtures.rs:307
Functionparser_records_field_list_ranges
()
crates/ty_ide/src/docstring/document/rst.rs:904
Functionparser_recovers_after_dedented_doctest
()
crates/ty_ide/src/docstring/document/rst.rs:1115
Functionparser_recovers_from_partial_and_malformed_fields
()
crates/ty_ide/src/docstring/document/rst.rs:960
Functionparser_supports_complex_inline_parameter_types
()
crates/ty_ide/src/docstring/document/rst.rs:772
Functionparser_treats_indented_field_like_text_as_continuation
()
crates/ty_ide/src/docstring/document/rst.rs:1003
Functionparses_attributes_without_descriptions
()
crates/ty_ide/src/docstring/document/numpy.rs:1284
Functionparses_named_and_anonymous_return_items
()
crates/ty_ide/src/docstring/document/numpy.rs:1314
Functionparses_parenthesized_type_with_quoted_parenthesis
()
crates/ty_ide/src/docstring/document/google.rs:1043
Functionparsing_pyvenv_cfg_with_key_but_no_value_fails
()
crates/ty_site_packages/src/lib.rs:3084
← previousnext →26,401–26,500 of 31,562, ranked by callers