diff --git a/packages/pyright-internal/src/tests/samples/typeNarrowingIsNone1.py b/packages/pyright-internal/src/tests/samples/typeNarrowingIsNone1.py index 87a95cc11c..3ee855ec64 100644 --- a/packages/pyright-internal/src/tests/samples/typeNarrowingIsNone1.py +++ b/packages/pyright-internal/src/tests/samples/typeNarrowingIsNone1.py @@ -77,7 +77,7 @@ def __bool__(self) -> Literal[False]: def func7(x: NoneProto | None): if x is None: - reveal_type(x, expected_text="None") + reveal_type(x, expected_text="Never") # should be None. see https://github.com/DetachHead/basedpyright/issues/459 else: reveal_type(x, expected_text="NoneProto") diff --git a/packages/pyright-internal/src/tests/samples/typeNarrowingIsinstance5.py b/packages/pyright-internal/src/tests/samples/typeNarrowingIsinstance5.py index 4427961938..4a23a069a2 100644 --- a/packages/pyright-internal/src/tests/samples/typeNarrowingIsinstance5.py +++ b/packages/pyright-internal/src/tests/samples/typeNarrowingIsinstance5.py @@ -38,4 +38,4 @@ def func1( if isinstance(obj, Callable): reveal_type(obj, expected_text="((int, str) -> int) | B | TCall1@func1") else: - reveal_type(obj, expected_text="list[int] | C | D | A") + reveal_type(obj, expected_text="list[int] | C | A")