From 7339cc59ede1a5a9c96f3a0fab8c23d5879b3eb8 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 16 Aug 2021 13:38:48 +0100 Subject: [PATCH] companion: Fix `class Session` docstring This is *not* only for the Frontier oAuth2 authn, it's also for the actual CAPI queries. --- companion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion.py b/companion.py index 08c92b7d..4bf77bc6 100644 --- a/companion.py +++ b/companion.py @@ -464,7 +464,7 @@ class Auth(object): class Session(object): - """Methods for handling an oAuth2 session.""" + """Methods for handling Frontier Auth and CAPI queries.""" STATE_INIT, STATE_AUTH, STATE_OK = list(range(3)) @@ -553,7 +553,7 @@ class Session(object): self.session.headers['User-Agent'] = USER_AGENT self.state = Session.STATE_OK - def query(self, endpoint: str) -> CAPIData: # noqa: CCR001 + def query(self, endpoint: str) -> CAPIData: # noqa: CCR001, C901 """Perform a query against the specified CAPI endpoint.""" logger.trace_if('capi.query', f'Performing query for endpoint "{endpoint}"') if self.state == Session.STATE_INIT: