Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ functions
Functions
31,766 in github.com/astral-sh/ruff
⨍
Functions
31,766
◇
Types & classes
7,128
↳
Endpoints
82
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:2348
Function
hard_links_to_target_outside_project
()
crates/ty/tests/file_watching.rs:2420
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:102
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:779
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:1494
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:532
Method
has_pep_695_type_params
Returns whether this class has PEP 695 type parameters.
crates/ty_python_semantic/src/types/class.rs:691
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
Method
hash
(&self, state: &mut H)
crates/ruff_python_ast/src/comparable.rs:364
Method
hash
(&self, state: &mut H)
crates/ruff_python_ast/src/node_index.rs:195
Method
hash
(&self, state: &mut H)
crates/ty_python_semantic/src/types/cyclic.rs:1327
Method
hash
(&self, state: &mut H)
crates/ty_python_semantic/src/types/set_theoretic.rs:993
Method
hash
(&self, state: &mut H)
crates/ty_python_semantic/src/types/list_members.rs:850
Method
hash
(&self, state: &mut H)
crates/ty_python_semantic/src/types/match_pattern.rs:58
Method
hash
(&self, state: &mut H)
crates/ruff_linter/src/rules/pylint/rules/redefined_slots_in_subclass.rs:99
Method
hash_bindings
(live_bindings: &[LiveBinding])
crates/ty_python_core/src/use_def.rs:406
Function
hash_in_format_spec_test
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:110
Function
hash_in_nested_format_spec_test
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:117
Function
hash_in_string_test
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:103
Method
hash_name
(name: &str)
crates/ty_python_core/src/symbol.rs:206
Method
header_span
Returns a [`Span`] pointing to the namedtuple call expression.
crates/ty_python_semantic/src/types/class/named_tuple.rs:234
Method
header_span
Returns a [`Span`] with the range of the class's header. See [`Self::header_range`] for more details.
crates/ty_python_semantic/src/types/class/static_literal.rs:3484
Method
header_span
Returns a [`Span`] with the range of the `type()` call expression. See [`Self::header_range`] for more details.
crates/ty_python_semantic/src/types/class/dynamic_literal.rs:240
Method
header_span
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/enum_literal.rs:184
Function
header_start_at_beginning_of_line
()
crates/mdtest/src/parser.rs:1851
Function
heap_size
Returns the memory usage of the provided object, using a global tracker to avoid double-counting shared objects.
crates/ruff_memory_usage/src/lib.rs:35
Function
heap_size_includes_bits_and_chunk_ranks
()
crates/ty_python_core/src/rank.rs:116
Function
hello
(y: dict[str, int])
crates/ruff_linter/resources/test/fixtures/flake8_future_annotations/no_future_import_uses_lowercase.py:6
Function
hello
(y: dict[str, int] | None)
crates/ruff_linter/resources/test/fixtures/flake8_future_annotations/no_future_import_uses_union.py:6
Function
hello
(y: "dict[str, int] | None")
crates/ruff_linter/resources/test/fixtures/flake8_future_annotations/ok_quoted_type.py:6
Function
hello
(y: dict[str | None, int])
crates/ruff_linter/resources/test/fixtures/flake8_future_annotations/no_future_import_uses_union_inner.py:6
Function
hello
Hello endpoint.
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:216
Method
hello
(self)
crates/ruff_linter/resources/test/fixtures/pylint/bad_dunder_method_name.py:32
Method
help
Override the output style for [help][crate::Level::HELP]
crates/ruff_annotate_snippets/src/renderer/mod.rs:234
Method
help
Adds a "help" sub-diagnostic with the given message.
crates/ruff_db/src/diagnostic/render.rs:2867
Function
helper
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR003.py:28
Function
helper
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR003_no_dag.py:6
Method
heterogeneous
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, types: impl IntoIterator<Item = Type
crates/ty_python_semantic/src/types/tuple.rs:203
Method
heterogeneous_tuple
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, elements: I, )
crates/ty_python_semantic/src/types/instance.rs:110
Method
hide_severity
Hide diagnostic severity when rendering.
crates/ruff_db/src/diagnostic/render.rs:2594
Function
hide_severity_output
()
crates/ruff_db/src/diagnostic/render/full.rs:534
Function
hide_severity_syntax_errors
()
crates/ruff_db/src/diagnostic/render/full.rs:599
Function
hide_snippet
()
crates/ruff_annotate_snippets/tests/formatter.rs:5465
Function
highlight_message
()
crates/ruff_annotate_snippets/tests/examples.rs:53
Function
highlight_source
()
crates/ruff_annotate_snippets/tests/examples.rs:46
Function
highlighting
()
crates/ruff_annotate_snippets/tests/formatter.rs:2869
Method
homogeneous
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, element: Type<'db>, )
crates/ty_python_semantic/src/types/tuple.rs:241
Method
homogeneous_tuple
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, element: Type<'db>, )
crates/ty_python_semantic/src/types/instance.rs:102
Function
honors_inherited_class_opt_outs
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:982
Function
honors_module_opt_out
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:967
Function
honors_static_names_and_ignores_dynamic_names
()
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:1977
Function
hover_annotated_assignment
()
crates/ty_ide/src/hover.rs:4663
Function
hover_annotated_assignment_with_rhs
()
crates/ty_ide/src/hover.rs:4702
Function
hover_annotated_assignment_with_rhs_use
()
crates/ty_ide/src/hover.rs:4741
Function
hover_annotated_attribute_assignment
()
crates/ty_ide/src/hover.rs:4783
Function
hover_annotated_attribute_assignment_use
()
crates/ty_ide/src/hover.rs:4823
Function
hover_attribute_assignment
()
crates/ty_ide/src/hover.rs:4571
Function
hover_attribute_docstring_spill
()
crates/ty_ide/src/hover.rs:5660
Function
hover_augmented_assignment
()
crates/ty_ide/src/hover.rs:4524
Function
hover_augmented_attribute_assignment
()
crates/ty_ide/src/hover.rs:4616
Function
hover_bare_final_annotation
()
crates/ty_ide/src/hover.rs:6750
Function
hover_bare_final_attribute_assignment
()
crates/ty_ide/src/hover.rs:4866
Function
hover_basic
()
crates/ty_ide/src/hover.rs:528
Function
hover_binary_expression
()
crates/ty_ide/src/hover.rs:2256
Function
hover_binary_operator_literal
()
crates/ty_ide/src/hover.rs:6319
Function
hover_binary_operator_overload
()
crates/ty_ide/src/hover.rs:6586
Function
hover_binary_operator_union
()
crates/ty_ide/src/hover.rs:6629
Function
hover_bound_method_overload_self_type
()
crates/ty_ide/src/hover.rs:1763
Function
hover_callable_special_forms
()
crates/ty_ide/src/hover.rs:4379
Function
hover_class
()
crates/ty_ide/src/hover.rs:758
Function
hover_class_def
()
crates/ty_ide/src/hover.rs:819
Function
hover_class_init
()
crates/ty_ide/src/hover.rs:878
Function
hover_class_init_and_new_invalid
()
crates/ty_ide/src/hover.rs:1286
Function
hover_class_init_and_new_valid
()
crates/ty_ide/src/hover.rs:1335
Function
hover_class_init_attr
()
crates/ty_ide/src/hover.rs:931
Function
hover_class_init_no_init_docs
()
crates/ty_ide/src/hover.rs:984
← previous
next →
22,301–22,400 of 31,766, ranked by callers