MCPcopy Create free account

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

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

Methodis_file
(&self, path: impl AsRef<VendoredPath>)
crates/ruff_db/src/vendored.rs:97
Methodis_file
Returns `true` if `path` exists and is a file.
crates/ruff_db/src/system.rs:160
Methodis_file_included
( &self, path: &SystemPath, mode: GlobFilterCheckMode, )
crates/ty_project/src/glob.rs:54
Methodis_file_open
(&self, path: &FilePath)
crates/ty_server/src/system.rs:190
Methodis_file_open
(&self, path: &FilePath)
crates/ty_wasm/src/lib.rs:1643
Methodis_frozen
Whether the class's frozen setting is enforced for ordinary attribute writes.
crates/ty_python_semantic/src/types/class.rs:342
Methodis_future_import
(&self, _target_version: PythonVersion)
crates/ruff_python_semantic/src/imports.rs:168
Methodis_generator_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2022
Methodis_global
Return `true` if this [`Binding`] represents a `global`. A [`Binding`] is a `global` if it's declared by a `global` statement, or shadows a [`Binding`
crates/ruff_python_semantic/src/binding.rs:89
Methodis_global_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1036
Methodis_gradual_paramspec_value
Return `true` if `callable` is the gradual `...` value for a `ParamSpec`. For example, in `Command[Any, ..., Any]`, the middle type argument is repre
crates/ty_python_semantic/src/types/relation.rs:3437
Methodis_gradual_variadic_parameter
(parameters: &Parameters<'db>, parameter_index: usize)
crates/ty_python_semantic/src/types/call/bind.rs:7923
Methodis_hard
(&self)
crates/ruff_formatter/src/format_element.rs:122
Methodis_hashable
Return `true` if this is the standard-library `Hashable` protocol.
crates/ty_python_semantic/src/types/instance.rs:1754
Functionis_identifier_continuation
Checks if the character c is a valid continuation character as described in <https://docs.python.org/3/reference/lexical_analysis.html#identifiers>.
crates/ruff_python_parser/src/lexer.rs:1547
Functionis_identifier_continuation
Checks if the character c is a valid continuation character as described in https://docs.python.org/3/reference/lexical_analysis.html#identifiers
crates/ruff_python_stdlib/src/identifiers.rs:35
Functionis_identifier_start
Checks if the character c is a valid starting character as described in https://docs.python.org/3/reference/lexical_analysis.html#identifiers
crates/ruff_python_stdlib/src/identifiers.rs:29
Methodis_if_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:740
Methodis_implicit
(&self)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:861
Methodis_implicit_concatenated
Returns `true` if the literal is either a string or bytes literal that is implicitly concatenated.
crates/ruff_python_ast/src/expression.rs:69
Methodis_incomparable_for_union
Return whether two distinct types can skip union redundancy and complement checks. A `true` result guarantees that neither type subsumes the other un
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:1175
Methodis_instance_of
Return `true` if this symbol is an instance of `class`.
crates/ty_python_semantic/src/types/known_instance.rs:570
Methodis_instance_of
Return `true` if this symbol is an instance of `class`.
crates/ty_python_semantic/src/types/special_form.rs:245
Methodis_interpolated_string
(self)
crates/ruff_python_ast/src/expression.rs:93
Methodis_interpolated_string_element
(self)
crates/ruff_python_ast/src/generated.rs:7385
Methodis_intersection
(self)
crates/ty_python_semantic/src/types.rs:3283
Methodis_ipy_escape_command_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2799
Functionis_iterator
Returns `true` if the given name is that of a Python builtin iterator.
crates/ruff_python_stdlib/src/builtins.rs:453
Methodis_lazy
Return `true` if this binding was imported lazily, including through `__lazy_modules__`.
crates/ruff_python_semantic/src/binding.rs:70
Methodis_line
Whether this annotation is a vertical line placeholder.
crates/ruff_annotate_snippets/src/renderer/render.rs:2498
Methodis_literal
(&self)
crates/ruff_python_ast/src/generated.rs:2978
Methodis_magic_cell
Returns `true` if a cell should be ignored due to the use of cell magics.
crates/ruff_notebook/src/cell.rs:84
Methodis_match_as
(&self)
crates/ruff_python_ast/src/generated.rs:3332
Methodis_match_class
(&self)
crates/ruff_python_ast/src/generated.rs:3258
Methodis_match_mapping
(&self)
crates/ruff_python_ast/src/generated.rs:3221
Methodis_match_or
(&self)
crates/ruff_python_ast/src/generated.rs:3369
Methodis_match_sequence
(&self)
crates/ruff_python_ast/src/generated.rs:3184
Methodis_match_singleton
(&self)
crates/ruff_python_ast/src/generated.rs:3147
Methodis_match_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:814
Methodis_match_value
(&self)
crates/ruff_python_ast/src/generated.rs:3110
Methodis_module
(self)
crates/ty_module_resolver/src/module.rs:224
Functionis_mutable_return_type
Returns `true` if a call path represents a function from the Python standard library that returns a mutable value (e.g., `dict`).
crates/ruff_python_stdlib/src/typing.rs:303
Methodis_narrowing_target_candidate
(expr: &ast::Expr)
crates/ty_python_semantic/src/types/narrow.rs:4053
Methodis_non_empty
(self)
crates/ruff_python_formatter/src/expression/mod.rs:1151
Methodis_non_soft_keyword
(self)
crates/ruff_python_ast/src/token.rs:381
Methodis_nonlocal_stmt
(&self)
crates/ruff_python_ast/src/generated.rs:1073
Functionis_noreturn_func
Return `true` if the `func` appears to be non-returning.
crates/ruff_linter/src/rules/flake8_return/rules/function.rs:431
Methodis_notebook
(&self, file: &UnifiedFile)
crates/ruff_linter/src/message/mod.rs:156
Methodis_open_file
(&self, file: File)
crates/ty_project/src/db.rs:652
Methodis_open_file
(&self, _file: File)
crates/ty_test/src/db.rs:174
Methodis_open_file
(&self, _file: File)
crates/ty_python_semantic/tests/corpus.rs:242
Methodis_open_file
(&self, _file: File)
fuzz/fuzz_targets/ty_check_invalid_syntax.rs:150
Methodis_own_line
Returns `true` if a comment is an own-line comment (as opposed to an end-of-line comment).
crates/ruff_python_trivia/src/comment_ranges.rs:249
Methodis_package
Returns `true` if the file is an `__init__.pyi`
crates/ruff_db/src/files.rs:572
Methodis_param_spec
(&self)
crates/ruff_python_ast/src/generated.rs:3530
Functionis_parameter_name
Returns whether `name` is a valid Python parameter name, including variadic prefixes.
crates/ty_ide/src/docstring/document/google.rs:132
Methodis_parenthesized
Returns `true` if the expression is in a parenthesized context.
crates/ruff_python_formatter/src/context.rs:236
Methodis_pathlib_path_call
(expr: &Expr, semantic: &SemanticModel)
crates/ruff_linter/src/rules/pylint/rules/unspecified_encoding.rs:116
Methodis_pathlib_path_constructor
(semantic: &SemanticModel, expr: &Expr)
crates/ruff_python_semantic/src/analyze/typing.rs:943
Methodis_pathlib_path_constructor
( semantic: &ruff_python_semantic::SemanticModel, expr: &Expr, )
crates/ruff_linter/src/rules/flake8_async/rules/blocking_path_methods.rs:153
Methodis_pattern
(self)
crates/ruff_python_ast/src/generated.rs:7394
Methodis_pending
(&self, request_id: &RequestId)
crates/ruff_server/src/session/request_queue.rs:80
Functionis_possibly_constraint_set_assignable
(db: &'db dyn Db, types: TypePair<'db>)
crates/ty_python_semantic/src/types/constraints.rs:3685
Methodis_primary
(&self)
crates/ruff_annotate_snippets/src/snippet.rs:444
Methodis_printable_ascii
(byte: u8)
crates/ruff_formatter/src/format_element.rs:512
Methodis_private
Returns `true` if the module name is considered private. This routine is meant to codify a Python ecosystem convention. That is, a module is consider
crates/ty_module_resolver/src/module_name.rs:446
Methodis_promotable_tuple_literal
Returns true if the given expression is either a non-starred homogeneous tuple literal or the empty tuple (and hence is eligible for tuple size promot
crates/ty_python_semantic/src/types/tuple/promotion.rs:184
Methodis_py_file
(self)
crates/ruff_python_ast/src/lib.rs:141
Methodis_py_file_or_stub
(self)
crates/ruff_python_ast/src/lib.rs:149
Functionis_pytest_asyncio_enabled
https://github.com/astral-sh/ruff/issues/25375
crates/ruff_linter/src/preview.rs:13
Functionis_python_identifier_continue
Return `true` if the given character is a valid Python identifier continuation character. Python identifiers can contain alphanumeric characters and
crates/ruff_python_ast/src/identifier.rs:143
Functionis_python_notebook
(filename: &str, expected: bool)
crates/ruff_notebook/src/notebook.rs:528
Methodis_raw_string
Returns `true` if the token is a raw string.
crates/ruff_python_ast/src/token.rs:869
Methodis_read_only
Returns `true` if the place has a `ReadOnly` qualifier or is a nested class.
crates/ty_python_semantic/src/place.rs:1124
Methodis_redundant_with_impl
(db: &'db dyn Db, types: TypePair<'db>)
crates/ty_python_semantic/src/types/relation.rs:813
Methodis_replacement
(&self)
crates/ruff_diagnostics/src/edit.rs:93
Methodis_required
Returns `true` if the place has a `Required` type qualifier.
crates/ty_python_semantic/src/place.rs:1114
Methodis_safe_mutable_class
Arbitrary `__getitem__`/`__setitem__` methods on a class do not necessarily guarantee that the passed-in value for `__setitem__` is stored and can be
crates/ty_python_semantic/src/types/infer/builder.rs:13814
Methodis_same_file
( &self, first: &SystemPath, second: &SystemPath, )
crates/ty_test/src/db.rs:534
Methodis_same_file
(&self, first: &SystemPath, second: &SystemPath)
crates/ruff_db/src/system/test.rs:120
Methodis_same_file
(&self, first: &SystemPath, second: &SystemPath)
crates/ruff_db/src/system/os.rs:91
Methodis_same_file
( &self, first: &SystemPath, second: &SystemPath, )
crates/ty_wasm/src/lib.rs:1633
Methodis_set_comp_expr
(&self)
crates/ruff_python_ast/src/generated.rs:1948
Functionis_simple_assignment_to_attribute
Checks whether a statement is a, possibly augmented, assignment of a name to an attribute.
crates/ruff_linter/src/rules/flake8_bugbear/rules/class_as_data_structure.rs:116
Methodis_singleton
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/instance.rs:460
Methodis_space
(&self)
crates/ruff_formatter/src/format_element.rs:253
Methodis_spellable
Return `true` if it is possible to spell an equivalent type to this one in user annotations without nonstandard extensions to the type system
crates/ty_python_semantic/src/types.rs:3522
Methodis_spilled
(&self)
crates/ruff_python_ast/src/name.rs:728
Methodis_spilled
(&self)
crates/ty_python_semantic/src/types/cyclic.rs:1213
Methodis_spilled
(&self)
crates/ty_python_semantic/src/types/visitor.rs:442
Methodis_standalone_expression
(&self, expression_key: impl Into<ExpressionNodeKey>)
crates/ty_python_core/src/lib.rs:764
Methodis_start_tag
Returns `true` if self is a [`FormatElement::Tag`] and `Tag::is_start` is `true`.
crates/ruff_formatter/src/format_element.rs:229
Functionis_string
Test whether the given binding can be considered an instance of `str`.
crates/ruff_python_semantic/src/analyze/typing.rs:1084
Methodis_string_keyed_mapping
( db: &'db dyn Db, env: &ProgramEnvironment<'db>, ty: Type<'db>, )
crates/ty_python_semantic/src/types/generics.rs:3754
Methodis_string_literal
(self)
crates/ruff_python_ast/src/expression.rs:247
Methodis_structural
Whether this mapping rewrites type structure without semantic normalization. Binding and unfolding may traverse open recursive bodies, so neither inf
crates/ty_python_semantic/src/types.rs:11917
Methodis_subclass_of
Return `true` if `other` is present in this class's MRO.
crates/ty_python_semantic/src/types/class/static_literal.rs:999
Methodis_suppression_off
Returns true if this comment is a `fmt: on` or `yapf: enable` own line suppression comment.
crates/ruff_python_trivia/src/comments.rs:60
Methodis_suppression_on
Returns true if this comment is a `fmt: off` or `yapf: disable` own line suppression comment.
crates/ruff_python_trivia/src/comments.rs:55
Methodis_system_path
(&self)
crates/ruff_db/src/files/path.rs:43
← previousnext →23,301–23,400 of 31,766, ranked by callers