cubicweb/appobject.py
changeset 12846 ba3cf6aaa695
parent 12831 b1ef9690f357
--- a/cubicweb/appobject.py	Tue Jan 14 17:38:11 2020 +0100
+++ b/cubicweb/appobject.py	Fri Jan 31 11:52:22 2020 +0100
@@ -29,12 +29,11 @@
 """
 
 
-from typing import Union
 from logging import getLogger
 
 from logilab.common.logging_ext import set_log_methods
 
-from logilab.common.registry import RegistrableObject, yes, Predicate
+from logilab.common.registry import RegistrableObject, yes
 
 
 # the base class for all appobjects ############################################
@@ -75,7 +74,7 @@
         such as `AnyEntity`, `EntityView`, `AnyRsetView`, `Action`...
 
     """
-    __select__: Union[None, str, Predicate] = yes()
+    __select__ = yes()
 
     @classmethod
     def __registered__(cls, registry):