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
Method
materialized
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
Function
math
()
crates/ruff_text_size/tests/main.rs:22
Function
mavko_debari
(P_kbar)
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:363
Function
max_args
()
crates/ruff_linter/src/rules/pylint/mod.rs:319
Function
max_args_with_dummy_variables
()
crates/ruff_linter/src/rules/pylint/mod.rs:335
Function
max_boolean_expressions
()
crates/ruff_linter/src/rules/pylint/mod.rs:380
Function
max_branches
()
crates/ruff_linter/src/rules/pylint/mod.rs:364
Function
max_complexity_zero
(max_complexity: usize)
crates/ruff_linter/src/rules/mccabe/mod.rs:20
Function
max_doc_length
()
crates/ruff_linter/src/rules/pycodestyle/mod.rs:428
Function
max_doc_length_with_utf_8
()
crates/ruff_linter/src/rules/pycodestyle/mod.rs:444
Method
max_level_hint
(&self)
crates/ty_server/src/logging.rs:132
Method
max_level_hint
(&self)
crates/ruff_server/src/logging.rs:117
Function
max_line_num_no_fold
()
crates/ruff_annotate_snippets/tests/formatter.rs:3651
Function
max_positional_args
()
crates/ruff_linter/src/rules/pylint/mod.rs:348
Function
max_return_statements
()
crates/ruff_linter/src/rules/pylint/mod.rs:412
Function
max_statements
()
crates/ruff_linter/src/rules/pylint/mod.rs:396
Function
max_value
()
crates/ruff_index/src/idx.rs:41
Function
max_value_usize
()
crates/ruff_index/src/idx.rs:48
Method
may_have_unbounded_specialization_inner
( db: &'db dyn Db, root: RecursiveDefinition<'db>, _: (), )
crates/ty_python_semantic/src/types/cyclic.rs:353
Method
may_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types.rs:710
Method
may_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/relation.rs:1216
Method
may_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/generics.rs:2521
Method
may_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
Method
may_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/call/ambiguous.rs:38
Method
maybe_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
Function
maybe_parenthesize_pattern
( pattern: &'a Pattern, case: &'a MatchCase, )
crates/ruff_python_formatter/src/pattern/mod.rs:156
Function
mdtest
(fixture_path: &Utf8Path, content: String)
crates/ruff_mdtest/tests/mdtest.rs:6
Function
mdtest
(fixture_path: &Utf8Path, content: String)
crates/ty_python_semantic/tests/mdtest.rs:16
Method
member
Creates a new `ImportFrom` to import a member from the specified module.
crates/ruff_python_semantic/src/imports.rs:102
Method
member
(&self, id: ScopedMemberId)
crates/ty_python_core/src/member.rs:545
Function
member_conflict_with_other_import
()
crates/ty_ide/src/importer.rs:757
Function
member_conflict_with_other_member_import
()
crates/ty_ide/src/importer.rs:809
Function
member_conflict_with_other_member_import_alias
()
crates/ty_ide/src/importer.rs:861
Function
member_conflict_with_other_module_import_alias
()
crates/ty_ide/src/importer.rs:835
Function
member_lookup_result_size
()
crates/ty_python_semantic/src/types/tests.rs:20
Method
member_lookup_with_policy_and_receiver_inner
( db: &'db dyn Db, key: MemberLookupKey<'db>, receiver: Type<'db>,
crates/ty_python_semantic/src/types.rs:6028
Method
member_lookup_with_policy_impl
( db: &'db dyn Db, key: MemberLookupKey<'db>, receiver: Option<Type<'db>>,
crates/ty_python_semantic/src/types.rs:6036
Method
member_lookup_with_policy_inner
( db: &'db dyn Db, key: MemberLookupKey<'db>, )
crates/ty_python_semantic/src/types.rs:6013
Method
member_mut
(&mut self, id: ScopedMemberId)
crates/ty_python_core/src/member.rs:554
Function
member_ty_configuration_precedes_uv_workspace
()
crates/ty_project/src/metadata.rs:1071
Function
member_ty_toml_configuration_precedes_uv_workspace
()
crates/ty_project/src/metadata.rs:1122
Function
members
()
crates/ty_ide/src/workspace_symbols.rs:121
Method
members
(&self)
crates/ty_project/src/uv/metadata.rs:37
Method
members_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
Method
memory
Create an in-memory server/client connection pair.
crates/ruff_server/src/server/connection.rs:18
Method
memory_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
Function
memory_test
参数含义:precision:精确到小数点后几位
crates/ruff_linter/resources/test/fixtures/pydocstyle/D208.py:13
Method
mentions_typevar
Returns whether this constraint set mentions the given type-variable identity.
crates/ty_python_semantic/src/types/constraints.rs:666
Method
merge_alternatives
( alternatives: impl Iterator<Item = Self>, merge_constraints: fn( Option<Narrowin
crates/ty_python_semantic/src/types/narrow.rs:1358
Method
merge_binding
( bindings: &mut BTreeMap<ScopedPlaceId, PatternBindingTypes<'db>>, place: ScopedPlaceId,
crates/ty_python_semantic/src/types/narrow.rs:2187
Method
merge_bindings
( into: &mut BTreeMap<ScopedPlaceId, PatternBindingTypes<'db>>, from: BTreeMap<ScopedPlaceId,
crates/ty_python_semantic/src/types/narrow.rs:2202
Method
merge_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
Method
merge_flags
(string: StringLike, context: &PyFormatContext)
crates/ruff_python_formatter/src/string/implicit.rs:138
Method
merge_inner
( db: &'db dyn Db, self_inner: TypeVarSetInner<'db>, other_inner: TypeVarS
crates/ty_python_semantic/src/types/typevar.rs:2001
Method
merge_optional
( db: &'db dyn Db, left: Option<Self>, right: Option<Self>, )
crates/ty_python_semantic/src/types/generics.rs:507
Method
merge_optional_constraints_and
( left: Option<NarrowingConstraints<'db>>, right: Option<NarrowingConstraints<'db>>, )
crates/ty_python_semantic/src/types/narrow.rs:1923
Method
merge_optional_constraints_or
( left: Option<NarrowingConstraints<'db>>, right: Option<NarrowingConstraints<'db>>, )
crates/ty_python_semantic/src/types/narrow.rs:1938
Method
merge_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
Method
merge_window
(self, lines: usize)
crates/ruff_db/src/diagnostic/mod.rs:1512
Function
merged_cycle_recovery_preserves_unresolved_alternative
()
crates/ty_python_semantic/src/types/generics.rs:5720
Function
merged_snippets
()
crates/mdtest/src/parser.rs:1446
Method
merged_specialization_inner
( db: &'db dyn Db, inference: TypeVarInference<'db>, )
crates/ty_python_semantic/src/types/generics.rs:2608
Function
merges_consecutive_unreachable_statements
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:240
Function
merges_overlapping_ranges_of_different_kinds
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:800
Function
merges_unreachable_comprehension_scope_into_enclosing_block
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:640
Function
merges_unreachable_other_comprehension_scopes_into_enclosing_blocks
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:657
Function
merges_unreachable_scope_range_into_enclosing_block
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:585
Method
mermaid_write_quoted_str
(f: &mut fmt::Formatter<'_>, value: &str)
crates/ruff_python_semantic/src/cfg/visualize.rs:54
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/regex_flag_alias.rs:43
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/write_whole_file.rs:56
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/read_whole_file.rs:56
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/unnecessary_from_float.rs:75
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/fstring_number_format.rs:46
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/single_item_membership_test.rs:55
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/for_loop_writes.rs:58
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/delete_full_slice.rs:50
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/sorted_min_max.rs:66
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/repeated_global.rs:51
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/list_reverse_copy.rs:58
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/if_exp_instead_of_or_operator.rs:53
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/metaclass_abcmeta.rs:60
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/slice_to_remove_prefix_or_suffix.rs:54
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/bit_count.rs:51
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/check_and_remove_from_set.rs:60
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/subclass_builtin.rs:72
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/for_loop_set_mutations.rs:56
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/slice_copy.rs:52
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/fromisoformat_replace_z.rs:76
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/verbose_decimal_constructor.rs:65
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/print_empty_string.rs:61
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/redundant_log_base.rs:66
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/readlines_in_for.rs:57
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/hashlib_digest_hex.rs:46
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/isinstance_type_none.rs:44
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/reimplemented_starmap.rs:61
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/int_on_sliced_str.rs:59
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/unnecessary_enumerate.rs:71
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/math_constant.rs:46
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs:83
Method
message
(&self)
crates/ruff_linter/src/rules/refurb/rules/implicit_cwd.rs:40
← previous
next →
23,901–24,000 of 31,562, ranked by callers