MCPcopy Create free account

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

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

Functionmatch_class_fields
(node: &ast::PatternMatchClass)
crates/ruff_python_ast/src/comparable.rs:228
Functionmatch_class_pattern
()
crates/ruff_python_ast_integration_tests/tests/visitor.rs:73
Functionmatch_class_pattern
()
crates/ruff_python_ast_integration_tests/tests/source_order.rs:64
Functionmatch_directory
()
crates/ty_project/src/glob/include.rs:382
Methodmatch_expr_type
Check if the type can be inferred from the given expression.
crates/ruff_python_semantic/src/analyze/typing.rs:773
Methodmatch_file
Whether the file matches any of the globs.
crates/ty_project/src/glob/include.rs:61
Functionmatch_file_with_metacharacters_in_cwd
()
crates/ty_project/src/glob/include.rs:452
Methodmatch_head
Return the [`ast::ExprName`] at the head of the expression, if any.
crates/ruff_python_semantic/src/model.rs:1220
Methodmatch_initializer
Check initializer expression to match the intended type.
crates/ruff_python_semantic/src/analyze/typing.rs:768
Methodmatch_initializer
(initializer: &Expr, semantic: &SemanticModel)
crates/ruff_python_semantic/src/analyze/typing.rs:795
Methodmatch_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
Methodmatch_initializer
( initializer: &Expr, semantic: &ruff_python_semantic::SemanticModel, )
crates/ruff_linter/src/rules/flake8_async/rules/blocking_path_methods.rs:195
Methodmatch_initializer
`cls()`, `C()`, `C[T]()`, `super().__new__()`, `object.__new__()`, `self`
crates/ruff_linter/src/rules/flake8_self/rules/private_member_access.rs:299
Methodmatch_mapping
(self)
crates/ruff_python_ast/src/generated.rs:3226
Functionmatch_mapping_fields
(node: &ast::PatternMatchMapping)
crates/ruff_python_ast/src/comparable.rs:206
Methodmatch_or
(self)
crates/ruff_python_ast/src/generated.rs:3374
Functionmatch_or_fields
(node: &ast::PatternMatchOr)
crates/ruff_python_ast/src/comparable.rs:276
Functionmatch_pattern_suggests_keywords
()
crates/ty_ide/src/completion.rs:9068
Functionmatch_same_arms
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:5828
Methodmatch_sequence
(self)
crates/ruff_python_ast/src/generated.rs:3189
Functionmatch_sequence_fields
(node: &ast::PatternMatchSequence)
crates/ruff_python_ast/src/comparable.rs:190
Methodmatch_singleton
(self)
crates/ruff_python_ast/src/generated.rs:3152
Functionmatch_singleton_fields
(node: &ast::PatternMatchSingleton)
crates/ruff_python_ast/src/comparable.rs:181
Methodmatch_star
(self)
crates/ruff_python_ast/src/generated.rs:3300
Functionmatch_star_fields
(node: &ast::PatternMatchStar)
crates/ruff_python_ast/src/comparable.rs:248
Functionmatch_statement_compares_its_pattern
()
crates/ruff_python_ast_integration_tests/tests/comparable.rs:98
Functionmatch_stmt
()
crates/ty_python_core/src/lib.rs:2191
Methodmatch_stmt
(self)
crates/ruff_python_ast/src/generated.rs:819
Methodmatch_value
(self)
crates/ruff_python_ast/src/generated.rs:3115
Functionmatch_value_fields
(node: &ast::PatternMatchValue)
crates/ruff_python_ast/src/comparable.rs:172
Functionmatches
(query: &str, symbol: &str)
crates/ty_ide/src/symbols.rs:3273
Methodmatches
Returns `true` if the [`NameImport`] matches the specified name and binding.
crates/ruff_python_semantic/src/imports.rs:75
Methodmatches
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
Methodmatches_all_symbols
Create a new query pattern that matches all symbols.
crates/ty_ide/src/symbols.rs:63
Functionmatches_duplicate_ranges_in_source_order
()
crates/ty/tests/cli/baseline.rs:118
Functionmatches_test_function_prefix_case_sensitively
()
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:645
Functionmaterialization_noop_checks_hidden_function_types
()
crates/ty_python_semantic/src/types/visitor.rs:1206
Functionmaterialization_noop_rejects_divergent_markers
()
crates/ty_python_semantic/src/types/visitor.rs:1260
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:1780
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:145
Methodmax_level_hint
(&self)
crates/ruff_server/src/logging.rs:133
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:365
Methodmay_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types.rs:711
Methodmay_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/relation.rs:1217
Methodmay_share_identity
(&self, db: &'db dyn Db, other: &Self)
crates/ty_python_semantic/src/types/generics.rs:2547
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:820
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:154
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:103
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:6080
Methodmember_lookup_with_policy_impl
( db: &'db dyn Db, key: MemberLookupKey<'db>, receiver: Option<Type<'db>>,
crates/ty_python_semantic/src/types.rs:6088
Methodmember_lookup_with_policy_inner
( db: &'db dyn Db, key: MemberLookupKey<'db>, )
crates/ty_python_semantic/src/types.rs:6065
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:1079
Functionmember_ty_toml_configuration_precedes_uv_workspace
()
crates/ty_project/src/metadata.rs:1130
Functionmembers
()
crates/ty_ide/src/workspace_symbols.rs:121
Methodmembers
(&self)
crates/ty_project/src/uv/metadata.rs:40
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:662
Methodmerge_alternatives
( alternatives: impl Iterator<Item = Self>, merge_constraints: fn( Option<Narrowin
crates/ty_python_semantic/src/types/narrow.rs:1360
Methodmerge_binding
( bindings: &mut BTreeMap<ScopedPlaceId, PatternBindingTypes<'db>>, place: ScopedPlaceId,
crates/ty_python_semantic/src/types/narrow.rs:2189
Methodmerge_bindings
( into: &mut BTreeMap<ScopedPlaceId, PatternBindingTypes<'db>>, from: BTreeMap<ScopedPlaceId,
crates/ty_python_semantic/src/types/narrow.rs:2204
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:1244
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:2170
Methodmerge_optional
( db: &'db dyn Db, left: Option<Self>, right: Option<Self>, )
crates/ty_python_semantic/src/types/generics.rs:505
Methodmerge_optional_constraints_and
( left: Option<NarrowingConstraints<'db>>, right: Option<NarrowingConstraints<'db>>, )
crates/ty_python_semantic/src/types/narrow.rs:1925
Methodmerge_optional_constraints_or
( left: Option<NarrowingConstraints<'db>>, right: Option<NarrowingConstraints<'db>>, )
crates/ty_python_semantic/src/types/narrow.rs:1940
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:639
Methodmerge_window
(self, lines: usize)
crates/ruff_db/src/diagnostic/mod.rs:1483
Functionmerged_cycle_recovery_preserves_unresolved_alternative
()
crates/ty_python_semantic/src/types/generics.rs:5798
Functionmerged_snippets
()
crates/mdtest/src/parser.rs:1443
Methodmerged_specialization_inner
( db: &'db dyn Db, inference: TypeVarInference<'db>, )
crates/ty_python_semantic/src/types/generics.rs:2634
← previousnext →24,001–24,100 of 31,766, ranked by callers