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
Method
new
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, spec: &TupleSpec<'db>, )
crates/ty_python_semantic/src/types/tuple.rs:174
Method
new
Qualify an alias name using the scope in which it was defined.
crates/ty_python_semantic/src/types/type_alias.rs:1002
Method
new
(db: &'db dyn Db, function: FunctionType<'db>, receiver: Type<'db>)
crates/ty_python_semantic/src/types/method.rs:165
Method
new
(db: &'db dyn Db, last_definition: OverloadLiteral<'db>)
crates/ty_python_semantic/src/types/function.rs:854
Method
new
()
crates/ty_python_semantic/src/types/constraints.rs:1211
Method
new
(db: &'db dyn Db, signatures: S, kind: CallableTypeKind)
crates/ty_python_semantic/src/types/callable.rs:783
Method
new
( db: &'db dyn Db, expression: Expression<'db>, tcx: TypeContext<'db>, )
crates/ty_python_semantic/src/types/infer.rs:822
Method
new
( db: &'db dyn Db, program_environment: &'ast ProgramEnvironment<'db>, scope: ScopeId<
crates/ty_python_semantic/src/types/context.rs:166
Method
new
()
crates/ty_python_semantic/src/types/ide_support/unreachable_code.rs:115
Method
new
(db: &'db dyn Db)
crates/ty_python_semantic/src/types/constraints/sequents.rs:256
Method
new
( provenance: ConstraintProvenance, typevar: BoundTypeVarInstance<'db>, bound: Type<'d
crates/ty_python_semantic/src/types/constraints/variables.rs:777
Method
new
( db: &'db dyn Db, storage: &mut ConstraintSetStorage<'db>, source_orders: FxIndexSet<
crates/ty_python_semantic/src/types/constraints/solutions.rs:120
Method
new
(remaining: usize)
crates/ty_python_semantic/src/types/constraints/projection.rs:67
Method
new
( constraints: impl IntoIterator<Item = AtomicConstraintId>, independent_typevars: FxHashSet<T
crates/ty_python_semantic/src/types/constraints/paths.rs:282
Method
new
(path: &'static str, source: &'static str)
crates/ty_python_semantic/src/types/dedicated/pytest/collection.rs:1197
Method
new
(db: &'db dyn Db, program: Program<'db>)
crates/ty_python_semantic/src/types/dedicated/pytest/fixtures.rs:372
Method
new
Prepare a comparison when both sides contain enums and at least one side also contains another value. Return `None` if either enum has unsupported co
crates/ty_python_semantic/src/types/equality/enums.rs:107
Method
new
(element_type: Type<'db>, original_tuple_type: Type<'db>, length: usize)
crates/ty_python_semantic/src/types/tuple/promotion.rs:237
Method
new
(ty: Type<'db>)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:681
Method
new
Read value types and comparison-chain outcomes from the same inference region.
crates/ty_python_semantic/src/types/infer/expression_truthiness.rs:51
Method
new
(ty: Type<'db>, negative_retention: NegativeRetention)
crates/ty_python_semantic/src/types/infer/comparisons.rs:193
Method
new
(expected_type: Option<Type<'db>>, kind: TypeContextKind)
crates/ty_python_semantic/src/types/infer/type_context.rs:56
Method
new
Creates a new builder for inferring types in a region.
crates/ty_python_semantic/src/types/infer/builder.rs:553
Method
new
(annotation_ty: DeclaredType<'db>)
crates/ty_python_semantic/src/types/infer/builder/annotation_expression.rs:30
Method
new
(db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder/suspicious_conditions/mod.rs:1352
Method
new
( arguments: &'a CallArguments<'a, 'db>, parameters: &'a Parameters<'db>, errors: &'a
crates/ty_python_semantic/src/types/call/bind.rs:5116
Method
new
(argument: Argument<'a>, ty: Option<Type<'db>>)
crates/ty_python_semantic/src/types/call/arguments.rs:85
Method
new
( entry: CallableBinding<'db>, constructor_context: ConstructorContext<'db>, )
crates/ty_python_semantic/src/types/call/bind/constructor.rs:62
Method
new
( file: File, sink: &'sink std::cell::RefCell<TypeCheckDiagnostics>, diag: Diagnostic,
crates/ty_python_semantic/src/diagnostic/mod.rs:210
Method
new
(source: &'src str, range: TextRange)
crates/ty_python_semantic/src/suppression/parser.rs:15
Method
new
()
crates/ty_python_semantic/src/place/definitions.rs:43
Method
new
()
crates/ty_python_semantic/tests/corpus.rs:155
Method
new
(original: &'a str, modified: &'a str)
crates/ruff_linter/src/source_kind.rs:297
Method
new
Creates a new `LineWidth` with the given tab size.
crates/ruff_linter/src/line_width.rs:187
Method
new
(selector: impl Into<String>, source: ValueSource)
crates/ruff_linter/src/rule_selector.rs:57
Method
new
(tokens: &'a Tokens)
crates/ruff_linter/src/doc_lines.rs:26
Method
new
Determines the kind of shadowing or conflict for the proposed new name of a given [`Binding`]. This function is useful for checking whether or not th
crates/ruff_linter/src/renamer.rs:400
Method
new
(suppression: &'a Suppression)
crates/ruff_linter/src/suppression.rs:250
Method
new
( parsed: &'a Parsed<ModModule>, source: &'a str, stylist: &'a Stylist<'a>, ta
crates/ruff_linter/src/importer/mod.rs:46
Method
new
( parsed: &'a Parsed<ModModule>, parsed_annotations_arena: &'a typed_arena::Arena<Result<Parse
crates/ruff_linter/src/checkers/ast/mod.rs:257
Method
new
(project_root: &Path)
crates/ruff_linter/src/settings/mod.rs:789
Method
new
Construct a new [`PerFile`] from the given glob `pattern` and containing `data`. If provided, `project_root` is used to construct a second glob patte
crates/ruff_linter/src/settings/types.rs:345
Method
new
( checker: &'a Checker<'b>, candidates: Vec<FileOpen<'a>>, with_stmt: &'a ast::StmtWit
crates/ruff_linter/src/rules/refurb/rules/write_whole_file.rs:110
Method
new
( checker: &'a Checker<'b>, candidates: Vec<FileOpen<'a>>, with_stmt: &'a ast::StmtWit
crates/ruff_linter/src/rules/refurb/rules/read_whole_file.rs:110
Method
new
(name: &'static str, bytes: &'static [u8])
crates/ruff_linter/src/rules/refurb/rules/hardcoded_string_charset.rs:69
Method
new
Create a new [`ReraiseVisitor`] with the given exception name.
crates/ruff_linter/src/rules/flake8_blind_except/rules/blind_except.rs:146
Method
new
( semantic: &'a SemanticModel<'a>, stylist: &'a Stylist<'a>, locator: &'a Locator<'a>,
crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs:479
Method
new
(decorators: &'a BTreeSet<String>)
crates/ruff_linter/src/rules/pydocstyle/settings.rs:137
Method
new
( first_party: Vec<IdentifierPattern>, third_party: Vec<IdentifierPattern>, local_fold
crates/ruff_linter/src/rules/isort/categorize.rs:309
Method
new
( locator: &'a Locator<'a>, directives: &'a IsortDirectives, is_stub: bool, ce
crates/ruff_linter/src/rules/isort/block.rs:41
Method
new
(parameters: &'a Parameters)
crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_map.rs:321
Method
new
(ty: TokenType, range: TextRange)
crates/ruff_linter/src/rules/flake8_commas/rules/trailing_commas.rs:47
Method
new
(stmt: &'a Stmt, checker: &Checker)
crates/ruff_linter/src/rules/flake8_tidy_imports/rules/banned_module_level_imports.rs:93
Method
new
(semantic: &'semantic SemanticModel<'data>)
crates/ruff_linter/src/rules/flake8_return/visitor.rs:58
Method
new
(s: &'a str, max_split: usize, method: Method)
crates/ruff_linter/src/rules/flake8_simplify/rules/split_static_string.rs:325
Method
new
(target: &'a str)
crates/ruff_linter/src/rules/perflint/rules/unnecessary_list_cast.rs:168
Method
new
(input: &'a str)
crates/ruff_linter/src/rules/fastapi/rules/fastapi_unused_path_parameter.rs:499
Method
new
(elements: &'a [&str], elts: &'a [ast::Expr])
crates/ruff_linter/src/rules/ruff/rules/sequence_sorting.rs:191
Method
new
(locator: &'loc Locator<'src>)
crates/ruff_linter/src/rules/ruff/rules/invalid_formatter_suppression_comment.rs:121
Method
new
(offset: TextSize, confusable: char, representant: char)
crates/ruff_linter/src/rules/ruff/rules/ambiguous_unicode_character.rs:333
Method
new
( comment_ranges: I, builder: &'builder mut (dyn CaptureSuppressionComment<'src> + 'src),
crates/ruff_linter/src/rules/ruff/rules/suppression_comment_visitor.rs:41
Method
new
(semantic: &'semantic SemanticModel<'a>)
crates/ruff_linter/src/rules/ruff/rules/unnecessary_assign_before_yield.rs:174
Method
new
Creates a new visitor with the given checker.
crates/ruff_linter/src/rules/ruff/rules/fallible_context_manager.rs:113
Method
new
(node: &'a ast::Expr)
crates/ruff_linter/src/rules/ruff/rules/sort_dunder_slots.rs:204
Method
new
(checker: &'a Checker<'b>, target_version: PythonVersion)
crates/ruff_linter/src/rules/flake8_quotes/rules/avoidable_escaped_quote.rs:96
Method
new
( tokens: &'a Tokens, locator: &'a Locator, indent_width: IndentWidth, cell_of
crates/ruff_linter/src/rules/pycodestyle/rules/blank_lines.rs:408
Method
new
(checker: &'a Checker<'b>, exception_name: &'a str)
crates/ruff_linter/src/rules/flake8_pytest_style/rules/assertion.rs:247
Method
new
(semantic: &'a SemanticModel)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:905
Method
new
(preview: PreviewMode)
crates/ruff_linter/src/rules/flake8_import_conventions/settings.rs:104
Method
new
(semantic: &'a SemanticModel<'b>, logger_objects: &'a [String])
crates/ruff_linter/src/rules/tryceratops/helpers.rs:16
Method
new
(sequence_name: &'a str, index_name: &'a str, value_name: &'a str)
crates/ruff_linter/src/rules/pylint/helpers.rs:79
Method
new
(stmt_for: &'a StmtFor, dict_name: &'a ast::ExprName, checker: &'a Checker<'b>)
crates/ruff_linter/src/rules/pylint/rules/dict_index_missing_items.rs:108
Method
new
(module: &'a str, name: &'a str)
crates/ruff_linter/src/rules/numpy/helpers.rs:18
Method
new
Initialize the visitor.
crates/ruff_linter/src/rules/flake8_bugbear/rules/loop_iterator_mutation.rs:220
Method
new
(group_name: &'a str)
crates/ruff_linter/src/rules/flake8_bugbear/rules/reuse_of_groupby_generator.rs:77
Method
new
(checker: &'a Checker<'b>, extend_immutable_calls: &'a [QualifiedName<'b>])
crates/ruff_linter/src/rules/flake8_bugbear/rules/function_call_in_argument_default.rs:96
Method
new
(keyword: impl Into<DeferralKeyword>)
crates/ruff_linter/src/rules/pyflakes/rules/yield_outside_function.rs:64
Method
new
(shadowed: &'a Binding<'a>, binding: &'a Binding<'a>)
crates/ruff_linter/src/rules/pyflakes/rules/redefined_while_unused.rs:314
Method
new
(range: T, op: CmpOp)
crates/ruff_linter/src/rules/pyflakes/rules/invalid_literal_comparisons.rs:223
Method
new
()
crates/ruff_linter/src/rules/pyupgrade/rules/super_call_with_parameters.rs:330
Method
new
( import_from_stmt: &'a StmtImportFrom, module: &'a str, locator: &'a Locator<'a>,
crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs:438
Method
new
(locator: &'a Locator<'a>, comments: &'a CommentRanges)
crates/ruff_linter/src/rules/pyupgrade/rules/unnecessary_coding_comment.rs:138
Method
new
(source_code: String)
crates/ruff_linter/src/fix/snippet.rs:8
Method
new
(notebook_indexes: &'a FxHashMap<String, NotebookIndex>)
crates/ruff_linter/src/message/mod.rs:206
Method
new
(path: SystemPathBuf, settings_diagnostic_path: Option<SystemPathBuf>)
crates/ty_site_packages/src/lib.rs:65
Method
new
(path: Arc<SystemPathBuf>, range: Option<TextRange>)
crates/ty_site_packages/src/version.rs:59
Method
new
()
crates/ruff_index/src/vec.rs:18
Method
new
()
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:45
Function
new_209
First line. More lines.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:382
Function
new_assignment
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:2442
Method
new_code_block
Attempts to create a new reStructuredText code example from a `code-block` or `sourcecode` directive. If one couldn't be found, then `None` is returne
crates/ruff_python_formatter/src/string/docstring.rs:1057
Method
new_constraint
Creates a new BDD node for an individual constraint. (The BDD will evaluate to `true` when the constraint holds, and to `false` when it does not.)
crates/ty_python_semantic/src/types/constraints.rs:2338
Function
new_directory_with_python_files
()
crates/ty/tests/file_watching.rs:723
Method
new_empty
Construct an empty formatter result
crates/ruff_formatter/src/lib.rs:379
Method
new_equivalence_bound
Returns the constraints that model the requirement that `typevar` must be equivalent to `bound`. An equality is represented by one equivalence constr
crates/ty_python_semantic/src/types/constraints/variables.rs:381
Function
new_file
()
crates/ty/tests/file_watching.rs:700
Function
new_file_in_ignored_directory
()
crates/ty/tests/file_watching.rs:812
Function
new_file_in_included_out_of_project_directory
()
crates/ty/tests/file_watching.rs:1015
Function
new_file_in_parent_ignored_directory
()
crates/ty/tests/file_watching.rs:839
Function
new_files_with_explicit_included_paths
()
crates/ty/tests/file_watching.rs:975
← previous
next →
25,701–25,800 of 31,766, ranked by callers