MCPcopy Create free account

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

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

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:2348
Functionhard_links_to_target_outside_project
()
crates/ty/tests/file_watching.rs:2420
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:102
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:779
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:1494
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:532
Methodhas_pep_695_type_params
Returns whether this class has PEP 695 type parameters.
crates/ty_python_semantic/src/types/class.rs:691
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
Methodhash
(&self, state: &mut H)
crates/ruff_python_ast/src/comparable.rs:364
Methodhash
(&self, state: &mut H)
crates/ruff_python_ast/src/node_index.rs:195
Methodhash
(&self, state: &mut H)
crates/ty_python_semantic/src/types/cyclic.rs:1327
Methodhash
(&self, state: &mut H)
crates/ty_python_semantic/src/types/set_theoretic.rs:993
Methodhash
(&self, state: &mut H)
crates/ty_python_semantic/src/types/list_members.rs:850
Methodhash
(&self, state: &mut H)
crates/ty_python_semantic/src/types/match_pattern.rs:58
Methodhash
(&self, state: &mut H)
crates/ruff_linter/src/rules/pylint/rules/redefined_slots_in_subclass.rs:99
Methodhash_bindings
(live_bindings: &[LiveBinding])
crates/ty_python_core/src/use_def.rs:406
Functionhash_in_format_spec_test
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:110
Functionhash_in_nested_format_spec_test
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:117
Functionhash_in_string_test
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:103
Methodhash_name
(name: &str)
crates/ty_python_core/src/symbol.rs:206
Methodheader_span
Returns a [`Span`] pointing to the namedtuple call expression.
crates/ty_python_semantic/src/types/class/named_tuple.rs:234
Methodheader_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
Methodheader_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
Methodheader_span
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/class/enum_literal.rs:184
Functionheader_start_at_beginning_of_line
()
crates/mdtest/src/parser.rs:1851
Functionheap_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
Functionheap_size_includes_bits_and_chunk_ranks
()
crates/ty_python_core/src/rank.rs:116
Functionhello
(y: dict[str, int])
crates/ruff_linter/resources/test/fixtures/flake8_future_annotations/no_future_import_uses_lowercase.py:6
Functionhello
(y: dict[str, int] | None)
crates/ruff_linter/resources/test/fixtures/flake8_future_annotations/no_future_import_uses_union.py:6
Functionhello
(y: "dict[str, int] | None")
crates/ruff_linter/resources/test/fixtures/flake8_future_annotations/ok_quoted_type.py:6
Functionhello
(y: dict[str | None, int])
crates/ruff_linter/resources/test/fixtures/flake8_future_annotations/no_future_import_uses_union_inner.py:6
Functionhello
Hello endpoint.
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:216
Methodhello
(self)
crates/ruff_linter/resources/test/fixtures/pylint/bad_dunder_method_name.py:32
Methodhelp
Override the output style for [help][crate::Level::HELP]
crates/ruff_annotate_snippets/src/renderer/mod.rs:234
Methodhelp
Adds a "help" sub-diagnostic with the given message.
crates/ruff_db/src/diagnostic/render.rs:2867
Functionhelper
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR003.py:28
Functionhelper
()
crates/ruff_linter/resources/test/fixtures/airflow/AIR003_no_dag.py:6
Methodheterogeneous
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, types: impl IntoIterator<Item = Type
crates/ty_python_semantic/src/types/tuple.rs:203
Methodheterogeneous_tuple
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, elements: I, )
crates/ty_python_semantic/src/types/instance.rs:110
Methodhide_severity
Hide diagnostic severity when rendering.
crates/ruff_db/src/diagnostic/render.rs:2594
Functionhide_severity_output
()
crates/ruff_db/src/diagnostic/render/full.rs:534
Functionhide_severity_syntax_errors
()
crates/ruff_db/src/diagnostic/render/full.rs:599
Functionhide_snippet
()
crates/ruff_annotate_snippets/tests/formatter.rs:5465
Functionhighlight_message
()
crates/ruff_annotate_snippets/tests/examples.rs:53
Functionhighlight_source
()
crates/ruff_annotate_snippets/tests/examples.rs:46
Functionhighlighting
()
crates/ruff_annotate_snippets/tests/formatter.rs:2869
Methodhomogeneous
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, element: Type<'db>, )
crates/ty_python_semantic/src/types/tuple.rs:241
Methodhomogeneous_tuple
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, element: Type<'db>, )
crates/ty_python_semantic/src/types/instance.rs:102
Functionhonors_inherited_class_opt_outs
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:982
Functionhonors_module_opt_out
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:967
Functionhonors_static_names_and_ignores_dynamic_names
()
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:1977
Functionhover_annotated_assignment
()
crates/ty_ide/src/hover.rs:4663
Functionhover_annotated_assignment_with_rhs
()
crates/ty_ide/src/hover.rs:4702
Functionhover_annotated_assignment_with_rhs_use
()
crates/ty_ide/src/hover.rs:4741
Functionhover_annotated_attribute_assignment
()
crates/ty_ide/src/hover.rs:4783
Functionhover_annotated_attribute_assignment_use
()
crates/ty_ide/src/hover.rs:4823
Functionhover_attribute_assignment
()
crates/ty_ide/src/hover.rs:4571
Functionhover_attribute_docstring_spill
()
crates/ty_ide/src/hover.rs:5660
Functionhover_augmented_assignment
()
crates/ty_ide/src/hover.rs:4524
Functionhover_augmented_attribute_assignment
()
crates/ty_ide/src/hover.rs:4616
Functionhover_bare_final_annotation
()
crates/ty_ide/src/hover.rs:6750
Functionhover_bare_final_attribute_assignment
()
crates/ty_ide/src/hover.rs:4866
Functionhover_basic
()
crates/ty_ide/src/hover.rs:528
Functionhover_binary_expression
()
crates/ty_ide/src/hover.rs:2256
Functionhover_binary_operator_literal
()
crates/ty_ide/src/hover.rs:6319
Functionhover_binary_operator_overload
()
crates/ty_ide/src/hover.rs:6586
Functionhover_binary_operator_union
()
crates/ty_ide/src/hover.rs:6629
Functionhover_bound_method_overload_self_type
()
crates/ty_ide/src/hover.rs:1763
Functionhover_callable_special_forms
()
crates/ty_ide/src/hover.rs:4379
Functionhover_class
()
crates/ty_ide/src/hover.rs:758
Functionhover_class_def
()
crates/ty_ide/src/hover.rs:819
Functionhover_class_init
()
crates/ty_ide/src/hover.rs:878
Functionhover_class_init_and_new_invalid
()
crates/ty_ide/src/hover.rs:1286
Functionhover_class_init_and_new_valid
()
crates/ty_ide/src/hover.rs:1335
Functionhover_class_init_attr
()
crates/ty_ide/src/hover.rs:931
Functionhover_class_init_no_init_docs
()
crates/ty_ide/src/hover.rs:984
← previousnext →22,301–22,400 of 31,766, ranked by callers