Skip to content

Commit

Permalink
fixes from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored and KotlinIsland committed Jun 20, 2024
1 parent 2b2c664 commit 9eadb5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-data/unit/check-unions.test
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ class B:
field_1: Mapped[int] = Mapped(2)
field_2: Mapped[str] = Mapped('2')

mix: Union[Type[A], Type[B]] = A
mix: Union[Type[A], Type[B]]
reveal_type(mix) # N: Revealed type is "Union[Type[__main__.A], Type[__main__.B]]"
reveal_type(mix.field_1) # N: Revealed type is "builtins.list[builtins.int]"
reveal_type(mix().field_1) # N: Revealed type is "builtins.int"
Expand Down

0 comments on commit 9eadb5a

Please sign in to comment.