From 64075d3250327bde0ccb3a2bd744d6e1d2128ef1 Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Thu, 1 Aug 2024 19:58:53 +0900 Subject: [PATCH] Add NOQA comment to ignore E721 flake8 warning --- labelme/cli/on_docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelme/cli/on_docker.py b/labelme/cli/on_docker.py index a6ea05a53..ea2536396 100644 --- a/labelme/cli/on_docker.py +++ b/labelme/cli/on_docker.py @@ -20,7 +20,7 @@ def get_ip(): elif dist == "Darwin": cmd = "ifconfig en0" output = subprocess.check_output(shlex.split(cmd)) - if str != bytes: # Python3 + if str != bytes: # noqa: E721 output = output.decode("utf-8") for row in output.splitlines(): cols = row.strip().split(" ")