Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created April 25, 2024 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mypy-play/ed8ca956ba5b7ac4de81bc7df03aee93 to your computer and use it in GitHub Desktop.
Save mypy-play/ed8ca956ba5b7ac4de81bc7df03aee93 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
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