Skip to content

Commit

Permalink
Move import statement of qrcode constants into method
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati authored Apr 13, 2024
1 parent a28a675 commit 28d3c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genshin/client/components/geetest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 28d3c2e

Please sign in to comment.