MCPcopy Create free account

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

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

Functionread_item
(item_id)
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_1.py:69
Functionread_items
(*, item_id: int = Path(title="The ID of the item to get"), q: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST002_0.py:61
Functionread_jupyter_cell
Read a Jupyter cell from the `resources/test/fixtures/jupyter/cell` directory.
crates/ruff_notebook/src/notebook.rs:608
Functionread_line
(fd: int = 0)
crates/ruff_linter/resources/test/fixtures/pycodestyle/E30_isort.py:54
Functionread_query_nfkc
(query: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:263
Functionread_thing
(query: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:10
Functionread_thing_callable_dep
(query: Annotated[str, Depends(CallableQuery)])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:315
Functionread_thing_callable_dep_instance
(query: Annotated[str, Depends(CallableQuery())])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:321
Functionread_thing_callable_dep_instance_default
(query: str = Depends(CallableQuery()))
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:368
Functionread_thing_callable_dep_missing
(query: Annotated[str, Depends(CallableQueryOther)])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:346
Functionread_thing_empty_class_dep
(query: Annotated[str, Depends(EmptyClass)])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:362
Functionread_thing_init_and_call_dep
(query: Annotated[str, Depends(InitAndCallQuery)])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:335
Functionread_thing_init_and_call_instance
(query: Annotated[str, Depends(InitAndCallQuery())])
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:352
Functionread_thing_init_and_call_instance_default
(query: str = Depends(InitAndCallQuery()))
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:371
Functionread_thing_kwarg
(**query: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:282
Functionread_thing_posonly
(query: str, /)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:289
Functionread_thing_posonly_default
(query: str = "", /)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:295
Functionread_thing_posonly_default_trailing
(query: str = "", /,)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:298
Functionread_thing_posonly_trailing
(query: str, /,)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:292
Functionread_thing_posonly_with_regular
(query: str = "", /, x=None)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:301
Functionread_thing_vararg
(*query: str)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:279
Functionread_thing_vararg_kwarg
(*args, **kwargs)
crates/ruff_linter/resources/test/fixtures/fastapi/FAST003.py:285
Methodread_to_notebook
(&self, path: &SystemPath)
crates/ty_test/src/db.rs:547
Methodread_to_notebook
(&self, path: &SystemPath)
crates/ty_server/src/system.rs:217
Methodread_to_notebook
(&self, path: &SystemPath)
crates/ruff_db/src/system/test.rs:128
Methodread_to_notebook
(&self, path: &SystemPath)
crates/ruff_db/src/system/os.rs:99
Methodread_to_notebook
( &self, path: &SystemPath, )
crates/ty_wasm/src/lib.rs:1652
Methodread_to_string
(&self, path: &SystemPath)
crates/ruff_db/src/system/os.rs:95
Methodread_virtual_path_to_notebook
( &self, path: &ruff_db::system::SystemVirtualPath, )
crates/ty_test/src/db.rs:559
Methodread_virtual_path_to_notebook
( &self, path: &SystemVirtualPath, )
crates/ty_server/src/system.rs:239
Methodread_virtual_path_to_notebook
( &self, path: &SystemVirtualPath, )
crates/ruff_db/src/system/test.rs:136
Methodread_virtual_path_to_notebook
( &self, _path: &SystemVirtualPath, )
crates/ty_wasm/src/lib.rs:1667
Methodread_virtual_path_to_string
( &self, path: &ruff_db::system::SystemVirtualPath, )
crates/ty_test/src/db.rs:552
Methodread_virtual_path_to_string
(&self, path: &SystemVirtualPath)
crates/ty_server/src/system.rs:227
Methodread_virtual_path_to_string
(&self, _path: &SystemVirtualPath)
crates/ruff_db/src/system/os.rs:103
Methodread_virtual_path_to_string
( &self, _path: &SystemVirtualPath, )
crates/ty_wasm/src/lib.rs:1660
Functionread_whole_file_newline_python_version_diff
()
crates/ruff_linter/src/rules/refurb/mod.rs:71
Functionreaddir_snapshot
(fs: &VendoredFileSystem, path: &str)
crates/ruff_db/src/vendored.rs:627
Methodreal
(real: HashableReal)
crates/ruff_python_ast/src/comparable.rs:2131
Methodreal_stdlib
Create a new search path pointing to the real stdlib of a python install
crates/ty_module_resolver/src/path.rs:662
Functionreally_long
()
crates/ruff_python_formatter/resources/test/fixtures/black/cases/type_params.py:7
Methodreason
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, flags: InferenceFlags,
crates/ty_python_semantic/src/types.rs:12192
Methodreason
Return an [`MetaclassErrorKind`] variant describing why we could not resolve the metaclass for this class.
crates/ty_python_semantic/src/types/class.rs:3540
Functionreassignments_prevent_dependent_reference_rewrites
()
crates/ty_ide/src/will_rename.rs:1641
Methodrebuild_node
( storage: &mut ConstraintSetStorage<'_>, old_node: NodeId, mapped_constra
crates/ty_python_semantic/src/types/constraints.rs:881
Methodrec
( operand: Operand<'a>, comments: &'a Comments, trivia: &TriviaRanges,
crates/ruff_python_formatter/src/expression/binary_like.rs:175
Methodrecall
(self)
scripts/conformance.py:434
Methodreceiver_violates_typevar_domain
Returns whether a concrete receiver violates a direct receiver type variable's domain. Unbounded or non-concrete receivers do not provably violate th
crates/ty_python_semantic/src/types/signatures.rs:1681
Functionrecognizes_common_role_uses_outside_rest_boundaries
()
crates/ty_ide/src/docstring/document/syntax.rs:685
Functionrecognizes_parameter_section_headings
()
crates/ty_ide/src/docstring/document/google.rs:1086
Functionrecognizes_rest_prefix_roles
()
crates/ty_ide/src/docstring/document/syntax.rs:735
Functionrecognizes_unversioned_graalpy_executable
()
crates/ty_site_packages/src/lib.rs:4063
Functionrecognizes_wrapped_markdown_code_spans
()
crates/ty_ide/src/docstring/document/syntax.rs:719
Functionrecomputed_visits_share_abstract_identity_guards
()
crates/ty_python_semantic/src/types/cyclic.rs:1723
Functionrecomputed_visits_share_exact_recursion_guards
()
crates/ty_python_semantic/src/types/cyclic.rs:1704
Methodrecord
(visit: &mut dyn Visit)
crates/ty_project/src/metadata/options.rs:2032
Methodrecord
Unmarked identifiers between two expressions inherit their scope if both agree.
crates/ty_python_core/src/ast_ids.rs:177
Functionrecord_constraint
()
crates/ty_python_core/src/use_def/place_state.rs:902
Functionrecord_declaration
()
crates/ty_python_core/src/use_def/place_state.rs:1054
Functionrecord_declaration_merge
()
crates/ty_python_core/src/use_def/place_state.rs:1131
Functionrecord_declaration_merge_partial_undeclared
()
crates/ty_python_core/src/use_def/place_state.rs:1156
Functionrecord_declaration_override
()
crates/ty_python_core/src/use_def/place_state.rs:1065
Methodrecord_exception_checkpoint
Records a checkpoint for every active `try` or `with` context that could handle an exception raised at the current point in control flow. Crosses eag
crates/ty_python_core/src/builder/except_handlers.rs:118
Methodrecord_field
(&mut self, name: &str, field: OptionField)
crates/ruff/src/commands/completions/config.rs:44
Methodrecord_field
(&mut self, name: &str, field: OptionField)
crates/ruff_options_metadata/src/lib.rs:298
Methodrecord_field
(&mut self, name: &str, field: OptionField)
crates/ruff_dev/src/generate_ty_options.rs:275
Methodrecord_field
(&mut self, name: &str, field: OptionField)
crates/ruff_dev/src/generate_options.rs:204
Methodrecord_narrowing_constraint_for_bindings
Add the given constraint to live bindings selected by definition ID.
crates/ty_python_core/src/use_def/place_state.rs:630
Methodrecord_narrowing_constraint_for_bindings_at_use
Add the given constraint to live bindings that were also present at an earlier use.
crates/ty_python_core/src/use_def/place_state.rs:612
Methodrecord_place_use
( &mut self, expr: &ast::Expr, scope: FileScopeId, use_id: ScopedUseId,
crates/ty_python_core/src/ast_ids.rs:82
Methodrecord_reachability_constraint
Add given reachability constraint to all live declarations.
crates/ty_python_core/src/use_def/place_state.rs:251
Methodrecord_set
(&mut self, name: &str, group: OptionSet)
crates/ruff/src/commands/completions/config.rs:24
Methodrecord_set
(&mut self, name: &str, set: OptionSet)
crates/ruff_options_metadata/src/lib.rs:287
Methodrecord_set
(&mut self, name: &str, group: OptionSet)
crates/ruff_dev/src/generate_ty_options.rs:271
Methodrecord_set
(&mut self, name: &str, group: OptionSet)
crates/ruff_dev/src/generate_options.rs:200
Methodrecord_terminal_finally_entry
Records a terminal entry for the nearest enclosing `try`, skipping `with` contexts.
crates/ty_python_core/src/builder/except_handlers.rs:202
Functionrecording_constraints_does_not_project_legacy_mappings
()
crates/ty_python_semantic/src/types/generics.rs:5813
Methodrecover
Close recursive occurrences after inferring an alias's constructor expression.
crates/ty_python_semantic/src/types/recursive.rs:371
Functionrecovers_parameter_after_quoted_delimiter_in_malformed_type
()
crates/ty_ide/src/docstring/document/google.rs:979
Functionrecovers_parameter_after_spaced_delimiter_in_malformed_type
()
crates/ty_ide/src/docstring/document/google.rs:991
Functionrecovery_inference_is_not_a_complete_solution
()
crates/ty_python_semantic/src/types/generics.rs:5302
Functionrecreating_default_environment_updates_inferred_python_version
()
crates/ty/tests/file_watching.rs:1944
Functionrecreating_selected_environment_clears_uv_error
()
crates/ty/tests/file_watching.rs:4082
Functionrecur1
(a)
crates/ty_python_semantic/resources/corpus/54_list_comp_recur_func.py:1
Methodrecurse
(self, *, _seen: set[Node] | None = None)
crates/ruff_linter/resources/test/fixtures/ruff/RUF052_0.py:171
Methodrecurse_binary
( binary: &'a ExprBinOp, leading_comments: &'a [SourceComment], trailing_c
crates/ruff_python_formatter/src/expression/binary_like.rs:141
Methodrecurse_bool
( bool_expression: &'a ExprBoolOp, leading_comments: &'a [SourceComment],
crates/ruff_python_formatter/src/expression/binary_like.rs:93
Methodrecurse_compare
( compare: &'a ExprCompare, leading_comments: &'a [SourceComment], trailin
crates/ruff_python_formatter/src/expression/binary_like.rs:39
Functionrecursive
(n)
crates/ruff_linter/resources/test/fixtures/mccabe/C901.py:54
Functionrecursive
()
crates/ruff_linter/src/rules/mccabe/rules/function_is_too_complex.rs:296
Functionrecursive_alias_arguments_resolve_selected_dependencies
()
crates/ty_python_semantic/src/types/constraints/resolution.rs:341
Functionrecursive_alias_bodies_retain_captured_dependencies
()
crates/ty_python_semantic/src/types/constraints/resolution.rs:425
Functionrecursive_annotated_normalization
()
crates/ty_python_semantic/src/types/tests.rs:705
Functionrecursive_annotated_relations
()
crates/ty_python_semantic/src/types/tests.rs:733
Functionrecursive_protocol_materialization_tracks_member_type_changes
()
crates/ty_python_semantic/src/types/infer/tests.rs:1592
Methodrecursive_type_normalized_impl
( &self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, div: Type<'db>,
crates/ty_python_semantic/src/types/signatures.rs:305
Methodrecursive_type_normalized_impl
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, div: Type<'db>,
crates/ty_python_semantic/src/types/protocol_class.rs:404
Methodrecursive_type_normalized_impl
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, div: Type<'db>,
crates/ty_python_semantic/src/types/instance.rs:387
Methodrecursive_type_normalized_impl
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, div: Type<'db>,
crates/ty_python_semantic/src/types/generics.rs:1540
Methodrecursive_type_normalized_impl
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, div: Type<'db>,
crates/ty_python_semantic/src/types/set_theoretic.rs:665
← previousnext →27,101–27,200 of 31,562, ranked by callers