'Type Hinting List of Strings

In python, if I am writing a function, is this the best way to type hint a list of strings:

def sample_def(var:list[str]):



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source