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
Function
import_partially_exists_single
()
crates/ty_ide/src/importer.rs:168
Function
import_results_in_conflict
()
crates/ty_ide/src/importer.rs:662
Function
import_star_exported
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3427
Function
import_star_not_exported
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3446
Function
import_statement_completes_split_namespace_children
()
crates/ty_ide/src/completion.rs:10666
Function
import_statement_preserves_name_order_for_unrelated_third_party_module
()
crates/ty_ide/src/completion.rs:7026
Function
import_statement_with_submodule_multiple
()
crates/ty_ide/src/completion.rs:7066
Function
import_statement_with_submodule_with_leading_character
()
crates/ty_ide/src/completion.rs:7056
Function
import_statement_with_submodule_without_leading_character
()
crates/ty_ide/src/completion.rs:7076
Method
import_stmt
(self)
crates/ruff_python_ast/src/generated.rs:967
Function
import_sub
()
crates/ty_python_core/src/lib.rs:1355
Function
import_submodule_not_attribute1
()
crates/ty_ide/src/completion.rs:6890
Function
import_submodule_not_attribute2
()
crates/ty_ide/src/completion.rs:6901
Function
import_submodule_not_attribute3
()
crates/ty_ide/src/completion.rs:6912
Function
import_trio
()
crates/ruff_linter/resources/test/fixtures/flake8_async/ASYNC116.py:7
Function
import_type_check_only_lowers_ranking
()
crates/ty_ide/src/completion.rs:7133
Function
import_unknown_in_module
()
crates/ty_ide/src/completion.rs:6996
Function
import_used_in_method_definition
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3178
Function
import_via_from_with_leading_character
()
crates/ty_ide/src/completion.rs:7006
Function
import_via_from_with_submodule_with_leading_character
()
crates/ty_ide/src/completion.rs:7086
Function
import_via_from_with_submodule_without_leading_character
()
crates/ty_ide/src/completion.rs:7096
Function
import_via_from_without_leading_character
()
crates/ty_ide/src/completion.rs:7016
Function
import_with_aliases
()
crates/ty_ide/src/completion.rs:6974
Function
import_with_leading_character
()
crates/ty_ide/src/completion.rs:6924
Function
import_without_leading_character
()
crates/ty_ide/src/completion.rs:6934
Function
imported_final_candidates_are_separate_from_declarations
()
crates/ty_python_core/src/lib.rs:1392
Function
imported_first_party_definition
()
crates/ty_ide/src/rename.rs:1445
Function
imported_from_no_parentheses
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:35
Function
imported_from_parentheses_no_params
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:40
Function
imported_from_parentheses_no_params_multiline
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:52
Function
imported_from_parentheses_with_params
()
crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT001.py:45
Function
imported_in_class
()
crates/ruff_linter/src/rules/pyflakes/mod.rs:3164
Function
imported_qualifier_merge_preserves_alternative_declaration
()
crates/ty_python_core/src/use_def/place_state.rs:1106
Function
imported_qualifier_preserves_existing_declaration
()
crates/ty_python_core/src/use_def/place_state.rs:1080
Function
imported_script_environment
()
crates/ty/tests/cli/scripts.rs:1871
Function
imported_type_aliases_classified_consistently
()
crates/ty_ide/src/semantic_tokens.rs:3223
Function
imports1
()
crates/ty_ide/src/completion.rs:3635
Function
imports2
()
crates/ty_ide/src/completion.rs:3648
Method
in_annotated_type_alias_value
Return `true` if the context is in the r.h.s. of a [PEP 613] type alias. [PEP 613]: https://peps.python.org/pep-0613/
crates/ruff_python_semantic/src/reference.rs:99
Method
in_assert_statement
Return `true` if this [`Binding`] took place inside an `assert` statement, e.g. `y` in: ```python assert (y := x**2), y ```
crates/ruff_python_semantic/src/binding.rs:148
Method
in_assert_statement
Return `true` if the context is inside an `assert` statement
crates/ruff_python_semantic/src/reference.rs:105
Method
in_async_context
Return `true` if the model is in an async context.
crates/ruff_python_semantic/src/model.rs:1814
Method
in_async_context
(&self)
crates/ty_python_core/src/builder.rs:5904
Method
in_await_allowed_context
(&self)
crates/ty_python_core/src/builder.rs:5921
Method
in_await_allowed_context
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:923
Method
in_class_body_comprehension
(&self)
crates/ty_python_core/src/builder.rs:5978
Method
in_class_body_comprehension
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:968
Function
in_doctest
Do cool stuff. <RANGE_START> >>> cool_stuff( x ) >>> cool_stuff( y ) 2<RANGE_END>
crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/docstring_code_examples.py:22
Method
in_dunder_all_definition
Return `true` if the context is in the r.h.s. of an `__all__` definition.
crates/ruff_python_semantic/src/reference.rs:91
Method
in_exception_handler
Return `true` if this [`Binding`] took place inside an exception handler, e.g. `y` in: ```python try: x = 42 except RuntimeError: y = 42 ```
crates/ruff_python_semantic/src/binding.rs:139
Function
in_fact_all_calls_are_wrong
(value=time.time())
crates/ruff_linter/resources/test/fixtures/flake8_bugbear/B006_B008.py:126
Method
in_function_scope
(&self)
crates/ty_python_core/src/builder.rs:5997
Method
in_function_scope
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:987
Method
in_generator_context
(&self)
crates/ty_python_core/src/builder.rs:6002
Method
in_generator_context
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:996
Function
in_ipython_notebook
()
crates/ruff_linter/resources/test/fixtures/pyflakes/F821_0.py:128
Method
in_loop_context
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:1011
Method
in_module_scope
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:983
Method
in_notebook
(&self)
crates/ty_python_core/src/builder.rs:6012
Method
in_notebook
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:992
Method
in_runtime_ambiguous_annotation
Return `true` if the context is in a runtime-ambiguous type annotation.
crates/ruff_python_semantic/src/reference.rs:68
Method
in_runtime_evaluated_annotation
Return `true` if the context is in a runtime-required type annotation.
crates/ruff_python_semantic/src/reference.rs:62
Function
in_scope_ordering_within_function
()
crates/ty_ide/src/importer.rs:521
Method
in_segment
( segment_len: usize, start: Option<usize>, stop: Option<usize>, step: NonZero
crates/ty_python_semantic/src/types/tuple.rs:1364
Method
in_simple_string_type_definition
Return `true` if the model is visiting a "simple string type definition" that was previously deferred when initially traversing the AST
crates/ruff_python_semantic/src/model.rs:2132
Method
in_string_type_definition
Return `true` if the context is in a string type definition.
crates/ruff_python_semantic/src/reference.rs:74
Method
in_suppression
(comments: &'a [SourceComment], source: &'a str)
crates/ruff_python_formatter/src/verbatim.rs:551
Method
in_sync_comprehension
(&self)
crates/ty_python_core/src/builder.rs:5953
Method
in_sync_comprehension
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:952
Method
in_type_checking_block
Return `true` if the context is in a type-checking block.
crates/ruff_python_semantic/src/reference.rs:85
Function
in_type_def
()
crates/ruff_linter/resources/test/fixtures/ruff/RUF027_0.py:78
Method
in_type_definition
Return `true` if the context is in any kind of type definition.
crates/ruff_python_semantic/src/reference.rs:80
Method
in_typing_only_annotation
Return `true` if the context is in a typing-only type annotation.
crates/ruff_python_semantic/src/reference.rs:56
Method
in_yield_allowed_context
(&self)
crates/ty_python_core/src/builder.rs:5941
Method
in_yield_allowed_context
(&self)
crates/ruff_linter/src/checkers/ast/mod.rs:941
Function
included_documentation_preserves_indentation
()
crates/ty_python_semantic/src/lint.rs:317
Method
includes
Returns `true` if a parameter with the given name is included in this [`Parameters`].
crates/ruff_python_ast/src/nodes.rs:3378
Function
includes_matching_version_pypy_without_wrong_version_cpython_when_unknown
()
crates/ty_site_packages/src/lib.rs:3910
Method
incoming_calls
(&self)
crates/ty_ide/src/call_hierarchy/incoming_calls.rs:520
Function
incoming_calls_multi_file
()
crates/ty_server/tests/e2e/call_hierarchy.rs:173
Function
incomplete_except_handler_uses_enclosing_scope
()
crates/ty_ide/src/completion.rs:6460
Function
incomplete_inference_preserves_complete_siblings
()
crates/ty_python_semantic/src/types/generics.rs:5199
Function
incomplete_solution_discards_the_projection
()
crates/ty_python_semantic/src/types/constraints/projection/tests.rs:775
Function
inconsistent_indent_byte_size
There's a non-breaking space (2-bytes) after 3 spaces (https://github.com/astral-sh/ruff/issues/9080). Returns:
crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py:720
Function
incorrect_ArithmeticError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:40
Function
incorrect_AssertionError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:47
Function
incorrect_AttributeError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:54
Function
incorrect_BufferError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:61
Function
incorrect_EOFError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:68
Function
incorrect_ImportError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:75
Function
incorrect_LookupError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:82
Function
incorrect_MemoryError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:89
Function
incorrect_NameError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:100
Function
incorrect_ReferenceError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:107
Function
incorrect_RuntimeError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:114
Function
incorrect_SyntaxError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:121
Function
incorrect_SystemError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:128
Function
incorrect_ValueError
(some_arg)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:135
Function
incorrect_and_operator_callable
(arg1, arg2)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:177
Function
incorrect_and_operator_isinstance
(arg1, arg2)
crates/ruff_linter/resources/test/fixtures/tryceratops/TRY004.py:149
← previous
next →
22,701–22,800 of 31,562, ranked by callers