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
goto_type_string_annotation_too_nested2
()
crates/ty_ide/src/goto_type_definition.rs:1180
Function
goto_type_string_annotation_unknown
()
crates/ty_ide/src/goto_type_definition.rs:1008
Function
goto_type_submodule_import_from_confusing_real_def
()
crates/ty_ide/src/goto_type_definition.rs:2011
Function
goto_type_submodule_import_from_confusing_shadowed_def
()
crates/ty_ide/src/goto_type_definition.rs:1976
Function
goto_type_submodule_import_from_confusing_use
()
crates/ty_ide/src/goto_type_definition.rs:2045
Function
goto_type_submodule_import_from_def
()
crates/ty_ide/src/goto_type_definition.rs:1870
Function
goto_type_submodule_import_from_use
()
crates/ty_ide/src/goto_type_definition.rs:1835
Function
goto_type_submodule_import_from_wrong_def
()
crates/ty_ide/src/goto_type_definition.rs:1940
Function
goto_type_submodule_import_from_wrong_use
()
crates/ty_ide/src/goto_type_definition.rs:1905
Function
goto_type_typevar_name_binding
()
crates/ty_ide/src/goto_type_definition.rs:1446
Function
goto_type_typevar_name_stmt
()
crates/ty_ide/src/goto_type_definition.rs:1424
Function
goto_type_typevar_spec_binding
()
crates/ty_ide/src/goto_type_definition.rs:1491
Function
goto_type_typevar_spec_stmt
()
crates/ty_ide/src/goto_type_definition.rs:1468
Function
goto_type_typevar_tuple_binding
()
crates/ty_ide/src/goto_type_definition.rs:1514
Function
goto_type_typevar_tuple_stmt
()
crates/ty_ide/src/goto_type_definition.rs:1503
Function
gradual_callable_shrinks_to_empty_parameter_list
()
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:856
Function
gradual_equivalence_preserves_alternative_bounds
()
crates/ty_python_semantic/src/types/constraints.rs:6022
Method
gradual_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
Function
gradual_receiver_constraints_are_retained
()
crates/ty_python_semantic/src/types/signatures.rs:6843
Method
grault
Yield the grault.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D421.py:35
Method
graze
(cls, x, y, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:26
Method
graze
(cls, x, y, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:43
Method
greeting_1
(self)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:10
Method
greeting_1
(self)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:148
Method
greeting_2
(self)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:13
Method
group_diagnostics
(diagnostics: &[Diagnostic])
crates/ty_python_semantic/src/fixes.rs:2120
Method
group_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
Method
group_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
Method
grow
(self, x, y, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:22
Method
grow
(self, x, y, z)
crates/ruff_linter/resources/test/fixtures/pylint/bad_staticmethod_argument.py:39
Function
h
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return_type_parameters.py:150
Function
h
Statements that are only allowed in async function bodies
crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_empty.py:32
Function
h
Statements that are only allowed in async function bodies
crates/ruff_python_formatter/resources/test/fixtures/ruff/parentheses/opening_parentheses_comment_value.py:32
Function
h
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function2.py:21
Function
h
()
crates/ruff_python_parser/resources/inline/ok/iter_unpack_yield_py38.py:4
Function
h
()
crates/ruff_python_parser/resources/inline/ok/nested_async_comprehension_py311.py:4
Function
h
()
crates/ruff_python_parser/resources/inline/err/nested_async_comprehension_py310.py:4
Function
h
(x: (yield 1))
crates/ruff_python_parser/resources/inline/err/invalid_annotation_function.py:5
Function
h
()
crates/ruff_python_parser/resources/inline/err/iter_unpack_yield_py37.py:4
Function
h
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB187.py:57
Function
h
(x: Counter)
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC001-3_future.py:10
Function
h
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC001_future.py:14
Function
h
(a)
crates/ruff_linter/resources/test/fixtures/semantic_errors/global_parameter.py:8
Function
h
(a)
crates/ruff_linter/resources/test/fixtures/semantic_errors/nonlocal_parameter.py:8
Function
h
Do nothing. Raises: ValueError: If something goes wrong.
crates/ruff_linter/resources/test/fixtures/pydoclint/DOC502_google.py:144
Function
h
()
crates/ruff_linter/resources/test/fixtures/pylint/misplaced_bare_raise.py:43
Function
h
(cond:bool)
crates/ruff_linter/resources/test/fixtures/pylint/len_as_condition.py:204
Function
h
(x)
crates/ruff_linter/resources/test/fixtures/pylint/too_many_branches_params.py:12
Function
h
()
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B012.py:55
Function
h
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F901.py:9
Function
h
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP028_0.py:11
Function
h
( 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
Function
h
(x: _T_)
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP049_1.py:55
Function
h
()
crates/ruff_linter/resources/test/fixtures/pyupgrade/UP028_1.py:67
Method
h
(self, other: Annotated[Self, "meta"])
crates/ruff_linter/resources/test/fixtures/flake8_self/SLF001_1.py:63
Function
halves
(n)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E22.py:118
Method
handle
(self, *args, **options)
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:113
Function
handleAdd
()
playground/ty/src/Editor/Files.tsx:35
Function
handleFileRenamed
(file: FileId, newName: string)
playground/ty/src/Editor/Chrome.tsx:85
Function
handleMatch
( # 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
Function
handleRun
()
playground/ty/src/Editor/SecondaryPanel.tsx:107
Function
handleSecondaryToolSelected
(tool: SecondaryTool | null)
playground/ruff/src/Editor/Editor.tsx:78
Method
handle_data
(self, data)
python/ruff-ecosystem/tests/test_html.py:29
Method
handle_endtag
(self, tag)
python/ruff-ecosystem/tests/test_html.py:25
Function
handle_field
(field: &Field)
crates/ruff_macros/src/combine_options.rs:39
Method
handle_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
Method
handle_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
Method
handle_request
( id: &RequestId, snapshot: SessionSnapshot, client: &Client, params: Workspac
crates/ty_server/src/server/api/requests/workspace_diagnostic.rs:163
Method
handle_starttag
(self, tag, attrs)
python/ruff-ecosystem/tests/test_html.py:20
Function
handle_surrogates
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB188.py:187
Function
handle_unicode
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB188.py:174
Function
handler2
(echo: str = Query(default=""))
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_1.py:15
Function
handler3
(echo: str = Query("123", min_length=3, max_length=50))
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_1.py:20
Function
hard_links_in_project
()
crates/ty/tests/file_watching.rs:2340
Function
hard_links_to_target_outside_project
()
crates/ty/tests/file_watching.rs:2412
Method
has
Returns `true` if `key` has any *leading*, *dangling*, or *trailing* parts.
crates/ruff_python_formatter/src/comments/map.rs:247
Function
has_comment
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/dummy_implementations.py:52
Function
has_default
(arg: Optional = None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF013_4.py:9
Method
has_deprecated_decorator
(decorator_list: &[ast::Decorator])
crates/ty_ide/src/symbols.rs:1238
Method
has_errored_paths
Returns `true` if setting up watching for any path failed.
crates/ty_project/src/watch/project_watcher.rs:150
Function
has_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
Method
has_implicit_attribute_inner
( db: &'db dyn Db, attribute: ImplicitAttributeName<'db>, )
crates/ty_python_semantic/src/types/class/implicit_attributes.rs:100
Method
has_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
Method
has_label
(&self, label_id: LabelId)
crates/ruff_formatter/src/format_element.rs:281
Method
has_label
(&self, expected: LabelId)
crates/ruff_formatter/src/format_element/document.rs:725
Method
has_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
Method
has_nonlocal_binding
(&self, name: &str)
crates/ruff_linter/src/checkers/ast/mod.rs:769
Method
has_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
Method
has_own_ordering_method
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/static_literal.rs:299
Method
has_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
Method
has_pep_695_type_params
Returns whether this class has PEP 695 type parameters.
crates/ty_python_semantic/src/types/class.rs:672
Method
has_progressed
(self, p: &Parser)
crates/ruff_python_parser/src/parser/progress.rs:22
Function
has_type_argument
(arg: Optional[int] = None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF013_4.py:21
Function
has_uncertain_interpolation
(element: &InterpolatedStringElement)
crates/ruff_python_ast/src/helpers.rs:203
Method
has_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
Function
has_untracted_files
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET505.py:249
Function
hash
(key: NodeRefEqualityKey)
crates/ruff_python_formatter/src/comments/node_key.rs:63
Method
hash
(&self, state: &mut H)
crates/ruff_source_file/src/lib.rs:215
Method
hash
(&self, hasher: &mut H)
crates/ruff_formatter/src/format_element.rs:172
Method
hash
(&self, state: &mut H)
crates/ruff_ranged_value/src/lib.rs:314
← previous
next →
22,101–22,200 of 31,562, ranked by callers