From b7652708ec81a9c001c17a9046bacf0fcde9aacc Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 1 May 2026 14:37:46 +0200 Subject: [PATCH] Add more tests about newstyle unions --- test/completion/pep0484_basic.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/completion/pep0484_basic.py b/test/completion/pep0484_basic.py index db2af0a8..db7f45e5 100644 --- a/test/completion/pep0484_basic.py +++ b/test/completion/pep0484_basic.py @@ -217,3 +217,11 @@ b x[0] #? str() x[1] + +def check_newstyle_unions(u1: int | str, u2: list[int] | list[str]): + #? int() str() + u1 + #? list() + u2 + #? int() str() + u2[1]