aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/core/events.py
diff options
context:
space:
mode:
authorBenjamin Klimczak <benjamin.klimczak@arm.com>2023-08-24 16:38:47 +0100
committerBenjamin Klimczak <benjamin.klimczak@arm.com>2023-09-05 14:20:08 +0100
commite5a0bc3ecd4d9c46ead3b8217584eaa916a3afa4 (patch)
tree94c348fcef50326a755a049a2a4027f588211f8b /src/mlia/core/events.py
parent900c3c52b681e0b8a4454e2e2cf29265d53a2c98 (diff)
downloadmlia-e5a0bc3ecd4d9c46ead3b8217584eaa916a3afa4.tar.gz
MLIA-961 Update tox dependencies
- Update version dependencies in the tox.ini - Fix linter issues Change-Id: I04c3a841ee2646a865dab037701d66c28792f2a4 Signed-off-by: Benjamin Klimczak <benjamin.klimczak@arm.com>
Diffstat (limited to 'src/mlia/core/events.py')
-rw-r--r--src/mlia/core/events.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mlia/core/events.py b/src/mlia/core/events.py
index e328cc1..ae22771 100644
--- a/src/mlia/core/events.py
+++ b/src/mlia/core/events.py
@@ -1,4 +1,4 @@
-# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
+# SPDX-FileCopyrightText: Copyright 2022-2023, Arm Limited and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
"""Module for the events and related functionality.
@@ -267,14 +267,14 @@ class EventDispatcherMetaclass(type):
"""
def __new__(
- cls,
+ mcs,
clsname: str,
bases: tuple[type, ...],
namespace: dict[str, Any],
event_handler_method_prefix: str = "on_",
) -> Any:
"""Create event dispatcher and link event handlers."""
- new_class = super().__new__(cls, clsname, bases, namespace)
+ new_class = super().__new__(mcs, clsname, bases, namespace)
@singledispatchmethod
def dispatcher(_self: Any, _event: Event) -> Any: