aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/__init__.py b/src/utils/__init__.py
index d7a3d968..869690ff 100644
--- a/src/utils/__init__.py
+++ b/src/utils/__init__.py
@@ -185,6 +185,11 @@ def export(setting: str, value: typing.Any):
return module
return _export_func
+class Check(object):
+ def __init__(self, request: str, *args: typing.List[str]):
+ self.request = request
+ self.args = args
+
TOP_10_CALLABLE = typing.Callable[[typing.Any], typing.Any]
def top_10(items: typing.Dict[typing.Any, typing.Any],
convert_key: TOP_10_CALLABLE=lambda x: x,