Debian Codegraph @

tests/annotated_functions.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2 """This is a collection of annotated functions used by tests.
3
4 They are grouped here to provide an easy way to import them at runtime
5 to check whenever tests for annotated functions should be skipped or not
6 on current python version.
7 """
8 from beaker.cache import cache_region
9 import time
10
11 class AnnotatedAlfredCacher(object):
12 @cache_region('short_term')
13 def alfred_self(self, xx: int, y=None) -> str:
14 return str(time.time()) + str(self) + str(xx) + str(y)
15