From 28d3c2e7a1c4ce9eaac6ff27d0f610091bc934c4 Mon Sep 17 00:00:00 2001 From: seria Date: Sat, 13 Apr 2024 12:54:00 +0900 Subject: [PATCH] Move import statement of qrcode constants into method --- genshin/client/components/geetest/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genshin/client/components/geetest/client.py b/genshin/client/components/geetest/client.py index 0b1d8373..c594ecc1 100644 --- a/genshin/client/components/geetest/client.py +++ b/genshin/client/components/geetest/client.py @@ -9,7 +9,6 @@ import aiohttp import aiohttp.web -from qrcode.constants import ERROR_CORRECT_L from genshin import constants, errors from genshin.client import routes @@ -527,6 +526,7 @@ async def login_with_qrcode(self) -> typing.Dict[str, str]: """ import qrcode import qrcode.image.pil + from qrcode.constants import ERROR_CORRECT_L creation_result = await self._create_qrcode() qrcode_: qrcode.image.pil.PilImage = qrcode.make(creation_result.url, error_correction=ERROR_CORRECT_L) # type: ignore