Backed out changeset 7d3299d6e655 3.27
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Tue, 11 Feb 2020 10:22:52 +0100
branch3.27
changeset 12870 2695357a8bfc
parent 12869 50db521e3e53
child 12871 917601bb5b1b
Backed out changeset 7d3299d6e655 This is not compatible with python 3.5 and we want to support python 3.5 with cubicweb 3.27
cubicweb/server/hook.py
--- a/cubicweb/server/hook.py	Tue Feb 11 10:20:18 2020 +0100
+++ b/cubicweb/server/hook.py	Tue Feb 11 10:22:52 2020 +0100
@@ -248,7 +248,6 @@
 
 from logging import getLogger
 from itertools import chain
-from typing import Union, Tuple
 
 from logilab.common.decorators import classproperty, cached
 from logilab.common.logging_ext import set_log_methods
@@ -522,8 +521,8 @@
     """
     __select__ = enabled_category()
     # set this in derivated classes
+    events = None
     category = None
-    events: Union[None, Tuple[str], Tuple[str, str]] = None
     order = 0
     # stop pylint from complaining about missing attributes in Hooks classes
     eidfrom = eidto = entity = rtype = repo = None