cubicweb/appobject.py
changeset 12831 b1ef9690f357
parent 12508 a8c1ea390400
child 12846 ba3cf6aaa695
--- a/cubicweb/appobject.py	Thu Dec 19 06:32:16 2019 +0100
+++ b/cubicweb/appobject.py	Thu Dec 19 06:33:49 2019 +0100
@@ -29,11 +29,12 @@
 """
 
 
+from typing import Union
 from logging import getLogger
 
 from logilab.common.logging_ext import set_log_methods
 
-from logilab.common.registry import RegistrableObject, yes
+from logilab.common.registry import RegistrableObject, yes, Predicate
 
 
 # the base class for all appobjects ############################################
@@ -74,7 +75,7 @@
         such as `AnyEntity`, `EntityView`, `AnyRsetView`, `Action`...
 
     """
-    __select__ = yes()
+    __select__: Union[None, str, Predicate] = yes()
 
     @classmethod
     def __registered__(cls, registry):