Skip to content

Commit

Permalink
Update get-args test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordandev678 committed Sep 19, 2024
1 parent a01d55d commit be9c278
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-data/unit/check-get-args.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ intandunionliterals: Union[Literal["a"], Literal["bc"], int] = "a"
inttype: int = 1
reveal_type(get_args(literals)) # N: Revealed type is "Tuple[Union[Literal['a'], Literal['bc']], Union[Literal['a'], Literal['bc']]]"
reveal_type(get_args(unionliterals)) # N: Revealed type is "Tuple[Union[Literal['a'], Literal['bc']], Union[Literal['a'], Literal['bc']]]"
reveal_type(get_args(intandliterals)) # N: Revealed type is "Tuple[Any]"
reveal_type(get_args(intandunionliterals)) # N: Revealed type is "Tuple[Any]"
reveal_type(get_args(inttype)) # N: Revealed type is "Tuple[Any]"
reveal_type(get_args(intandliterals)) # N: Revealed type is "Union[Literal['a'], Literal['bc'], builtins.int]"
reveal_type(get_args(intandunionliterals)) # N: Revealed type is "Union[Literal['a'], Literal['bc'], builtins.int]"
reveal_type(get_args(inttype)) # N: Revealed type is "builtins.int"
[builtins fixtures/primitives.pyi]
[typing fixtures/typing-full.pyi]

Expand Down

0 comments on commit be9c278

Please sign in to comment.