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
Function
match_class_fields
(node: &ast::PatternMatchClass)
crates/ruff_python_ast/src/comparable.rs:228
Function
match_class_pattern
()
crates/ruff_python_ast_integration_tests/tests/visitor.rs:73
Function
match_class_pattern
()
crates/ruff_python_ast_integration_tests/tests/source_order.rs:64
Function
match_directory
()
crates/ty_project/src/glob/include.rs:382
Method
match_expr_type
Check if the type can be inferred from the given expression.
crates/ruff_python_semantic/src/analyze/typing.rs:773
Method
match_file
Whether the file matches any of the globs.
crates/ty_project/src/glob/include.rs:61
Function
match_file_with_metacharacters_in_cwd
()
crates/ty_project/src/glob/include.rs:452
Method
match_head
Return the [`ast::ExprName`] at the head of the expression, if any.
crates/ruff_python_semantic/src/model.rs:1220
Method
match_initializer
Check initializer expression to match the intended type.
crates/ruff_python_semantic/src/analyze/typing.rs:768
Method
match_initializer
(initializer: &Expr, semantic: &SemanticModel)
crates/ruff_python_semantic/src/analyze/typing.rs:795
Method
match_initializer
( initializer: &ruff_python_ast::Expr, semantic: &ruff_python_semantic::SemanticModel, )
crates/ruff_linter/src/rules/flake8_async/rules/blocking_http_call_httpx.rs:84
Method
match_initializer
( initializer: &Expr, semantic: &ruff_python_semantic::SemanticModel, )
crates/ruff_linter/src/rules/flake8_async/rules/blocking_path_methods.rs:195
Method
match_initializer
`cls()`, `C()`, `C[T]()`, `super().__new__()`, `object.__new__()`, `self`
crates/ruff_linter/src/rules/flake8_self/rules/private_member_access.rs:299
Method
match_mapping
(self)
crates/ruff_python_ast/src/generated.rs:3226
Function
match_mapping_fields
(node: &ast::PatternMatchMapping)
crates/ruff_python_ast/src/comparable.rs:206
Method
match_or
(self)
crates/ruff_python_ast/src/generated.rs:3374
Function
match_or_fields
(node: &ast::PatternMatchOr)
crates/ruff_python_ast/src/comparable.rs:276
Function
match_pattern_suggests_keywords
()
crates/ty_ide/src/completion.rs:9068
Function
match_same_arms
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:5828
Method
match_sequence
(self)
crates/ruff_python_ast/src/generated.rs:3189
Function
match_sequence_fields
(node: &ast::PatternMatchSequence)
crates/ruff_python_ast/src/comparable.rs:190
Method
match_singleton
(self)
crates/ruff_python_ast/src/generated.rs:3152
Function
match_singleton_fields
(node: &ast::PatternMatchSingleton)
crates/ruff_python_ast/src/comparable.rs:181
Method
match_star
(self)
crates/ruff_python_ast/src/generated.rs:3300
Function
match_star_fields
(node: &ast::PatternMatchStar)
crates/ruff_python_ast/src/comparable.rs:248
Function
match_statement_compares_its_pattern
()
crates/ruff_python_ast_integration_tests/tests/comparable.rs:98
Function
match_stmt
()
crates/ty_python_core/src/lib.rs:2191
Method
match_stmt
(self)
crates/ruff_python_ast/src/generated.rs:819
Method
match_value
(self)
crates/ruff_python_ast/src/generated.rs:3115
Function
match_value_fields
(node: &ast::PatternMatchValue)
crates/ruff_python_ast/src/comparable.rs:172
Function
matches
(query: &str, symbol: &str)
crates/ty_ide/src/symbols.rs:3273
Method
matches
Returns `true` if the [`NameImport`] matches the specified name and binding.
crates/ruff_python_semantic/src/imports.rs:75
Method
matches
Returns whether the given module name matches any pattern in this set. Uses "last match wins" semantics (like gitignore): - Returns [`ModuleNameMatch
crates/ty_module_resolver/src/module_glob.rs:96
Method
matches_all_symbols
Create a new query pattern that matches all symbols.
crates/ty_ide/src/symbols.rs:63
Function
matches_duplicate_ranges_in_source_order
()
crates/ty/tests/cli/baseline.rs:118
Function
matches_test_function_prefix_case_sensitively
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:645
Function
materialization_noop_checks_hidden_function_types
()
crates/ty_python_semantic/src/types/visitor.rs:1206
Function
materialization_noop_rejects_divergent_markers
()
crates/ty_python_semantic/src/types/visitor.rs:1260
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:1780
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:145
Method
max_level_hint
(&self)
crates/ruff_server/src/logging.rs:133
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:365
Method
may_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types.rs:711
Method
may_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/relation.rs:1217
Method
may_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/generics.rs:2547
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:820
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:154
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:103
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:6080
Method
member_lookup_with_policy_impl
( db: &'db dyn Db, key: MemberLookupKey<'db>, receiver: Option<Type<'db>>,
crates/ty_python_semantic/src/types.rs:6088
Method
member_lookup_with_policy_inner
( db: &'db dyn Db, key: MemberLookupKey<'db>, )
crates/ty_python_semantic/src/types.rs:6065
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:1079
Function
member_ty_toml_configuration_precedes_uv_workspace
()
crates/ty_project/src/metadata.rs:1130
Function
members
()
crates/ty_ide/src/workspace_symbols.rs:121
Method
members
(&self)
crates/ty_project/src/uv/metadata.rs:40
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:662
Method
merge_alternatives
( alternatives: impl Iterator<Item = Self>, merge_constraints: fn( Option<Narrowin
crates/ty_python_semantic/src/types/narrow.rs:1360
Method
merge_binding
( bindings: &mut BTreeMap<ScopedPlaceId, PatternBindingTypes<'db>>, place: ScopedPlaceId,
crates/ty_python_semantic/src/types/narrow.rs:2189
Method
merge_bindings
( into: &mut BTreeMap<ScopedPlaceId, PatternBindingTypes<'db>>, from: BTreeMap<ScopedPlaceId,
crates/ty_python_semantic/src/types/narrow.rs:2204
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:1244
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:2170
Method
merge_optional
( db: &'db dyn Db, left: Option<Self>, right: Option<Self>, )
crates/ty_python_semantic/src/types/generics.rs:505
Method
merge_optional_constraints_and
( left: Option<NarrowingConstraints<'db>>, right: Option<NarrowingConstraints<'db>>, )
crates/ty_python_semantic/src/types/narrow.rs:1925
Method
merge_optional_constraints_or
( left: Option<NarrowingConstraints<'db>>, right: Option<NarrowingConstraints<'db>>, )
crates/ty_python_semantic/src/types/narrow.rs:1940
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:639
Method
merge_window
(self, lines: usize)
crates/ruff_db/src/diagnostic/mod.rs:1483
Function
merged_cycle_recovery_preserves_unresolved_alternative
()
crates/ty_python_semantic/src/types/generics.rs:5798
Function
merged_snippets
()
crates/mdtest/src/parser.rs:1443
Method
merged_specialization_inner
( db: &'db dyn Db, inference: TypeVarInference<'db>, )
crates/ty_python_semantic/src/types/generics.rs:2634
← previous
next →
24,001–24,100 of 31,766, ranked by callers