mgr/cephadm: undefined name 'channel' (F821)

Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
Michael Fritch 2021-01-28 12:50:42 -07:00
parent b40d28ce90
commit 867c7423e5
No known key found for this signature in database
GPG Key ID: 75F3EB2E80A03B7F
3 changed files with 3 additions and 4 deletions

View File

@ -27,5 +27,5 @@ def choose_python():
if __name__ == '__channelexec__':
for item in channel: # type: ignore
channel.send(eval(item)) # type: ignore
for item in channel: # type: ignore # noqa: F821
channel.send(eval(item)) # type: ignore # noqa: F821

View File

@ -887,7 +887,7 @@ class Orchestrator(object):
"""
Applies any spec
"""
fns: Dict[str, function] = {
fns: Dict[str, Callable] = {
'alertmanager': self.apply_alertmanager,
'crash': self.apply_crash,
'grafana': self.apply_grafana,

View File

@ -14,7 +14,6 @@ ignore =
E501,
F401,
F811,
F821,
F841,
W291,
W503,