Python - How to import 'Collection' -- typing

Import Collection

To import Collection, Add the following line to the top of your code.

from typing import Collection

 

For more information about Collection:
Python Collection