MCPcopy Create free account

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

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

Functiongoto_type_string_annotation_too_nested2
()
crates/ty_ide/src/goto_type_definition.rs:1180
Functiongoto_type_string_annotation_unknown
()
crates/ty_ide/src/goto_type_definition.rs:1008
Functiongoto_type_submodule_import_from_confusing_real_def
()
crates/ty_ide/src/goto_type_definition.rs:2011
Functiongoto_type_submodule_import_from_confusing_shadowed_def
()
crates/ty_ide/src/goto_type_definition.rs:1976
Functiongoto_type_submodule_import_from_confusing_use
()
crates/ty_ide/src/goto_type_definition.rs:2045
Functiongoto_type_submodule_import_from_def
()
crates/ty_ide/src/goto_type_definition.rs:1870
Functiongoto_type_submodule_import_from_use
()
crates/ty_ide/src/goto_type_definition.rs:1835
Functiongoto_type_submodule_import_from_wrong_def
()
crates/ty_ide/src/goto_type_definition.rs:1940
Functiongoto_type_submodule_import_from_wrong_use
()
crates/ty_ide/src/goto_type_definition.rs:1905
Functiongoto_type_typevar_name_binding
()
crates/ty_ide/src/goto_type_definition.rs:1446
Functiongoto_type_typevar_name_stmt
()
crates/ty_ide/src/goto_type_definition.rs:1424
Functiongoto_type_typevar_spec_binding
()
crates/ty_ide/src/goto_type_definition.rs:1491
Functiongoto_type_typevar_spec_stmt
()
crates/ty_ide/src/goto_type_definition.rs:1468
Functiongoto_type_typevar_tuple_binding
()
crates/ty_ide/src/goto_type_definition.rs:1514
Functiongoto_type_typevar_tuple_stmt
()
crates/ty_ide/src/goto_type_definition.rs:1503
Functiongradual_callable_shrinks_to_empty_parameter_list
()
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:856
Functiongradual_equivalence_preserves_alternative_bounds
()
crates/ty_python_semantic/src/types/constraints.rs:6022
Methodgradual_form
Return parameters that represents a gradual form using `...` as the only parameter. Internally, this is represented as `(*Any, **Any)` that accepts p
crates/ty_python_semantic/src/types/signatures.rs:5436
Functiongradual_receiver_constraints_are_retained
()
crates/ty_python_semantic/src/types/signatures.rs:6843
Methodgrault
Yield the grault.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:35
Methodgraze
(cls, x, y, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:26
Methodgraze
(cls, x, y, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:43
Methodgreeting_1
(self)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:10
Methodgreeting_1
(self)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:148
Methodgreeting_2
(self)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:13
Methodgroup_diagnostics
(diagnostics: &[Diagnostic])
crates/ty_python_semantic/src/fixes.rs:2120
Methodgroup_id
Creates a new group id that is unique to this document. The passed debug name is used in the [`std::fmt::Debug`] of the document if this is a debug bu
crates/ruff_formatter/src/lib.rs:971
Methodgroup_id
Creates a new group id that is unique to this document. The passed debug name is used in the [`std::fmt::Debug`] of the document if this is a debug bu
crates/ruff_formatter/src/formatter.rs:49
Methodgrow
(self, x, y, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:22
Methodgrow
(self, x, y, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:39
Functionh
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:150
Functionh
Statements that are only allowed in async function bodies
crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_empty.py:32
Functionh
Statements that are only allowed in async function bodies
crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_value.py:32
Functionh
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function2.py:21
Functionh
()
crates/ruff_python_parser/resources/inline/ok/iter_unpack_yield_py38.py:4
Functionh
()
crates/ruff_python_parser/resources/inline/ok/nested_async_comprehension_py311.py:4
Functionh
()
crates/ruff_python_parser/resources/inline/err/nested_async_comprehension_py310.py:4
Functionh
(x: (yield 1))
crates/ruff_python_parser/resources/inline/err/invalid_annotation_function.py:5
Functionh
()
crates/ruff_python_parser/resources/inline/err/iter_unpack_yield_py37.py:4
Functionh
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB187.py:57
Functionh
(x: Counter)
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC001-3_future.py:10
Functionh
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC001_future.py:14
Functionh
(a)
crates/ruff_linter/resources/test/fixtures/semantic_errors/global_parameter.py:8
Functionh
(a)
crates/ruff_linter/resources/test/fixtures/semantic_errors/nonlocal_parameter.py:8
Functionh
Do nothing. Raises: ValueError: If something goes wrong.
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC502_google.py:144
Functionh
()
crates/ruff_linter/resources/test/fixtures/pylint/misplaced_bare_raise.py:43
Functionh
(cond:bool)
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:204
Functionh
(x)
crates/ruff_linter/resources/test/fixtures/pylint/too_many_branches_params.py:12
Functionh
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B012.py:55
Functionh
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F901.py:9
Functionh
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP028_0.py:11
Functionh
( p: Callable[P, T], # Comment in the middle of a parameter list should be preserved another_param
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP047_0.py:20
Functionh
(x: _T_)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP049_1.py:55
Functionh
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP028_1.py:67
Methodh
(self, other: Annotated[Self, "meta"])
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_1.py:63
Functionhalves
(n)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E22.py:118
Methodhandle
(self, *args, **options)
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:113
FunctionhandleAdd
()
playground/ty/src/Editor/Files.tsx:35
FunctionhandleFileRenamed
(file: FileId, newName: string)
playground/ty/src/Editor/Chrome.tsx:85
FunctionhandleMatch
( # type: ignore[override] # https://github.com/python/mypy/issues/10197 self, m: Match[str], data: str )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_annotation.py:21
FunctionhandleRun
()
playground/ty/src/Editor/SecondaryPanel.tsx:107
FunctionhandleSecondaryToolSelected
(tool: SecondaryTool | null)
playground/ruff/src/Editor/Editor.tsx:78
Methodhandle_data
(self, data)
python/ruff-ecosystem/tests/test_html.py:29
Methodhandle_endtag
(self, tag)
python/ruff-ecosystem/tests/test_html.py:25
Functionhandle_field
(field: &Field)
crates/ruff_macros/src/combine_options.rs:39
Methodhandle_request
Handles the entire request lifecycle and sends the response to the client. It allows handlers to customize how the server sends the response to the c
crates/ty_server/src/server/api/traits.rs:106
Methodhandle_request
Handles the request lifecycle and sends the response to the client. It allows handlers to customize how the server sends the response to the client.
crates/ty_server/src/server/api/traits.rs:154
Methodhandle_request
( id: &RequestId, snapshot: SessionSnapshot, client: &Client, params: Workspac
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:163
Methodhandle_starttag
(self, tag, attrs)
python/ruff-ecosystem/tests/test_html.py:20
Functionhandle_surrogates
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB188.py:187
Functionhandle_unicode
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB188.py:174
Functionhandler2
(echo: str = Query(default=""))
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_1.py:15
Functionhandler3
(echo: str = Query("123", min_length=3, max_length=50))
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_1.py:20
Functionhard_links_in_project
()
crates/ty/tests/file_watching.rs:2340
Functionhard_links_to_target_outside_project
()
crates/ty/tests/file_watching.rs:2412
Methodhas
Returns `true` if `key` has any *leading*, *dangling*, or *trailing* parts.
crates/ruff_python_formatter/src/comments/map.rs:247
Functionhas_comment
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/dummy_implementations.py:52
Functionhas_default
(arg: Optional = None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF013_4.py:9
Methodhas_deprecated_decorator
(decorator_list: &[ast::Decorator])
crates/ty_ide/src/symbols.rs:1238
Methodhas_errored_paths
Returns `true` if setting up watching for any path failed.
crates/ty_project/src/watch/project_watcher.rs:150
Functionhas_http_prefix
Returns `true` if the iterator starts with an HTTP or HTTPS prefix.
crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs:1038
Methodhas_implicit_attribute_inner
( db: &'db dyn Db, attribute: ImplicitAttributeName<'db>, )
crates/ty_python_semantic/src/types/class/implicit_attributes.rs:100
Methodhas_implicitly_positional_only_first_param
`self` or `cls` can be implicitly positional-only if: - It is a method AND - No parameters in the method use PEP-570 syntax AND - It is not a `@static
crates/ty_python_semantic/src/types/function.rs:626
Methodhas_label
(&self, label_id: LabelId)
crates/ruff_formatter/src/format_element.rs:281
Methodhas_label
(&self, expected: LabelId)
crates/ruff_formatter/src/format_element/document.rs:725
Methodhas_nonlocal_binding
We handle the one syntax error that relies on this method (`NonlocalWithoutBinding`) directly in `TypeInferenceBuilder::infer_nonlocal_statement`, so
crates/ty_python_core/src/builder.rs:5900
Methodhas_nonlocal_binding
(&self, name: &str)
crates/ruff_linter/src/checkers/ast/mod.rs:769
Methodhas_ordering_method_in_mro
Returns `true` if any class in this class's MRO (excluding `object`) defines an ordering method (`__lt__`, `__le__`, `__gt__`, `__ge__`). Used by `@to
crates/ty_python_semantic/src/types/class.rs:1475
Methodhas_own_ordering_method
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:299
Methodhas_own_ordering_method
Returns `true` if this dynamic class defines any ordering method (`__lt__`, `__le__`, `__gt__`, `__ge__`) in its namespace dictionary. Used by `@total
crates/ty_python_semantic/src/types/class/dynamic_literal.rs:533
Methodhas_pep_695_type_params
Returns whether this class has PEP 695 type parameters.
crates/ty_python_semantic/src/types/class.rs:672
Methodhas_progressed
(self, p: &Parser)
crates/ruff_python_parser/src/parser/progress.rs:22
Functionhas_type_argument
(arg: Optional[int] = None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF013_4.py:21
Functionhas_uncertain_interpolation
(element: &InterpolatedStringElement)
crates/ruff_python_ast/src/helpers.rs:203
Methodhas_unsupported_restriction
PEP 695 has no syntax for bounds or constraints on `TypeVarTuple` or `ParamSpec`.
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/mod.rs:91
Functionhas_untracted_files
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:249
Functionhash
(key: NodeRefEqualityKey)
crates/ruff_python_formatter/src/comments/node_key.rs:63
Methodhash
(&self, state: &mut H)
crates/ruff_source_file/src/lib.rs:215
Methodhash
(&self, hasher: &mut H)
crates/ruff_formatter/src/format_element.rs:172
Methodhash
(&self, state: &mut H)
crates/ruff_ranged_value/src/lib.rs:314
← previousnext →22,101–22,200 of 31,562, ranked by callers