Created
April 25, 2024 08:34
-
-
Save mypy-play/ed8ca956ba5b7ac4de81bc7df03aee93 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typing | |
SingleItem = typing.Tuple[int] | |
MultipleItems = typing.Tuple[int, ...] | |
def test(a: SingleItem, b: MultipleItems) -> None: | |
return | |
test((1,), (1, 2)) | |
test((1, 2), (1,2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment