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
apply_type_mapping_impl
Map the union's elements, preserving open bodies during structural substitutions.
crates/ty_python_semantic/src/types/set_theoretic.rs:365
Method
apply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/subclass_of.rs:207
Method
apply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'_, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/union_type_instance.rs:320
Method
apply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'_, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/known_instance.rs:192
Method
apply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/typed_dict.rs:129
Method
apply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/class.rs:445
Method
apply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/tuple.rs:301
Method
apply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'_, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/method.rs:140
Method
apply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/function.rs:1394
Method
apply_type_mapping_impl
( self, db: &'db dyn Db, type_mapping: &TypeMapping<'a, 'db>, tcx: TypeContext
crates/ty_python_semantic/src/types/callable.rs:1071
Method
apply_type_mapping_impl
Map the complement's remaining components without expanding open recursive bodies.
crates/ty_python_semantic/src/types/enums.rs:898
Method
arbitrary
(g: &mut Gen)
crates/ty_python_semantic/src/types/property_tests/type_generation.rs:667
Function
arc_swap_size
Returns the heap-size of the currently stored `T` in the `ArcSwap`.
crates/ruff_db/src/parsed.rs:267
Method
are_the_same_type
(ty: Type<'db>)
crates/ty_python_semantic/src/types/infer/builder.rs:207
Method
area
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/class_as_data_structure.py:16
Method
area
(self)
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/class_as_data_structure.py:25
Function
arg_magic
(a: T, b: T,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/skip_magic_trailing_comma_generic_wrap.py:4
Function
arg_magic
(a: T, b: T,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:4
Function
arg_magic_mixed1
(a: T, b: T,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/skip_magic_trailing_comma_generic_wrap.py:63
Function
arg_magic_mixed1
(a: T, b: T,)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:63
Function
arg_magic_mixed2
( a: T, b: T, )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/skip_magic_trailing_comma_generic_wrap.py:69
Function
arg_magic_mixed2
( a: T, b: T, )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:69
Function
arg_magic_multiline
( a: T, b: T, )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/skip_magic_trailing_comma_generic_wrap.py:23
Function
arg_magic_multiline
( a: T, b: T, )
crates/ruff_python_formatter/resources/test/fixtures/black/cases/generics_wrapping.py:23
Function
args_blank_line_comment
(* # comment args)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:510
Function
args_many_comments
( # before * # between * and name args # trailing args # after name )
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:532
Function
args_many_comments_with_type_annotation
( # before * # between * and name args # trailing args # before colon : # after colon
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:541
Function
args_no_type_annotation
(* # comment args)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:499
Function
args_trailing_end_of_line_comment
(* # comment args)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:507
Function
args_type_annotation
(* # comment args: int)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:503
Function
args_with_leading_parameter_comment
( # What comes next are arguments * # with an inline comment args)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:516
Function
args_with_type_annotations_no_after_colon_comment
( # before * # between * and name args # trailing args # before colon : # before t
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:555
Method
argument
A convenience constructor for an "argument" completion. This is used for either class or function based arguments.
crates/ty_ide/src/completion.rs:475
Function
argument_name_hint_before_starred_argument_has_no_edit
()
crates/ty_ide/src/inlay_hints.rs:4437
Function
argument_name_hint_before_variadic_arguments_has_no_edit
()
crates/ty_ide/src/inlay_hints.rs:4384
Function
argument_name_hint_for_keyword_already_in_call_has_no_edit
()
crates/ty_ide/src/inlay_hints.rs:4490
Function
argument_name_hint_for_parameter_that_normalizes_to_a_keyword
()
crates/ty_ide/src/inlay_hints.rs:4457
Function
argument_per_line
(aaaaaaaaaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbb, ccccccccccccccccc, ddddddddddddd, eeeeeeeeeeeeeeee, fffffffff
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:29
Function
argument_with_long_default
( a, b = ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc + [ ddddddddd
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:51
Function
argument_with_long_type_annotation
( a, b: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:60
Function
arguments
()
crates/ty_python_semantic/src/fixes.rs:956
Function
arguments_alias
Summary. Returns: int Arguments: x: Description.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D420_google.py:100
Function
arguments_on_their_own_line
(aaaaaaaaaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbb, ccccccccccc, ddddddddddddd, eeeeeee)
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/function.py:26
Function
around
Whitespace at everywhere.
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:292
Function
array_into_iter
()
crates/ruff_annotate_snippets/tests/rustc_tests.rs:3569
Function
arrow_strip_whitespace
(obj: Table, /, *cols: str)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30.py:932
Method
as_ann_assign_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:650
Method
as_any
(&self)
crates/ruff_db/src/system/os.rs:199
Method
as_any
(&self)
crates/ty_wasm/src/lib.rs:1707
Method
as_any_mut
(&mut self)
crates/ty_test/src/db.rs:606
Method
as_any_mut
(&mut self)
crates/ruff_db/src/system/test.rs:194
Method
as_any_mut
(&mut self)
crates/ruff_db/src/system/os.rs:203
Method
as_any_mut
(&mut self)
crates/ty_wasm/src/lib.rs:1711
Function
as_array
Create a numpy array from a ctypes array or POINTER. The numpy array shares the memory with the ctypes object. The shape pa
crates/ruff_benchmark/resources/numpy/ctypeslib.py:508
Method
as_assert_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:954
Method
as_assert_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:946
Method
as_assign_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:576
Method
as_attribute_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2561
Method
as_aug_assign_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:621
Method
as_aug_assign_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:613
Method
as_await_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2088
Method
as_await_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2080
Method
as_bin_op_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:1710
Method
as_bool_op_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:1636
Method
as_boolean_literal_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2450
Method
as_break_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1213
Method
as_break_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:1205
Method
as_bytes_literal_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2376
Method
as_call_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2228
Method
as_char
(&self)
crates/ruff_python_codegen/src/stylist.rs:165
Method
as_class
(&self)
crates/ty_python_core/src/definition.rs:979
Method
as_class_def_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:428
Method
as_compare_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2191
Method
as_continue_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1250
Method
as_continue_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:1242
Function
as_ctypes
Create and return a ctypes object from a numpy array. Actually anything that exposes the __array_interface__ is accepted.
crates/ruff_benchmark/resources/numpy/ctypeslib.py:529
Method
as_delete_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:510
Method
as_delete_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:502
Method
as_dict_comp_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2014
Method
as_dict_comp_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2006
Method
as_dict_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:1858
Method
as_disjoint_base
Return `Some()` if this class is known to be a [`DisjointBase`], or `None` if it is not.
crates/ty_python_semantic/src/types/class/static_literal.rs:740
Method
as_disjoint_base
Return `Some()` if this dynamic class is known to be a [`DisjointBase`]. A dynamic class is a disjoint base if `__slots__` is defined in the namespac
crates/ty_python_semantic/src/types/class/dynamic_literal.rs:500
Method
as_ellipsis_literal_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2532
Method
as_ellipsis_literal_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2524
Method
as_except_handler_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2887
Method
as_except_handler_ref
(self)
crates/ruff_python_ast/src/generated.rs:6194
Method
as_expr_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:1131
Method
as_expression
(&self)
crates/ruff_python_ast/src/generated.rs:114
Method
as_expression_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:106
Method
as_f_string_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2273
Method
as_f_string_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2265
Method
as_for_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:687
Method
as_function_def_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:391
Method
as_generator_expr_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:2043
Method
as_global_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1065
Method
as_global_stmt_mut
(&mut self)
crates/ruff_python_ast/src/generated.rs:1057
Method
as_hashable
Returns a version of the given expression that can be hashed and compared according to Python semantics.
crates/ruff_python_ast/src/comparable.rs:2210
Method
as_hashable_constant
Returns a hashable representation if the expression's value is statically known.
crates/ruff_python_ast/src/comparable.rs:2225
Method
as_if_expr
(&self)
crates/ruff_python_ast/src/generated.rs:1829
← previous
next →
15,701–15,800 of 31,562, ranked by callers