Can we type hint an enumerable using just square brackets like the following:
def test_dict_to_str(test_dict_lst: [dict]) -> [str]:
The intellisense seems to be ok with this but not sure if this is expected. Can't find any mention of it in pep-8 docs. All I see is usage of list with square brackets
def test_dict_to_str(test_dict_lst: list[dict]) -> list[str]: