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)]))