Skip to content

Commit fc81928

Browse files
committed
change order of experiments
1 parent eb8982f commit fc81928

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

15-more-types/petbox/petbox_demo.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@
2626

2727
out_box_si: OutBox[Siamese] = OutBox(Siamese())
2828

29+
out_box = out_box_si
30+
2931
## Incompatible types in assignment
3032
## expression has type "OutBox[Cat]"
31-
# variable has type "OutBox[Siamese]"
33+
## variable has type "OutBox[Siamese]"
3234
# out_box_si = out_box
3335

34-
out_box = out_box_si
35-
3636
################### Contravariance
3737

3838
in_box: InBox[Cat] = InBox()
3939

4040
in_box_si: InBox[Siamese] = InBox()
4141

42-
in_box_si = in_box
43-
4442
## Incompatible types in assignment
4543
## expression has type "InBox[Siamese]"
4644
## variable has type "InBox[Cat]"
4745
# in_box = in_box_si
46+
47+
in_box_si = in_box

0 commit comments

Comments
 (0)