MCPcopy Create free account

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

Functions28,602 in github.com/astral-sh/ruff

↓ 20 callersMethodmatching_overloads
Returns an iterator over all the overloads that matched for this call binding.
crates/ty_python_semantic/src/types/call/bind.rs:4379
↓ 20 callersMethodmember_lookup_with_policy
Similar to [`Type::member`], but allows the caller to specify what policy should be used when looking up attributes. See [`MemberLookupPolicy`] for mo
crates/ty_python_semantic/src/types.rs:4435
↓ 20 callersMethodordered_source_order
Repeating a source-order tree cannot change the first occurrence of any constraint, so combining identical trees must reuse their existing sidecar.
crates/ty_python_semantic/src/types/constraints.rs:1540
↓ 20 callersMethodprefix_elements
(&self)
crates/ty_python_semantic/src/types/tuple.rs:1134
↓ 20 callersMethodpush
Pushes a new [`Binding`] and returns its [`BindingId`].
crates/ruff_python_semantic/src/binding.rs:466
↓ 20 callersMethodpush
(&mut self, bindings: &Bindings)
crates/ty_python_core/src/use_def.rs:476
↓ 20 callersMethodrange
(&self)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:486
↓ 20 callersMethodremove
(self, kind: TokenKind)
crates/ruff_python_parser/src/token_set.rs:24
↓ 20 callersFunctionremove_argument
Generic function to remove arguments or keyword arguments in function calls and class definitions. (For classes, `args` should be considered `bases`.)
crates/ruff_linter/src/fix/edits.rs:208
↓ 20 callersMethodto_notebook_or_file
(&self, db: &dyn Db)
crates/ty_server/src/session.rs:1404
↓ 20 callersMethodtrailing
(&self, node: T)
crates/ruff_python_formatter/src/comments/mod.rs:310
↓ 20 callersMethodtry_upcast_to_callable
( self, db: &'db dyn Db, env: &ProgramEnvironment<'db>, )
crates/ty_python_semantic/src/types/callable.rs:44
↓ 19 callersMethodancestor_ids
Returns an iterator over all [`NodeId`] ancestors, starting from the given [`NodeId`].
crates/ruff_python_semantic/src/nodes.rs:63
↓ 19 callersMethodapply_specialization
( self, db: &'db dyn Db, f: impl FnOnce(GenericContext<'db>) -> Specialization<'db>,
crates/ty_python_semantic/src/types/class/static_literal.rs:545
↓ 19 callersMethodas_function
(&self)
crates/ty_python_core/src/scope.rs:427
↓ 19 callersMethodas_str
(&self)
crates/ruff_db/src/diagnostic/mod.rs:955
↓ 19 callersMethodas_str
(self)
crates/ruff_linter/src/rules/pyupgrade/rules/pep695/private_type_parameter.rs:81
↓ 19 callersMethodbuild
(self)
crates/ty_python_semantic/src/db.rs:255
↓ 19 callersMethodbump
Consumes the next character
crates/ruff_python_trivia/src/cursor.rs:82
↓ 19 callersMethodclose
Closes the virtual file.
crates/ruff_db/src/files.rs:629
↓ 19 callersMethodconstraint_data
(&self, constraint: ConstraintId)
crates/ty_python_semantic/src/types/constraints.rs:1426
↓ 19 callersFunctioncreate_dir
Helper function to create a directory and all parent directories
crates/ruff_linter/src/rules/isort/categorize.rs:448
↓ 19 callersMethodcurrent_statements
Returns an [`Iterator`] over the current statement hierarchy, from the current [`Stmt`] through to any parents.
crates/ruff_python_semantic/src/model.rs:1466
↓ 19 callersMethoddefinition
(&self, id: ScopedDefinitionId)
crates/ty_python_core/src/use_def.rs:953
↓ 19 callersMethodeat_char
(&mut self, c: char)
crates/ruff_python_trivia/src/cursor.rs:91
↓ 19 callersMethodend_of_scope_symbol_bindings
( &self, symbol: ScopedSymbolId, )
crates/ty_python_core/src/use_def.rs:985
↓ 19 callersMethodfile_name
(&self)
crates/ty_project/src/watch.rs:73
↓ 19 callersMethodfinish
(self)
crates/ruff_python_formatter/src/comments/visitor.rs:613
↓ 19 callersMethodfollowing_node
Returns the node following the comment. The direct child node (ignoring lists) of the [`enclosing_node`](DecoratedComment::enclosing_node) that follo
crates/ruff_python_formatter/src/comments/visitor.rs:313
↓ 19 callersFunctionindentation_at_offset
Extract the leading indentation from a line.
crates/ruff_python_trivia/src/whitespace.rs:49
↓ 19 callersMethodinterior_node_data
(&self, node: NodeId)
crates/ty_python_semantic/src/types/constraints.rs:1514
↓ 19 callersMethodis_always_false
(self)
crates/ty_python_core/src/lib.rs:949
↓ 19 callersMethodis_ascii
Returns `true` if the text only consists of ASCII characters
crates/ruff_source_file/src/line_index.rs:227
↓ 19 callersMethodis_empty
(&self)
crates/ruff_annotate_snippets/src/snippet.rs:95
↓ 19 callersMethodis_empty
(&self, snapshot: &ScratchSnapshot)
crates/ruff_python_parser/src/parser/scratch_buffer.rs:29
↓ 19 callersFunctionis_identifier
Returns `true` if a string is a valid Python identifier (e.g., variable name).
crates/ruff_python_stdlib/src/identifiers.rs:7
↓ 19 callersMethodis_keyword_variadic
Returns `true` if this is a keyword-variadic parameter.
crates/ty_python_semantic/src/types/signatures.rs:5514
↓ 19 callersMethodis_language_services_disabled
(&self)
crates/ty_server/src/session/settings.rs:43
↓ 19 callersFunctionis_overload
Returns `true` if a function definition is an `@overload`.
crates/ruff_python_semantic/src/analyze/visibility.rs:30
↓ 19 callersMethodis_string_literal_expr
(&self)
crates/ruff_python_ast/src/generated.rs:2318
↓ 19 callersMethodload
Loads a reference to the parsed module. Note that holding on to the reference will prevent garbage collection of the AST. This method will reparse th
crates/ruff_db/src/parsed.rs:133
↓ 19 callersMethodmatches
Returns `true` if the given name matches any of the ignored patterns.
crates/ruff_linter/src/rules/pep8_naming/settings.rs:140
↓ 19 callersMethodnext
(&mut self)
crates/ruff_db/src/system/path.rs:979
↓ 19 callersMethodparse
Parses the content and returns its AST
crates/ruff_wasm/src/lib.rs:506
↓ 19 callersFunctionparse_suite
(source: &str)
crates/ruff_linter/src/rules/pylint/helpers.rs:402
↓ 19 callersMethodpop
(&mut self)
crates/ty_python_semantic/src/types/constraints.rs:7764
↓ 19 callersFunctionpredicate
(index: usize)
crates/ty_python_core/src/narrowing_constraints.rs:411
↓ 19 callersMethodprimary
Add a primary annotation with a message. If the message is empty, then an annotation without any message be created. See the docs on `TestEnvironmen
crates/ruff_db/src/diagnostic/render.rs:2750
↓ 19 callersFunctionprocess
(__debug__)
crates/ruff_linter/resources/test/fixtures/semantic_errors/write_to_debug.py:3
↓ 19 callersMethodprogram_file
(self, db: &'db dyn Db, file: File)
crates/ty_python_core/src/program.rs:48
↓ 19 callersMethodqualified_name
Returns the [`QualifiedName`] of the imported name (e.g., given `from foo import bar as baz`, returns `["foo", "bar"]`).
crates/ruff_python_semantic/src/imports.rs:60
↓ 19 callersMethodrange
Returns the [`TextRange`] for the diagnostic.
crates/ruff_db/src/diagnostic/mod.rs:519
↓ 19 callersFunctionrender_docstring
(raw: &str)
crates/ty_ide/src/docstring/markdown/structured/rst.rs:834
↓ 19 callersMethodreport_diagnostic
( &self, context: &CallDiagnosticContext<'_, '_, 'db, '_>, node: ast::AnyNodeRef,
crates/ty_python_semantic/src/types/call/bind.rs:8261
↓ 19 callersMethodseen_typing
(&self)
crates/ruff_python_semantic/src/model.rs:1716
↓ 19 callersMethodsource
(&self)
crates/ruff_linter/src/rules/pep8_naming/settings.rs:63
↓ 19 callersMethodstmt
Generate source code from a [`Stmt`].
crates/ruff_python_codegen/src/generator.rs:140
↓ 19 callersMethodsuffix_elements
(&self)
crates/ty_python_semantic/src/types/tuple.rs:1149
↓ 19 callersMethodtokens
Returns all the tokens for the parsed output.
crates/ruff_python_parser/src/lib.rs:401
↓ 19 callersFunctiontrailing
()
crates/ruff_python_formatter/src/comments/map.rs:643
↓ 19 callersMethodtry_call
Calls `self`. Returns a [`CallError`] if `self` is (always or possibly) not callable, or if the arguments are not compatible with the formal parameter
crates/ty_python_semantic/src/types.rs:6407
↓ 19 callersMethodtry_call_dunder
Look up a dunder method on the meta-type of `self` and call it. Returns an `Err` if the dunder method can't be called, or the given arguments are not
crates/ty_python_semantic/src/types.rs:6430
↓ 19 callersMethodvendored
(&self)
crates/ty_module_resolver/src/resolve.rs:1819
↓ 19 callersFunctionwalk_stmt
(visitor: &mut V, stmt: &'a Stmt)
crates/ruff_python_ast/src/visitor.rs:135
↓ 19 callersMethodworkspace_settings
Returns the client settings for the workspace that this document belongs to.
crates/ty_server/src/session.rs:1391
↓ 18 callersMethodappend
(self)
crates/ruff_python_formatter/resources/test/fixtures/black/cases/preview_long_strings__regression.py:109
↓ 18 callersMethodas_str
(self)
crates/ty_module_resolver/src/module.rs:410
↓ 18 callersMethodbinding_id
Returns the [`BindingId`] if this symbol resolves to a concrete binding.
crates/ruff_python_semantic/src/model.rs:44
↓ 18 callersMethodbytes
Returns an iterator over the bytes of the concatenated bytestring.
crates/ruff_python_ast/src/nodes.rs:1886
↓ 18 callersMethodcollect_publish_diagnostic_notifications
( &mut self, count: usize, )
crates/ty_server/tests/e2e/main.rs:555
↓ 18 callersMethodcontents
Return the underlying source code.
crates/ruff_linter/src/locator.rs:106
↓ 18 callersMethodenter_node
(&mut self, node: T)
crates/ruff_python_ast_integration_tests/tests/visitor.rs:205
↓ 18 callersMethodexit_node
(&mut self)
crates/ruff_python_ast_integration_tests/tests/visitor.rs:213
↓ 18 callersMethodexplicit_extra_items
Returns extra items only when they were explicitly declared. An implicitly open `TypedDict` returns `None` here because its hidden items are not dire
crates/ty_python_semantic/src/types/typed_dict.rs:95
↓ 18 callersMethodfile
(&self)
crates/ty_python_semantic/src/lint.rs:138
↓ 18 callersFunctionfile_to_module
( db: &'db dyn Db, resolver_file: ResolverFile<'db>, )
crates/ty_module_resolver/src/resolve.rs:330
↓ 18 callersMethodfiles
Returns the files belonging to this project.
crates/ty_project/src/lib.rs:606
↓ 18 callersMethodfinish
(&mut self)
crates/ruff_db/src/display.rs:38
↓ 18 callersMethodfinish
(self)
crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs:915
↓ 18 callersMethodfocus_range
Returns the [`FileRange`] of the function's name.
crates/ty_python_semantic/src/types/function.rs:426
↓ 18 callersMethodhas_leading
(&self, node: T)
crates/ruff_python_formatter/src/comments/mod.rs:272
↓ 18 callersMethodinference_flags
(&self)
crates/ty_python_semantic/src/types/infer/builder.rs:11520
↓ 18 callersMethodinsert
(mut self, insert: impl Into<CompactString>)
crates/ty_ide/src/completion.rs:587
↓ 18 callersMethodinto_iter
(self)
crates/ty_site_packages/src/lib.rs:255
↓ 18 callersMethodis_file
(self)
crates/ruff_db/src/system.rs:320
↓ 18 callersMethodis_ipynb
(self)
crates/ruff_python_ast/src/lib.rs:153
↓ 18 callersMethodis_same_typevar_as
Returns whether two bound typevars represent the same occurrence, regardless of e.g. differences in their bounds or constraints due to materialization
crates/ty_python_semantic/src/types/typevar.rs:1106
↓ 18 callersMethodis_triple_quoted
Returns `true` if the current f-string is a triple-quoted f-string.
crates/ruff_python_parser/src/lexer/interpolated_string.rs:75
↓ 18 callersMethoditer_all_elements
(&self)
crates/ty_python_semantic/src/types/tuple.rs:866
↓ 18 callersMethodlen
(&self)
crates/ruff_db/src/parsed.rs:489
↓ 18 callersMethodline
Set the default line number to display
crates/ruff_annotate_snippets/src/snippet.rs:558
↓ 18 callersMethodname
(self, db: &'db dyn Db, module: &'ast ParsedModuleRef)
crates/ty_python_core/src/scope.rs:71
↓ 18 callersMethodor
(self, other: Self)
crates/ty_python_core/src/lib.rs:976
↓ 18 callersMethodp
(&mut self, s: &str)
crates/ruff_python_codegen/src/generator.rs:171
↓ 18 callersMethodparamspec_attr
(self, db: &'db dyn Db)
crates/ty_python_semantic/src/types/typevar.rs:985
↓ 18 callersMethodreturn_type
(&self, db: &'db dyn Db, env: &ProgramEnvironment<'db>)
crates/ty_python_semantic/src/types/call.rs:314
↓ 18 callersMethodreturn_type
Compute the overall effective return type of this `ConstructorBinding`.
crates/ty_python_semantic/src/types/call/bind/constructor.rs:311
↓ 18 callersMethodscope_id
The scope in which the reference is defined.
crates/ruff_python_semantic/src/reference.rs:36
↓ 18 callersMethodspecialization
(&self)
crates/ty_python_semantic/src/types/call/bind.rs:5577
↓ 18 callersMethodsystem
(&self)
crates/ruff_db/src/system/test.rs:91
← previousnext →701–800 of 28,602, ranked by callers