From fbbccc186d8c76c4003d440a7389f8630026a4e0 Mon Sep 17 00:00:00 2001 From: jerry Date: Mon, 9 Sep 2024 00:53:11 +0000 Subject: [PATCH] fix linter remove unused imports and variables (#1375) * fix linter remove unused imports and variables * add UNUSED comment --- api/nick_generator/nick_generator.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api/nick_generator/nick_generator.py b/api/nick_generator/nick_generator.py index 3b75c0c6..9f288cdf 100755 --- a/api/nick_generator/nick_generator.py +++ b/api/nick_generator/nick_generator.py @@ -1,7 +1,10 @@ import hashlib -import time -from .utils import human_format +# UNUSED +# import time + +# UNUSED +# from .utils import human_format class NickGenerator: @@ -94,7 +97,7 @@ class NickGenerator: # if self.verbose: # print(f"Adverb: {adv}, id {adv_id}.") else: - adv_id, adv, remainder = 0, "", nick_id + adv, remainder = "", nick_id # Compute adjective id if self.use_adj: