From 579deaa82a20704d7ea860dec583fe3c511b06c6 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Sat, 9 Dec 2023 23:25:15 +0200 Subject: [PATCH] make pretty --- sanic_ext/extensions/injection/injector.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sanic_ext/extensions/injection/injector.py b/sanic_ext/extensions/injection/injector.py index 8c79122..a4a3f5c 100644 --- a/sanic_ext/extensions/injection/injector.py +++ b/sanic_ext/extensions/injection/injector.py @@ -11,8 +11,10 @@ from .registry import ConstantRegistry, InjectionRegistry, SignatureRegistry + PRIORITY = 1_000_000 + def add_injection( app: Sanic, injection_registry: InjectionRegistry, @@ -22,7 +24,7 @@ def add_injection( app, injection_registry, constant_registry ) - @app.listener("before_server_start", priority=PRIORITY-1) + @app.listener("before_server_start", priority=PRIORITY - 1) async def finalize_injections(app: Sanic, _): router_converters = set( allowed[0] for allowed in app.router.regex_types.values()