--- 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):