MCPcopy Create free account

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

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

Methodfrom
(value: bool)
crates/ty_python_core/src/lib.rs:1103
Methodfrom
(node: &'ast ast::StmtFunctionDef)
crates/ty_python_core/src/definition.rs:369
Methodfrom
(value: ast::ExprRef<'_>)
crates/ty_python_core/src/ast_ids.rs:339
Methodfrom
(ids: Vec<T>)
crates/ty_python_core/src/frozen.rs:15
Methodfrom
(value: &'a Symbol)
crates/ty_python_core/src/place.rs:148
Methodfrom
(node: &ast::Stmt)
crates/ty_python_core/src/statement.rs:81
Methodfrom
(predicate: StarImportPlaceholderPredicate<'db>)
crates/ty_python_core/src/predicate.rs:419
Methodfrom
(platform: String)
crates/ty_python_core/src/platform.rs:25
Methodfrom
(binding: &LiveBinding)
crates/ty_python_core/src/use_def/place_state.rs:784
Methodfrom
(value: diagnostic::SubDiagnosticSeverity)
crates/ruff_wasm/src/lib.rs:137
Methodfrom
(string: StringType)
crates/ruff_python_parser/src/string.rs:32
Methodfrom
(error: LexicalError)
crates/ruff_python_parser/src/error.rs:38
Methodfrom
(kinds: [TokenKind; N])
crates/ruff_python_parser/src/token_set.rs:38
Methodfrom
(expr: Expr)
crates/ruff_python_parser/src/parser/expression.rs:3057
Methodfrom
(value: bool)
crates/ruff_python_parser/src/parser/mod.rs:1145
Methodfrom
(mode: Mode)
crates/ruff_python_parser/src/parser/options.rs:44
Methodfrom
(value: JsonParseOptions)
crates/ruff_python_parser/tests/fixtures.rs:277
Methodfrom
(level: LogLevel)
crates/ty_wasm/src/lib.rs:98
Methodfrom
(value: io::Error)
crates/ruff_dev/src/format_dev.rs:807
Methodfrom
(SipHasher128Hash(hash): SipHasher128Hash)
crates/mdtest/src/parser.rs:63
Methodfrom
(value: FileRange)
crates/ty_ide/src/lib.rs:171
Methodfrom
(range: TextRange)
crates/ty_ide/src/folding_range.rs:51
Methodfrom
(literal_query_string: &str)
crates/ty_ide/src/symbols.rs:101
Methodfrom
(s: String)
crates/ty_ide/src/inlay_hints.rs:340
Methodfrom
(value: ast::ExprContext)
crates/ty_ide/src/references.rs:386
Methodfrom
(member: PlaceAndQualifiers<'db>)
crates/ty_python_semantic/src/types.rs:1322
Methodfrom
(value: LookupResult<'db>)
crates/ty_python_semantic/src/place.rs:404
Methodfrom
(metadata: &'static LintMetadata)
crates/ty_python_semantic/src/lint.rs:593
Methodfrom
(value: ProtocolClass<'db>)
crates/ty_python_semantic/src/types/protocol_class.rs:427
Methodfrom
(is_positive: bool)
crates/ty_python_semantic/src/types/equality.rs:84
Methodfrom
(value: NominalInstanceType<'db>)
crates/ty_python_semantic/src/types/instance.rs:506
Methodfrom
Construct a new [`Type`] instance representing a given class object (or a given dynamic type) and all possible subclasses of that class object/dynamic
crates/ty_python_semantic/src/types/subclass_of.rs:45
Methodfrom
(constraint: Type<'db>)
crates/ty_python_semantic/src/types/narrow.rs:1340
Methodfrom
(v: i64)
crates/ty_python_semantic/src/types/literal.rs:271
Methodfrom
(ty: Type<'db>)
crates/ty_python_semantic/src/types/visitor.rs:208
Methodfrom
(value: &InferContext<'_, '_>)
crates/ty_python_semantic/src/types/overrides.rs:1973
Methodfrom
(value: [ClassBase<'db>; N])
crates/ty_python_semantic/src/types/mro.rs:558
Methodfrom
(relation: TypeRelation)
crates/ty_python_semantic/src/types/relation_error.rs:27
Methodfrom
(alias: GenericAlias<'db>)
crates/ty_python_semantic/src/types/class.rs:494
Methodfrom
(definition: Definition<'db>)
crates/ty_python_semantic/src/types/typevar.rs:1844
Methodfrom
(tuple: FixedLengthTuple<T>)
crates/ty_python_semantic/src/types/tuple.rs:2914
Methodfrom
(value: CallDunderError<'_>)
crates/ty_python_semantic/src/types/call.rs:555
Methodfrom
(relation: TypeRelation)
crates/ty_python_semantic/src/types/callable.rs:741
Methodfrom
(value: ClassType<'db>)
crates/ty_python_semantic/src/types/class_base.rs:548
Methodfrom
(value: SpecialFormType)
crates/ty_python_semantic/src/types/special_form.rs:355
Methodfrom
(atomic: AtomicConstraint<'db>)
crates/ty_python_semantic/src/types/constraints/variables.rs:206
Methodfrom
(value: RichCompareOperator)
crates/ty_python_semantic/src/types/infer/comparisons.rs:636
Methodfrom
(declared_type: Type<'db>)
crates/ty_python_semantic/src/types/infer/type_context.rs:136
Methodfrom
(value: bool)
crates/ty_python_semantic/src/types/infer/builder.rs:13265
Methodfrom
(from: CallableBinding<'db>)
crates/ty_python_semantic/src/types/call/bind.rs:3441
Methodfrom
(variance: TypeVarVariance)
crates/ty_python_semantic/src/types/variance/equations.rs:127
Methodfrom
(directives: &'a FileNoqaDirectives)
crates/ruff_linter/src/noqa.rs:216
Methodfrom
(value: LineLength)
crates/ruff_linter/src/line_width.rs:129
Methodfrom
(value: PythonVersion)
crates/ruff_linter/src/settings/mod.rs:922
Methodfrom
(value: PythonVersion)
crates/ruff_linter/src/settings/types.rs:70
Methodfrom
(value: bool)
crates/ruff_linter/src/settings/flags.rs:21
Methodfrom
(generator: &'a ast::ExprGenerator)
crates/ruff_linter/src/rules/refurb/rules/reimplemented_starmap.rs:187
Methodfrom
(lambda: &'a ast::ExprLambda)
crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs:142
Methodfrom
(s: &'a str)
crates/ruff_linter/src/rules/isort/sorting.rs:57
Methodfrom
(func: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_map.rs:265
Methodfrom
((tok, range): (TokenKind, TextRange))
crates/ruff_linter/src/rules/flake8_commas/rules/trailing_commas.rs:60
Methodfrom
Determine the [`ConstantLikelihood`] of an expression.
crates/ruff_linter/src/rules/flake8_simplify/rules/yoda_conditions.rs:89
Methodfrom
(value: &NestedIf<'a>)
crates/ruff_linter/src/rules/flake8_simplify/rules/collapsible_if.rs:198
Methodfrom
(value: bool)
crates/ruff_linter/src/rules/flake8_simplify/rules/needless_bool.rs:330
Methodfrom
(value: &'a str)
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:85
Methodfrom
(value: &'a StmtFor)
crates/ruff_linter/src/rules/ruff/rules/needless_else.rs:285
Methodfrom
(target_version: PythonVersion)
crates/ruff_linter/src/rules/ruff/rules/implicit_optional.rs:130
Methodfrom
(value: ruff_python_ast::str::Quote)
crates/ruff_linter/src/rules/flake8_quotes/settings.rs:22
Methodfrom
(value: &'a str)
crates/ruff_linter/src/rules/flake8_quotes/rules/check_string_quotes.rs:215
Methodfrom
(value: bool)
crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/missing_whitespace_around_operator.rs:335
Methodfrom
Return the [`Safety`] level for the [`Expr`]. This is based on Bandit's definition: string literals are considered okay, but dynamically-computed valu
crates/ruff_linter/src/rules/flake8_bandit/rules/shell_injection.rs:510
Methodfrom
(format: char)
crates/ruff_linter/src/rules/pylint/rules/bad_string_format_type.rs:93
Methodfrom
(value: ClassMemberBoundness)
crates/ruff_linter/src/rules/pylint/rules/eq_without_hash.rs:156
Methodfrom
(op: &ast::BoolOp)
crates/ruff_linter/src/rules/pylint/rules/binary_op_exception.rs:17
Methodfrom
(import: &'a FromImport)
crates/ruff_linter/src/rules/pylint/rules/import_private_name.rs:186
Methodfrom
(expr: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/pylint/rules/bad_str_strip_call.rs:79
Methodfrom
(value: Operator)
crates/ruff_linter/src/rules/pylint/rules/non_augmented_assignment.rs:211
Methodfrom
(format_string: &CFormatString)
crates/ruff_linter/src/rules/pyflakes/cformat.rs:17
Methodfrom
(value: YieldOutsideFunctionKind)
crates/ruff_linter/src/rules/pyflakes/rules/yield_outside_function.rs:27
Methodfrom
(value: usize)
crates/ruff_linter/src/rules/pyflakes/rules/unused_import.rs:252
Methodfrom
(cmp_op: &CmpOp)
crates/ruff_linter/src/rules/pyflakes/rules/invalid_literal_comparisons.rs:127
Methodfrom
( TypeVar { name, restriction, kind, default,
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/mod.rs:150
Methodfrom
(paths: [SystemPathBuf; N])
crates/ty_site_packages/src/lib.rs:254
Methodfrom
(array: [T; N])
crates/ruff_index/src/vec.rs:175
Methodfrom
(vec: IndexVec<I, T>)
crates/ruff_index/src/frozen.rs:60
Methodfrom_ambiguity_state
(state: &AmbiguityState)
crates/ty_python_semantic/src/types/display.rs:587
Methodfrom_analysis_settings
(settings: &AnalysisSettings)
crates/ty_python_semantic/src/types/equality.rs:420
Methodfrom_ancestors
Creates a new `CoveringNode` from a list of ancestor nodes. The ancestors should be ordered from root to the covering node.
crates/ruff_python_ast/src/find_node.rs:67
Methodfrom_annotation
(annotation: &'a Annotation, resolver: &'a dyn FileResolver)
crates/ruff_db/src/diagnostic/render/github.rs:163
Methodfrom_annotation
Create a parameter list, normalizing it and inferring its kind from annotations. The kind of the parameter list is determined based on the provided p
crates/ty_python_semantic/src/types/signatures.rs:5077
Methodfrom_arg_matches
(matches: &ArgMatches)
crates/ty/src/args.rs:354
Methodfrom_arguments
Return the constructor form for `arguments`.
crates/ty_python_semantic/src/types/infer/builder/typed_dict.rs:49
Methodfrom_arguments
Create `CallArguments` from AST arguments. We will use the provided callback to obtain the type of each splatted argument, so that we can determine it
crates/ty_python_semantic/src/types/call/arguments.rs:513
Methodfrom_arguments_typed
Like [`Self::from_arguments`] but fills as much typing info in as possible. This currently only exists for the LSP usecase, and shouldn't be used in
crates/ty_python_semantic/src/types/call/arguments.rs:549
Methodfrom_arguments_unchecked
Creates a new best fitting IR with the given variants. Callers are required to ensure that the number of variants given is at least 2. You're lookin
crates/ruff_formatter/src/builders.rs:2593
Methodfrom_assignment
(node: &ast::StmtAssign)
crates/ty_python_core/src/definition.rs:1769
Methodfrom_ast
Extracts the comments from the AST.
crates/ruff_python_formatter/src/comments/mod.rs:238
Methodfrom_ast
(arguments: &'a ast::Arguments)
crates/ty_python_semantic/src/types/infer/builder.rs:13191
Methodfrom_attribute
(level: &str)
crates/ruff_python_stdlib/src/logging.rs:13
Methodfrom_attribute
(attr: &str)
crates/ruff_linter/src/rules/flake8_logging_format/rules/logging_call.rs:229
← previousnext →20,801–20,900 of 31,562, ranked by callers