ruff/crates/red_knot_python_semantic/src
Shaygan Hooshyari aecdb8c144
[red-knot] support `typing.Union` in type annotations (#14499)
Fix #14498

## Summary

This PR adds `typing.Union` support

## Test Plan

I created new tests in mdtest.

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2024-11-20 21:55:33 +00:00
..
module_resolver Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
semantic_index [red-knot] Simplify some traits in `ast_ids.rs` (#14379) 2024-11-16 17:22:23 +00:00
types [red-knot] support `typing.Union` in type annotations (#14499) 2024-11-20 21:55:33 +00:00
util [red-knot] Improve ergonomics for the `PySlice` trait (#13983) 2024-10-29 20:40:59 +00:00
ast_node_ref.rs Enable nursery rules: 'redundant_clone', 'debug_assert_with_mut_call', and 'unused_peekable' (#13920) 2024-10-25 09:46:30 +02:00
db.rs Rename the `ruff_vendored` crate to `red_knot_vendored` (#13586) 2024-10-01 16:16:59 +01:00
lib.rs Cached inference of all definitions in an unpacking (#13979) 2024-11-04 17:11:57 +05:30
module_name.rs [red-knot] Add support for relative imports (#12910) 2024-08-16 12:35:27 +01:00
node_key.rs [red-knot] Use memory address as AST node key (#14317) 2024-11-13 14:35:54 +01:00
program.rs Workspace discovery (#14308) 2024-11-15 19:20:15 +01:00
python_version.rs [red-knot] Default to python 3.9 (#14429) 2024-11-18 11:27:40 +00:00
semantic_index.rs fix double inference of standalone expressions (#14107) 2024-11-05 15:50:31 +01:00
semantic_model.rs [red-knot] Simplify some traits in `ast_ids.rs` (#14379) 2024-11-16 17:22:23 +00:00
site_packages.rs Workspace discovery (#14308) 2024-11-15 19:20:15 +01:00
stdlib.rs [red-knot] Infer `Literal` types from comparisons with `sys.version_info` (#14244) 2024-11-11 13:58:16 +00:00
symbol.rs [red-knot] Symbol API improvements, part 2 (#14276) 2024-11-11 15:24:27 +01:00
types.rs [red-knot] support `typing.Union` in type annotations (#14499) 2024-11-20 21:55:33 +00:00
unpack.rs Remove AST-node dependency from `FunctionType` and `ClassType` (#14087) 2024-11-05 08:02:38 +00:00