ruff/crates/red_knot_python_semantic
Shaygan Hooshyari 269e47be96
Understand type[A | B] special form in annotations (#14830)
resolves https://github.com/astral-sh/ruff/issues/14703

I decided to use recursion to get the type, so if anything is added to
the single element inference it will be applied for the union.
Also added this
[change](https://github.com/astral-sh/ruff/issues/14703#issuecomment-2510286217)
in this PR since it was easy.

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2024-12-07 17:34:50 +00:00
..
resources Understand type[A | B] special form in annotations (#14830) 2024-12-07 17:34:50 +00:00
src Understand type[A | B] special form in annotations (#14830) 2024-12-07 17:34:50 +00:00
tests mdtest: include test name in printed rerun command (#14684) 2024-11-30 11:01:06 +00:00
build.rs Modernize build scripts (#13837) 2024-10-20 22:35:35 +01:00
Cargo.toml [red-knot] Property tests (#14178) 2024-12-03 13:54:54 +01:00