MCPcopy Create free account

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

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

Methodmaterialized
Preserves a class-based protocol and the polarity of its pending materialization. Member requirements are materialized only when an operation observe
crates/ty_python_semantic/src/types/instance.rs:1735
Functionmath
()
crates/ruff_text_size/tests/main.rs:22
Functionmavko_debari
(P_kbar)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:363
Functionmax_args
()
crates/ruff_linter/src/rules/pylint/mod.rs:319
Functionmax_args_with_dummy_variables
()
crates/ruff_linter/src/rules/pylint/mod.rs:335
Functionmax_boolean_expressions
()
crates/ruff_linter/src/rules/pylint/mod.rs:380
Functionmax_branches
()
crates/ruff_linter/src/rules/pylint/mod.rs:364
Functionmax_complexity_zero
(max_complexity: usize)
crates/ruff_linter/src/rules/mccabe/mod.rs:20
Functionmax_doc_length
()
crates/ruff_linter/src/rules/pycodestyle/mod.rs:428
Functionmax_doc_length_with_utf_8
()
crates/ruff_linter/src/rules/pycodestyle/mod.rs:444
Methodmax_level_hint
(&self)
crates/ty_server/src/logging.rs:132
Methodmax_level_hint
(&self)
crates/ruff_server/src/logging.rs:117
Functionmax_line_num_no_fold
()
crates/ruff_annotate_snippets/tests/formatter.rs:3651
Functionmax_positional_args
()
crates/ruff_linter/src/rules/pylint/mod.rs:348
Functionmax_return_statements
()
crates/ruff_linter/src/rules/pylint/mod.rs:412
Functionmax_statements
()
crates/ruff_linter/src/rules/pylint/mod.rs:396
Functionmax_value
()
crates/ruff_index/src/idx.rs:41
Functionmax_value_usize
()
crates/ruff_index/src/idx.rs:48
Methodmay_have_unbounded_specialization_inner
( db: &'db dyn Db, root: RecursiveDefinition<'db>, _: (), )
crates/ty_python_semantic/src/types/cyclic.rs:353
Methodmay_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types.rs:710
Methodmay_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/relation.rs:1216
Methodmay_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/generics.rs:2521
Methodmay_share_identity
Returns `false` if `self` and `other` cannot have the same identity. Implementations can use this to avoid constructing an expensive identity. Return
crates/ty_python_semantic/src/types/cyclic.rs:808
Methodmay_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/call/ambiguous.rs:38
Methodmaybe_add_generic
Possibly add `Generic` to the resolved bases list. This function is called in two cases: - If we encounter a subscripted `Generic` in the original ba
crates/ty_python_semantic/src/types/mro.rs:78
Functionmaybe_parenthesize_pattern
( pattern: &'a Pattern, case: &'a MatchCase, )
crates/ruff_python_formatter/src/pattern/mod.rs:156
Functionmdtest
(fixture_path: &Utf8Path, content: String)
crates/ruff_mdtest/tests/mdtest.rs:6
Functionmdtest
(fixture_path: &Utf8Path, content: String)
crates/ty_python_semantic/tests/mdtest.rs:16
Methodmember
Creates a new `ImportFrom` to import a member from the specified module.
crates/ruff_python_semantic/src/imports.rs:102
Methodmember
(&self, id: ScopedMemberId)
crates/ty_python_core/src/member.rs:545
Functionmember_conflict_with_other_import
()
crates/ty_ide/src/importer.rs:757
Functionmember_conflict_with_other_member_import
()
crates/ty_ide/src/importer.rs:809
Functionmember_conflict_with_other_member_import_alias
()
crates/ty_ide/src/importer.rs:861
Functionmember_conflict_with_other_module_import_alias
()
crates/ty_ide/src/importer.rs:835
Functionmember_lookup_result_size
()
crates/ty_python_semantic/src/types/tests.rs:20
Methodmember_lookup_with_policy_and_receiver_inner
( db: &'db dyn Db, key: MemberLookupKey<'db>, receiver: Type<'db>,
crates/ty_python_semantic/src/types.rs:6028
Methodmember_lookup_with_policy_impl
( db: &'db dyn Db, key: MemberLookupKey<'db>, receiver: Option<Type<'db>>,
crates/ty_python_semantic/src/types.rs:6036
Methodmember_lookup_with_policy_inner
( db: &'db dyn Db, key: MemberLookupKey<'db>, )
crates/ty_python_semantic/src/types.rs:6013
Methodmember_mut
(&mut self, id: ScopedMemberId)
crates/ty_python_core/src/member.rs:554
Functionmember_ty_configuration_precedes_uv_workspace
()
crates/ty_project/src/metadata.rs:1071
Functionmember_ty_toml_configuration_precedes_uv_workspace
()
crates/ty_project/src/metadata.rs:1122
Functionmembers
()
crates/ty_ide/src/workspace_symbols.rs:121
Methodmembers
(&self)
crates/ty_project/src/uv/metadata.rs:37
Methodmembers_in_scope_at
Returns a map from symbol name to that symbol's type and definition site (if available). The symbols are the symbols in scope at the given AST node.
crates/ty_python_semantic/src/semantic_model.rs:136
Methodmemory
Create an in-memory server/client connection pair.
crates/ruff_server/src/server/connection.rs:18
Methodmemory_file_system
Returns the memory file system. ## Panics If the underlying test system isn't the [`InMemorySystem`].
crates/ruff_db/src/system/test.rs:357
Functionmemory_test
   参数含义:precision:精确到小数点后几位
crates/ruff_linter/resources/test/fixtures/pydocstyle/D208.py:13
Methodmentions_typevar
Returns whether this constraint set mentions the given type-variable identity.
crates/ty_python_semantic/src/types/constraints.rs:666
Methodmerge_alternatives
( alternatives: impl Iterator<Item = Self>, merge_constraints: fn( Option<Narrowin
crates/ty_python_semantic/src/types/narrow.rs:1358
Methodmerge_binding
( bindings: &mut BTreeMap<ScopedPlaceId, PatternBindingTypes<'db>>, place: ScopedPlaceId,
crates/ty_python_semantic/src/types/narrow.rs:2187
Methodmerge_bindings
( into: &mut BTreeMap<ScopedPlaceId, PatternBindingTypes<'db>>, from: BTreeMap<ScopedPlaceId,
crates/ty_python_semantic/src/types/narrow.rs:2202
Methodmerge_cycle_recovery
Merge cycle iterations that differ only by gradual `Unknown` type arguments. Known argument mismatches are not merged because doing so would be unsou
crates/ty_python_semantic/src/types/generics.rs:1232
Methodmerge_flags
(string: StringLike, context: &PyFormatContext)
crates/ruff_python_formatter/src/string/implicit.rs:138
Methodmerge_inner
( db: &'db dyn Db, self_inner: TypeVarSetInner<'db>, other_inner: TypeVarS
crates/ty_python_semantic/src/types/typevar.rs:2001
Methodmerge_optional
( db: &'db dyn Db, left: Option<Self>, right: Option<Self>, )
crates/ty_python_semantic/src/types/generics.rs:507
Methodmerge_optional_constraints_and
( left: Option<NarrowingConstraints<'db>>, right: Option<NarrowingConstraints<'db>>, )
crates/ty_python_semantic/src/types/narrow.rs:1923
Methodmerge_optional_constraints_or
( left: Option<NarrowingConstraints<'db>>, right: Option<NarrowingConstraints<'db>>, )
crates/ty_python_semantic/src/types/narrow.rs:1938
Methodmerge_pep695_and_legacy
( db: &'db dyn Db, pep695_generic_context: Option<Self>, legacy_generic_context: Optio
crates/ty_python_semantic/src/types/generics.rs:662
Methodmerge_window
(self, lines: usize)
crates/ruff_db/src/diagnostic/mod.rs:1512
Functionmerged_cycle_recovery_preserves_unresolved_alternative
()
crates/ty_python_semantic/src/types/generics.rs:5720
Functionmerged_snippets
()
crates/mdtest/src/parser.rs:1446
Methodmerged_specialization_inner
( db: &'db dyn Db, inference: TypeVarInference<'db>, )
crates/ty_python_semantic/src/types/generics.rs:2608
Functionmerges_consecutive_unreachable_statements
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:240
Functionmerges_overlapping_ranges_of_different_kinds
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:800
Functionmerges_unreachable_comprehension_scope_into_enclosing_block
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:640
Functionmerges_unreachable_other_comprehension_scopes_into_enclosing_blocks
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:657
Functionmerges_unreachable_scope_range_into_enclosing_block
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:585
Methodmermaid_write_quoted_str
(f: &mut fmt::Formatter<'_>, value: &str)
crates/ruff_python_semantic/src/cfg/visualize.rs:54
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/regex_flag_alias.rs:43
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/write_whole_file.rs:56
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/read_whole_file.rs:56
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/unnecessary_from_float.rs:75
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/fstring_number_format.rs:46
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/single_item_membership_test.rs:55
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/for_loop_writes.rs:58
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/delete_full_slice.rs:50
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/sorted_min_max.rs:66
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/repeated_global.rs:51
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/list_reverse_copy.rs:58
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/if_exp_instead_of_or_operator.rs:53
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/metaclass_abcmeta.rs:60
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/slice_to_remove_prefix_or_suffix.rs:54
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/bit_count.rs:51
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/check_and_remove_from_set.rs:60
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/subclass_builtin.rs:72
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/for_loop_set_mutations.rs:56
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/slice_copy.rs:52
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/fromisoformat_replace_z.rs:76
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/verbose_decimal_constructor.rs:65
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/print_empty_string.rs:61
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/redundant_log_base.rs:66
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/readlines_in_for.rs:57
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/hashlib_digest_hex.rs:46
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/isinstance_type_none.rs:44
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/reimplemented_starmap.rs:61
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/int_on_sliced_str.rs:59
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/unnecessary_enumerate.rs:71
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/math_constant.rs:46
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs:83
Methodmessage
(&self)
crates/ruff_linter/src/rules/refurb/rules/implicit_cwd.rs:40
← previousnext →23,901–24,000 of 31,562, ranked by callers