MCPcopy Create free account

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

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

Methodfrom_type_params
Creates a generic context from a list of PEP-695 type parameters.
crates/ty_python_semantic/src/types/generics.rs:380
Methodfrom_typed_dict_type
Return the module for a `TypedDict` special form, including a union of the special forms exported by `typing` and `typing_extensions`.
crates/ty_python_semantic/src/types.rs:734
Methodfrom_typevar_bound
(bound: impl ProvidesTypeVarBound<'db>)
crates/ty_python_semantic/src/types/constraints/sequents.rs:526
Methodfrom_typevar_instances
Creates a generic context from a nonempty list of `BoundTypeVarInstance`s. # Panics Panics if `type_params` is empty. Use [`Self::try_from_typevar_i
crates/ty_python_semantic/src/types/generics.rs:447
Methodfrom_typevar_instances_in_program
( db: &'db dyn Db, program: Program<'db>, type_params: impl IntoIterator<Item = BoundT
crates/ty_python_semantic/src/types/generics.rs:478
Methodfrom_typevar_set
( db: &'db dyn Db, storage: &mut ConstraintSetStorage<'db>, typevars: TypeVarSet<'db>,
crates/ty_python_semantic/src/types/constraints/support.rs:31
Methodfrom_typevars
( db: &'db dyn Db, typevars: impl IntoIterator<Item = BoundTypeVarInstance<'db>>, )
crates/ty_python_semantic/src/types/typevar.rs:1956
Functionfrom_u32_panics_for_u32_max
()
crates/ruff_index/src/idx.rs:30
Methodfrom_u8
(value: u8)
crates/ruff_python_ast/src/generated.rs:7532
Methodfrom_union
Extract an exact included-member set from a union of enum domains. Whole-domain and complement arms are rejected because they are not exact included
crates/ty_python_semantic/src/types/equality/enums.rs:451
Methodfrom_union
Creates a new `Bindings` from an iterator of [`Bindings`]s for a union type. Each input `Bindings` becomes a union element, preserving any intersectio
crates/ty_python_semantic/src/types/call/bind.rs:776
Methodfrom_unpack
(unpack: Option<Unpack<'db>>, unpack_position: UnpackPosition)
crates/ty_python_core/src/definition.rs:1220
Methodfrom_uri
Converts the given [`Uri`] to an [`DocumentKey`]. If the URI scheme is `file`, then the path is converted to a [`SystemPathBuf`] unless the uri isn't
crates/ty_server/src/document.rs:103
Methodfrom_usize
(value: usize)
crates/ty_python_semantic/src/types/constraints.rs:2449
Functionfrom_usize_panics_for_u32_max
()
crates/ruff_index/src/idx.rs:36
Methodfrom_utf8_path_buf
(path: Utf8PathBuf)
crates/ruff_db/src/system/path.rs:531
Methodfrom_value
Create the initialization options from the given JSON value that corresponds to the initialization options sent by the client. Invalid settings fall
crates/ty_server/src/session/options.rs:75
Methodfrom_value
Initializes the controller from the serialized initialization options. This fails if `options` are not valid initialization options.
crates/ruff_server/src/session/options.rs:349
Methodfrom_value
(value: Option<&str>)
crates/ty_python_semantic/src/types/dedicated/pydantic.rs:499
Methodfrom_value
(value: f64)
crates/ruff_linter/src/rules/refurb/rules/math_constant.rs:114
Methodfrom_value_expression_types
( db: &'db dyn Db, values: [Type<'db>; 2], scope_id: ScopeId<'db>, typevar_bin
crates/ty_python_semantic/src/types/union_type_instance.rs:108
Methodfrom_vec
(segments: SmallVec<[SegmentInfo; 8]>)
crates/ty_python_core/src/member.rs:692
Methodfrom_vec_unchecked
(variants: Vec<FormatElement>)
crates/ruff_formatter/src/format_element.rs:338
Methodfrom_versions
(black: &str, ruff: &str)
crates/ruff_dev/src/format_dev.rs:109
Methodfrom_workspace_folders
Create the workspaces from the provided workspace folders as provided by the client during initialization.
crates/ruff_server/src/workspace.rs:14
Methodfrom_zero_indexed
Construct a new [`OneIndexed`] from a zero-indexed value
crates/ruff_source_file/src/line_index.rs:594
Methodfrom_zip_file
(zip_file: ZipFile<'_, R>)
crates/ruff_db/src/vendored.rs:300
Methodfrom_zip_file_name
(name: &str)
crates/ruff_db/src/vendored.rs:276
Methodfront_start_index
(start: Option<i32>)
crates/ty_python_semantic/src/types/tuple.rs:1995
Functionfrozen_inputs_support_a_one_shot_check
()
crates/ty_project/src/db.rs:1090
Functionfrozen_map_iterates_with_mutable_values
()
crates/ty_python_core/src/frozen.rs:346
Functionfrozen_map_preserves_last_value_for_duplicate_keys
()
crates/ty_python_core/src/frozen.rs:336
Functionfrozen_value_map_deduplicates_values
()
crates/ty_python_core/src/frozen.rs:360
Functionfrozen_value_map_preserves_last_value_for_duplicate_keys
()
crates/ty_python_core/src/frozen.rs:373
Functionfrozen_value_map_updates_and_rededuplicates_values
()
crates/ty_python_core/src/frozen.rs:380
Functionfrozen_value_map_uses_less_heap_for_repeated_large_values
()
crates/ty_python_core/src/frozen.rs:393
Functionfrozenset_also_okay
(value=frozenset())
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:26
Functionfscope_id_missing_function_identifier3
()
crates/ty_ide/src/completion.rs:6278
Methodfstring
(self, x)
crates/ruff_linter/resources/test/fixtures/pylint/no_self_use.py:116
Functionfstring_number_format_python_311
()
crates/ruff_linter/src/rules/refurb/mod.rs:94
Functionfstring_single_quote_escape_eol
(eol: &str)
crates/ruff_python_parser/src/lexer.rs:2372
Functionfstring_with_mixed_literals
()
crates/ty_ide/src/semantic_tokens.rs:4459
Functionfu
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_16.py:8
Functionfu
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_17.py:9
Functionfu
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F811_15.py:4
Functionfull_diagnostic_output
()
crates/ty_server/tests/e2e/publish_diagnostics.rs:42
Methodfull_line_str
(&self, offset: TextSize)
crates/ruff_source_file/src/line_ranges.rs:377
Methodfull_lines_str
(&self, range: TextRange)
crates/ruff_source_file/src/line_ranges.rs:393
Methodfull_lines_str
(&self, range: TextRange)
crates/ruff_linter/src/locator.rs:187
Functionfull_output_format
()
crates/ruff/tests/integration_test.rs:986
Functionfull_output_preview
()
crates/ruff/tests/integration_test.rs:935
Functionfull_output_preview_config
()
crates/ruff/tests/integration_test.rs:957
Methodfull_range
(self, db: &'db dyn Db, module: &ParsedModuleRef)
crates/ty_python_core/src/definition.rs:112
Methodfullname
(self)
python/ruff-ecosystem/ruff_ecosystem/projects.py:334
Functionfully_static_paramspec_value_has_no_dynamic_content
()
crates/ty_python_semantic/src/types/visitor.rs:1180
Functionfun
()
crates/ty_python_semantic/resources/corpus/74_class_super_nested.py:1
Methodfun
(self)
crates/ruff_linter/resources/test/fixtures/ruff/RUF052_0.py:91
Functionfun_with_params_no_docstring
(a, b=''' not a ''' '''docstring''')
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_singles_function.py:15
Functionfun_with_params_no_docstring
(a, b=""" not a """ """docstring""")
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_doubles_function.py:15
Functionfun_with_params_no_docstring2
(a, b=c[foo():], c=\ ''' not a docstring ''')
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_singles_function.py:21
Functionfun_with_params_no_docstring2
(a, b=c[foo():], c=\ """ not a docstring """)
crates/ruff_linter/resources/test/fixtures/flake8_quotes/docstring_doubles_function.py:21
Functionfun_with_python_syntax
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF033.py:116
Functionfunc
(lotsoflongargs: T, lotsoflongargs2: T, lotsoflongargs3: T, lotsoflongargs4: T, lotsoflongargs5: T)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:438
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/decorators.py:7
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/newlines.py:1
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_comments7.py:46
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/async_stmts.py:1
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/function_trailing_comma.py:40
Functionfunc
( arg1, arg2, )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/long_strings__type_annotations.py:1
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_params.py:1
Functionfunc
(match: case, case: match)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/pattern_matching_extras.py:24
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/context_managers_39.py:70
Functionfunc
(a: T, b: T, c: T, d: T, e: T, f: T, g: T, h: T, i: T, j: T, k: T, l: T, m: T, n: T, o: T, p: T)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:107
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_import_line_collapse.py:40
Functionfunc
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments3.py:5
Functionfunc
( a=some_list[0], # type: int )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/comments6.py:86
Functionfunc
( arg1, arg2, )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__type_annotations.py:1
Functionfunc
()
crates/ruff_python_parser/resources/inline/err/lazy_import_invalid_from_py315.py:5
Functionfunc
()
crates/ruff_python_parser/resources/inline/err/lazy_import_invalid_context_py315.py:12
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/control-flow-graph/assert.py:1
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/control-flow-graph/simple.py:1
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/control-flow-graph/try.py:1
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/control-flow-graph/if.py:1
Functionfunc
(status)
crates/ruff_linter/resources/test/fixtures/control-flow-graph/match.py:1
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/control-flow-graph/async-for.py:1
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/control-flow-graph/while.py:1
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/control-flow-graph/for.py:1
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/control-flow-graph/raise.py:1
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB188.py:203
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB122.py:123
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB154.py:89
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/refurb/FURB167.py:1
Functionfunc
(rows)
crates/ruff_linter/resources/test/fixtures/refurb/FURB118.py:168
Functionfunc
(value: DataFrame)
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/quote.py:59
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC010_2.py:8
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/TC010_1.py:10
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/typing_modules_1.py:6
Functionfunc
()
crates/ruff_linter/resources/test/fixtures/flake8_type_checking/typing_modules_2.py:6
Functionfunc
(x: Union[list, Optional[int | str | float | bool]])
crates/ruff_linter/resources/test/fixtures/flake8_boolean_trap/FBT.py:103
Functionfunc
A function-level docstring with a Sphinx directive. Examples: This is an example. .. code-block:: python returns = "not a s
crates/ruff_linter/resources/test/fixtures/pydocstyle/sphinx_directive.py:13
← previousnext →21,301–21,400 of 31,562, ranked by callers