MCPcopy Create free account

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

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

↓ 11 callersMethodspans
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/function.rs:824
↓ 11 callersMethodsubtypes
(&self)
crates/ty_ide/src/type_hierarchy.rs:752
↓ 11 callersMethodswap_remove
Remove `ty` from the collection. Returns `true` if `ty` was previously in the collection and has now been removed. Returns `false` if `ty` was never
crates/ty_python_semantic/src/types/set_theoretic.rs:901
↓ 11 callersMethodsystem
(path: impl AsRef<SystemPath>)
crates/ruff_db/src/files/path.rs:27
↓ 11 callersMethodtext_len
(self)
crates/ruff_python_ast/src/str_prefix.rs:39
↓ 11 callersMethodto_location
Converts this range into an LSP location. Returns `None` if the URI for this file couldn't be resolved.
crates/ty_server/src/document/range.rs:40
↓ 11 callersMethodto_text_size
( self, text: &str, index: &LineIndex, position_encoding: PositionEncoding,
crates/ty_wasm/src/lib.rs:1170
↓ 11 callersMethodtoken
Creates a new token that uses this source.
crates/ruff_db/src/cancellation.rs:25
↓ 11 callersMethodtoken_len
(&self)
crates/ruff_python_trivia/src/cursor.rs:77
↓ 11 callersMethodtry_into_module
Attempts to convert the [`Parsed<Mod>`] into a [`Parsed<ModModule>`]. This method checks if the `syntax` field of the output is a [`Mod::Module`]. If
crates/ruff_python_parser/src/lib.rs:502
↓ 11 callersMethodtry_map
A fallible version of [`UnionType::map`]. For each element in `self`, `transform_fn` is called on that element. If `transform_fn` returns `Some()` fo
crates/ty_python_semantic/src/types/set_theoretic.rs:472
↓ 11 callersMethodunion
(self, other: TokenSet)
crates/ruff_python_parser/src/token_set.rs:20
↓ 11 callersMethodunion
Return a new tuple-spec builder that reflects the union of this tuple and another tuple. For example, if `self` is a tuple-spec builder for `tuple[Li
crates/ty_python_semantic/src/types/tuple.rs:3152
↓ 11 callersMethodunpack_aliases
(mut self, val: bool)
crates/ty_python_semantic/src/types/set_theoretic/builder.rs:745
↓ 11 callersMethoduse_system
(&mut self, system: S)
crates/ruff_db/src/system/test.rs:98
↓ 11 callersMethodvalues
()
crates/ruff_linter/src/registry.rs:447
↓ 11 callersMethodvisit
( &mut self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, storage: &mut Con
crates/ty_python_semantic/src/types/constraints/paths.rs:310
↓ 11 callersFunctionwalk_specialization_types
Visit specialization arguments without walking the generic declaration.
crates/ty_python_semantic/src/types/generics.rs:1226
↓ 11 callersMethodwhen_assignable_to
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, target: Type<'db>,
crates/ty_python_semantic/src/types/relation.rs:614
↓ 11 callersMethodwhen_true
(self)
crates/ty_python_semantic/src/types/constraints.rs:1818
↓ 11 callersMethodwith_default_type
(mut self, default: Type<'db>)
crates/ty_python_semantic/src/types/signatures.rs:6078
↓ 11 callersMethodwith_env_var
Set an environment variable for the test server's system.
crates/ty_server/tests/e2e/main.rs:1383
↓ 11 callersMethodwith_filter
(mut self, pattern: &str, replacement: &str)
crates/ty/tests/common/mod.rs:95
↓ 11 callersMethodwith_name
(self, name: impl Into<OptionCow<'a>>)
crates/ruff_annotate_snippets/src/level.rs:167
↓ 11 callersMethodwith_quote_style
(mut self, quote_style: Quote)
crates/ruff_python_ast/src/nodes.rs:1140
↓ 11 callersMethodwith_watched_file_support
Enable dynamic file watching, optionally with relative patterns.
crates/ty_server/tests/e2e/main.rs:1515
↓ 11 callersFunctionworkspace_builder
(mode: DiagnosticMode)
crates/ty_server/tests/e2e/script_preparation.rs:527
↓ 11 callersMethodwrite
(&mut self, buf: &[u8])
crates/ruff_db/src/diagnostic/render.rs:88
↓ 11 callersMethodwrite_file
( &self, relative_path: impl AsRef<SystemPath>, content: &str, )
crates/ty/tests/file_watching.rs:398
↓ 10 callersMethodabsolute
Resolves the absolute path for `self` based on its origin.
crates/ty_project/src/metadata/value.rs:65
↓ 10 callersMethodadd
(&mut self, line_range: TextRange)
crates/ruff_linter/src/rules/pycodestyle/rules/blank_lines.rs:564
↓ 10 callersMethodadd_declaration_with_binding
( &mut self, node: AnyNodeRef, definition: Definition<'db>, declared_and_infer
crates/ty_python_semantic/src/types/infer/builder.rs:1920
↓ 10 callersMethodadd_substitution
( &mut self, substituted: AtomicConstraint<'db>, ante: AtomicConstraint<'db>,
crates/ty_python_semantic/src/types/constraints/sequents.rs:352
↓ 10 callersMethodalias
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/recursive.rs:505
↓ 10 callersMethodas_notebook
(&self)
crates/ty_server/src/session/index.rs:266
↓ 10 callersMethodas_str
Returns the string representation of the quote style.
crates/ruff_python_formatter/src/options.rs:278
↓ 10 callersMethodas_union_like
Returns `Some(UnionType)` if this type behaves like a union. Apart from explicit unions, this returns `Some` for `TypeAlias`es of unions and `NewType`
crates/ty_python_semantic/src/types.rs:3145
↓ 10 callersFunctionassert_function_query_was_not_run_by_name
( db: &Db, query_name: &str, input: Option<salsa::Id>, events: &[salsa::Event], )
crates/ruff_db/src/testing.rs:53
↓ 10 callersFunctionassert_notebook_path
( path: impl AsRef<Path>, expected: impl AsRef<Path>, settings: &LinterSettings, )
crates/ruff_linter/src/test.rs:186
↓ 10 callersFunctionbefore_main
()
crates/ruff_wasm/src/lib.rs:206
↓ 10 callersMethodcache_key
(&self, state: &mut CacheKeyHasher)
crates/ruff_cache/src/globset.rs:6
↓ 10 callersMethodcalculate_source_orders
( &self, source_order: Option<SourceOrderId>, )
crates/ty_python_semantic/src/types/constraints.rs:1505
↓ 10 callersMethodcell_index
Attach a Jupyter notebook cell index.
crates/ruff_annotate_snippets/src/snippet.rs:301
↓ 10 callersMethodcheck
Checks all open files
crates/ty_wasm/src/lib.rs:281
↓ 10 callersMethodclass_definition_of_method
Return the [`Definition`] of the class enclosing this method, given the method's body scope, or `None` if it is not a method.
crates/ty_python_core/src/lib.rs:559
↓ 10 callersMethodcloser_len
The total length of the string's closer. This is always equal to `self.quote_len()`, except when the string is unclosed, in which case the length is z
crates/ruff_python_ast/src/nodes.rs:1034
↓ 10 callersMethodcompletions
Returns the underlying completions if the convenience assertions aren't sufficiently expressive.
crates/ty_ide/src/completion.rs:11872
↓ 10 callersFunctioncompute
()
crates/ty_python_semantic/resources/corpus/match_guard_type_alias_cycle_seed_77.py:16
↓ 10 callersMethodconstraints
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/typevar.rs:379
↓ 10 callersMethodcurrent_statement_parent_id
Return the [`NodeId`] of the current [`Stmt`] parent, if any.
crates/ruff_python_semantic/src/model.rs:1554
↓ 10 callersMethoddebug
Parse all suppressions and errors in a module for testing
crates/ruff_linter/src/suppression.rs:2973
↓ 10 callersMethoddefault_string_flags
Return the default string flags a generated `StringLiteral` node should use, given where we are in the AST.
crates/ruff_linter/src/checkers/ast/mod.rs:397
↓ 10 callersMethoddefining_class
( db: &'db dyn Db, callable_type: Type<'db>, )
crates/ty_python_semantic/src/types/call/bind.rs:10072
↓ 10 callersMethoddid_change_watched_file
Sends a `workspace/didChangeWatchedFiles` notification for one path.
crates/ty_server/tests/e2e/main.rs:955
↓ 10 callersMethoddomain
(self)
crates/ty_python_semantic/src/types/equality/enums.rs:974
↓ 10 callersMethodend
(&self)
crates/ruff_source_file/src/newlines.rs:223
↓ 10 callersMethodentries
Iterates over entries in a system or vendored directory.
crates/ty_module_resolver/src/path.rs:326
↓ 10 callersFunctionexception
()
crates/ruff_linter/resources/test/fixtures/flake8_return/RET504.py:175
↓ 10 callersMethodexpression_value
Return the value expression after peeling off any nested named expressions. For example, this returns the `x` expression for both `x` and `(y := x)`.
crates/ruff_python_ast/src/nodes.rs:104
↓ 10 callersMethodfallback
Returns the descriptor's declared return type and kind despite the invalid call.
crates/ty_python_semantic/src/types.rs:876
↓ 10 callersMethodfile
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/function.rs:339
↓ 10 callersMethodfind_argument
Return the argument with the given name or at the given position, or `None` if no such argument exists. Used to retrieve arguments that can be provide
crates/ruff_python_ast/src/nodes.rs:3789
↓ 10 callersMethodfinite_alternative_union
Return the exact finite alternative union represented by this intersection, if available.
crates/ty_python_semantic/src/types/set_theoretic.rs:1084
↓ 10 callersMethodflags
(self)
crates/ty_python_semantic/src/types/literal.rs:107
↓ 10 callersFunctionfull_range
(input: &str)
crates/ty_server/tests/e2e/code_actions.rs:35
↓ 10 callersFunctionfun
(n)
crates/ty_python_semantic/resources/corpus/55_list_comp_nested.py:1
↓ 10 callersMethodget_message
Returns the message attached to this annotation, if one exists.
crates/ruff_db/src/diagnostic/mod.rs:848
↓ 10 callersFunctiongroup
(content: &impl Format<Context>)
crates/ruff_formatter/src/builders.rs:1407
↓ 10 callersMethodhas
(&self, node: T)
crates/ruff_python_formatter/src/comments/mod.rs:280
↓ 10 callersMethodhas_dataclass_param
Checks if the given dataclass parameter flag is set for this class. This checks both the `dataclass_params` and `transformer_params`.
crates/ty_python_semantic/src/types/class/static_literal.rs:1239
↓ 10 callersMethodhas_trailing_own_line
(&self, node: T)
crates/ruff_python_formatter/src/comments/mod.rs:345
↓ 10 callersFunctionhas_unknown_keywords_or_starred_expr
( arguments: &Arguments, allowed: &[&str], )
crates/ruff_linter/src/rules/flake8_use_pathlib/helpers.rs:198
↓ 10 callersFunctionimport_from
()
crates/ty_python_core/src/lib.rs:1371
↓ 10 callersMethodinference_lower
Returns lower-bound inference evidence without supplying a default for a missing bound.
crates/ty_python_semantic/src/types/constraints.rs:3406
↓ 10 callersMethodinfo
Adds an "info" sub-diagnostic with the given message. If callers want to add an "info" sub-diagnostic with annotations, then create a [`SubDiagnostic
crates/ruff_db/src/diagnostic/mod.rs:174
↓ 10 callersMethodinner_type_or_unknown
(self)
crates/ty_python_semantic/src/types.rs:12193
↓ 10 callersMethodinto_callable_type
Converts the wrapped value into a single callable with its receiver bound and `typing.Self` substituted. Returns `None` if the wrapped value cannot b
crates/ty_python_semantic/src/types/method.rs:302
↓ 10 callersMethodinto_generic_alias
(self)
crates/ty_python_semantic/src/types/class.rs:1215
↓ 10 callersMethodinto_owned
Creates an [`OwnedConstraintSet`], consuming this builder in the process. You provide a callback that constructs a [`ConstraintSet`]. We then package
crates/ty_python_semantic/src/types/constraints.rs:1218
↓ 10 callersMethodinto_suite
Consumes the [`Parsed`] output and returns the module body as a [`Suite`].
crates/ruff_python_parser/src/lib.rs:541
↓ 10 callersFunctionis_abstract
Returns `true` if a function definition is an abstract method based on its decorators.
crates/ruff_python_semantic/src/analyze/visibility.rs:44
↓ 10 callersMethodis_covariant
(self)
crates/ty_python_semantic/src/types/variance.rs:184
↓ 10 callersMethodis_empty
(&self)
crates/ty/src/args.rs:344
↓ 10 callersMethodis_empty
(&self)
crates/ruff_linter/src/settings/types.rs:822
↓ 10 callersFunctionis_human_readable_names_enabled
https://github.com/astral-sh/ruff/pull/25614 TODO(brent) Remove ecosystem selector normalization when stabilizing human-readable rule names: https://g
crates/ruff_linter/src/preview.rs:350
↓ 10 callersMethodis_in_type_checking_block
(&self, scope: ScopeId<'db>, node: impl Ranged)
crates/ty_python_semantic/src/types/infer/builder.rs:965
↓ 10 callersMethodis_paramspec_value
(&self)
crates/ty_python_semantic/src/types/signatures.rs:963
↓ 10 callersMethodis_required
(&self)
crates/ty_python_semantic/src/types/typed_dict.rs:3271
↓ 10 callersMethodis_staticmethod
Returns true if this overload is decorated with `@staticmethod`, or if it is implicitly a staticmethod.
crates/ty_python_semantic/src/types/function.rs:363
↓ 10 callersMethodis_structural
(self)
crates/ty_python_semantic/src/types/match_pattern.rs:38
↓ 10 callersMethodis_subscript_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2577
↓ 10 callersFunctionis_type_checking_block
Return `true` if [`ast::StmtIf`] is a guard for a type-checking block.
crates/ruff_python_semantic/src/analyze/typing.rs:438
↓ 10 callersMethodis_undefined
(&self)
crates/ty_python_semantic/src/place.rs:284
↓ 10 callersMethodis_variadic
Returns `true` if this is a variadic parameter.
crates/ty_python_semantic/src/types/signatures.rs:6272
↓ 10 callersMethoditer_keys
Returns an `Iterator` over the AST nodes representing the dictionary's keys.
crates/ruff_python_ast/src/nodes.rs:253
↓ 10 callersMethoditerate
Returns a tuple spec describing the elements that are produced when iterating over `self`. This method should only be used outside of type checking b
crates/ty_python_semantic/src/types/iteration.rs:214
↓ 10 callersMethodjoin_root_path
(&self, relative: impl AsRef<SystemPath>)
crates/ty/tests/file_watching.rs:384
↓ 10 callersMethodkind
The `kind` of the section, e.g. [`SectionKind::Args`] or [`SectionKind::Returns`].
crates/ruff_linter/src/docstrings/sections.rs:330
↓ 10 callersMethodknown_class
Returns the [`KnownClass`] that this is a nominal instance of, or `None` if it is not an instance of a known class.
crates/ty_python_semantic/src/types/instance.rs:304
↓ 10 callersFunctionleading_indentation
Extract the leading indentation from a line.
crates/ruff_python_trivia/src/whitespace.rs:93
← previousnext →1,501–1,600 of 31,766, ranked by callers