From 3b3e1a91c5b54e02c1e4d7a52a9755358d1b6fa1 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 1a49e9a..0e007a3 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -351,7 +351,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.