Skip to content

Instantly share code, notes, and snippets.

@ahmedbesbes
Created October 2, 2022 20:07
Show Gist options
  • Save ahmedbesbes/d492a66ef9aaa38f17f4e80ee20aa5b2 to your computer and use it in GitHub Desktop.
Save ahmedbesbes/d492a66ef9aaa38f17f4e80ee20aa5b2 to your computer and use it in GitHub Desktop.
from typing import Tuple
# Fails the type check ❌
t: Tuple[int] = [1, 2, 3]
# Ok ✅
t: Tuple[int, int, int] = [1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment