ruff/crates
Chris Krycho f8656ff35e
[red-knot] infer basic (name-based) annotation expressions (#13130)
## Summary

- Introduce methods for inferring annotation and type expressions.
- Correctly infer explicit return types from functions where they are
simple names that can be resolved in scope.

Contributes to #12701 by way of helping unlock call expressions (this
does not remotely finish that, as it stands, but it gets us moving that
direction).

## Test Plan

Added a test for function return types which use the name form of an
annotation expression, since this is aiming toward call expressions.
When we extend this to working for other annotation and type expression
positions, we should add explicit tests for those as well.

---------

Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
Co-authored-by: Carl Meyer <carl@astral.sh>
2024-08-30 08:24:36 -07:00
..
red_knot [red-knot] Add docs on using RAYON_NUM_THREADS for better logging (#13140) 2024-08-28 17:14:56 +01:00
red_knot_python_semantic [red-knot] infer basic (name-based) annotation expressions (#13130) 2024-08-30 08:24:36 -07:00
red_knot_server [red-knot] Support untitled files in the server (#13044) 2024-08-23 12:47:35 +05:30
red_knot_wasm [red-knot] Improve the accuracy of the unresolved-import check (#13055) 2024-08-27 14:17:22 +01:00
red_knot_workspace Basic concurrent checking (#13049) 2024-08-24 09:53:27 +01:00
ruff Bump version to 0.6.3 (#13152) 2024-08-29 20:29:33 +05:30
ruff_benchmark [red-knot] Improve the accuracy of the unresolved-import check (#13055) 2024-08-27 14:17:22 +01:00
ruff_cache Fix cache key collisions for paths with separators (#12159) 2024-07-03 07:36:46 -05:00
ruff_db [red-knot] support deferred evaluation of type expressions (#13131) 2024-08-28 11:41:01 -07:00
ruff_dev Drop deprecated nursery rule group (#10172) 2024-06-27 13:44:11 +02:00
ruff_diagnostics [Minor typo] Fix article in "an fix" (#12797) 2024-08-10 21:22:00 -04:00
ruff_formatter Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_index [red-knot] small efficiency improvements and bugfixes to use-def map building (#12373) 2024-07-18 09:24:58 -07:00
ruff_linter [flake8-pyi] Respect pep8_naming.classmethod-decorators settings when determining if a method is a classmethod in custom-type-var-return-type (PYI019) (#13162) 2024-08-30 14:24:01 +01:00
ruff_macros Drop deprecated nursery rule group (#10172) 2024-06-27 13:44:11 +02:00
ruff_notebook Fallback to kernelspec to check if it's a Python notebook (#12875) 2024-08-14 12:36:09 +05:30
ruff_python_ast Added bytes type and some inference (#13061) 2024-08-22 13:27:15 -07:00
ruff_python_ast_integration_tests
ruff_python_codegen Implement iter(), len() and is_empty() for all display-literal AST nodes (#12807) 2024-08-12 10:39:28 +00:00
ruff_python_formatter Implement iter(), len() and is_empty() for all display-literal AST nodes (#12807) 2024-08-12 10:39:28 +00:00
ruff_python_index Enable token-based rules on source with syntax errors (#11950) 2024-07-02 08:57:46 +00:00
ruff_python_literal
ruff_python_parser Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_python_resolver
ruff_python_semantic Fix some typos in comments (#13157) 2024-08-30 10:42:23 +00:00
ruff_python_stdlib Add time, tzinfo, and timezone as immutable function calls (#13109) 2024-08-27 15:51:32 +01:00
ruff_python_trivia Stabilize fixes for RET50{5-8} (#12840) 2024-08-14 18:15:45 +02:00
ruff_python_trivia_integration_tests
ruff_server Show full error context in server messages (#13029) 2024-08-21 15:36:16 +05:30
ruff_source_file Add API to emit type-checking diagnostics (#12988) 2024-08-20 07:22:30 +00:00
ruff_text_size
ruff_wasm Bump version to 0.6.3 (#13152) 2024-08-29 20:29:33 +05:30
ruff_workspace Add note about how Ruff handles PYI files wrt target version (#13111) 2024-08-27 17:28:22 +00:00