Skip to content

Commit d3acba8

Browse files
committed
cleanup
1 parent 3e451e8 commit d3acba8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
import functools
22

33
import servicelib.aiohttp.application_setup
4+
from servicelib.aiohttp.application_setup import ModuleCategory, ensure_single_setup
45

56
from .constants import APP_SETTINGS_KEY
67

7-
ensure_single_setup = servicelib.aiohttp.application_setup.ensure_single_setup
8+
# models
9+
assert ModuleCategory # nosec
10+
11+
12+
# decorators
13+
assert callable(ensure_single_setup) # nosec
14+
815
app_setup_func = functools.partial(
916
servicelib.aiohttp.application_setup.app_module_setup,
1017
app_settings_key=APP_SETTINGS_KEY,
1118
)
1219

13-
1420
__all__: tuple[str, ...] = (
21+
"ModuleCategory",
1522
"app_setup_func",
1623
"ensure_single_setup",
1724
)

0 commit comments

Comments
 (0)