Skip to content

Instantly share code, notes, and snippets.

@ahmedbesbes
Created October 2, 2022 20:04
Show Gist options
  • Save ahmedbesbes/27baac9ad23775b5fea80ecfd53d93ce to your computer and use it in GitHub Desktop.
Save ahmedbesbes/27baac9ad23775b5fea80ecfd53d93ce to your computer and use it in GitHub Desktop.
from typing import List
NestedList = List[List[str]]
my_list: NestedList = [["tomato", "carrot"], ["melon", "apples"]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment