Skip to content

Commit

Permalink
Update case for types directly in get_args call
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordandev678 committed Sep 19, 2024
1 parent be9c278 commit 2ed83ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-data/unit/check-get-args.test
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ normalImplicit = Literal["a", "bc"]
normalExplicit: TypeAlias = Literal["a", "bc"]
reveal_type(get_args(normalImplicit)) # N: Revealed type is "Tuple[Union[Literal['a'], Literal['bc']], Union[Literal['a'], Literal['bc']]]"
reveal_type(get_args(normalExplicit)) # N: Revealed type is "Tuple[Union[Literal['a'], Literal['bc']], Union[Literal['a'], Literal['bc']]]"
#reveal_type(get_args(Literal["a", "bc"]))
reveal_type(get_args(Literal["a", "bc"])) # N: Revealed type is "typing._SpecialForm"
[builtins fixtures/primitives.pyi]
[typing fixtures/typing-full.pyi]

Expand Down

0 comments on commit 2ed83ed

Please sign in to comment.