From fee5279c12cd9270d545861db81b7cfd7e9459f1 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 4 Nov 2021 13:41:15 +0000 Subject: [PATCH] Gateway: Make the CORS apply() static Quietens a PyCharm warning --- src/eddn/Gateway.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eddn/Gateway.py b/src/eddn/Gateway.py index 44e4d87..314b91f 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -383,7 +383,8 @@ class EnableCors(object): name = 'enable_cors' api = 2 - def apply(self, fn, context): + @staticmethod + def apply(fn, context): """ Apply CORS headers to the calling bottle app.