So I decided I wanted to make my own custom event system thing and it all works except that on line 2 python is like:
Traceback (most recent call last):
File "d:\CollidaCube\VSCode\GameAPY\event.py", line 1, in <module>
class EventListener():
File "d:\CollidaCube\VSCode\GameAPY\event.py", line 2, in EventListener
def __init__(self, func: function):
NameError: name 'function' is not defined
why is this and how can i fix it? my code