Skip to content

Commit aa219cf

Browse files
committed
Restore error back
1 parent 274789c commit aa219cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-data/unit/check-typeguard.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,7 @@ def process_model(model: Union[MODEL_A, MODEL_B]) -> int:
829829

830830
def handle(model: Model) -> int:
831831
if is_model_a(model) or is_model_b(model):
832-
return process_model(model)
832+
# TODO: should start passing after #18896
833+
return process_model(model) # E: Argument 1 to "process_model" has incompatible type "Model"; expected "Union[Literal[Model.MODEL_A1, Model.MODEL_A2], Literal[Model.MODEL_B]]"
833834
return 0
834835
[builtins fixtures/tuple.pyi]

0 commit comments

Comments
 (0)