From 766e766f50608d2a2db4460d7eb1ff88c780aa69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 22 Dec 2017 16:25:12 +0100 Subject: [PATCH] Declare some parameter types --- pillar/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pillar/__init__.py b/pillar/__init__.py index 3b0da365..21d9813a 100644 --- a/pillar/__init__.py +++ b/pillar/__init__.py @@ -755,7 +755,7 @@ class PillarServer(BlinkerCompatibleEve): return 'basic ' + base64.b64encode('%s:%s' % (username, subclient_id)) - def post_internal(self, resource, payl=None, skip_validation=False): + def post_internal(self, resource: str, payl=None, skip_validation=False): """Workaround for Eve issue https://github.com/nicolaiarocci/eve/issues/810""" from eve.methods.post import post_internal @@ -764,7 +764,7 @@ class PillarServer(BlinkerCompatibleEve): with self.__fake_request_url_rule('POST', path): return post_internal(resource, payl=payl, skip_validation=skip_validation)[:4] - def put_internal(self, resource, payload=None, concurrency_check=False, + def put_internal(self, resource: str, payload=None, concurrency_check=False, skip_validation=False, **lookup): """Workaround for Eve issue https://github.com/nicolaiarocci/eve/issues/810""" from eve.methods.put import put_internal @@ -775,7 +775,7 @@ class PillarServer(BlinkerCompatibleEve): return put_internal(resource, payload=payload, concurrency_check=concurrency_check, skip_validation=skip_validation, **lookup)[:4] - def patch_internal(self, resource, payload=None, concurrency_check=False, + def patch_internal(self, resource: str, payload=None, concurrency_check=False, skip_validation=False, **lookup): """Workaround for Eve issue https://github.com/nicolaiarocci/eve/issues/810""" from eve.methods.patch import patch_internal