From 2e51252ad8fe91c7c38e01cf1b5bd9308d90cd41 Mon Sep 17 00:00:00 2001 From: Glyphack Date: Tue, 7 Nov 2023 22:50:12 +0100 Subject: [PATCH] Add test for illegal literal parameter --- pyanalyze/test_annotations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyanalyze/test_annotations.py b/pyanalyze/test_annotations.py index 657e4ecf..7c1b4787 100644 --- a/pyanalyze/test_annotations.py +++ b/pyanalyze/test_annotations.py @@ -127,7 +127,7 @@ def capybara(x: X, y: Y) -> None: def test_literal(self): from typing_extensions import Literal - def capybara(x: Literal[True], y: Literal[True, False]) -> None: + def capybara(x: Literal[True], y: Literal[(True, False)]) -> None: assert_is_value(x, KnownValue(True)) assert_is_value(y, MultiValuedValue([KnownValue(True), KnownValue(False)]))