From 965c65147f6b6fc3a7411fc2ca0161aed61515d7 Mon Sep 17 00:00:00 2001 From: AURUMVORXX Date: Mon, 4 Nov 2024 14:57:21 +0300 Subject: [PATCH] fix: Fix for undefined `function` name --- g2o/events.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/g2o/events.py b/g2o/events.py index fb025c7..5c961aa 100644 --- a/g2o/events.py +++ b/g2o/events.py @@ -88,19 +88,19 @@ def event(name : str, priority : int = 9999): return func return inlineEvt -def removeEventHandler(name : str, func : function): +def removeEventHandler(name : str, func : object): """ This function will unbind function from specified event. Original: [removeEventHandler](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/shared-functions/event/removeEventHandler/) ## Declaration ```python - def removeEventHandler(name : str, func : function) + def removeEventHandler(name : str, func : object) ``` ## Parameters * `str` **name**: the name of the event - * `function` **func**: the reference to a function which is currently bound to specified event. + * `object` **func**: the reference to a function which is currently bound to specified event. ## Usage ```python