Skip to content

Commit

Permalink
Revert qrcode dependency fix (thesadru#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati authored Apr 14, 2024
1 parent 28d3c2e commit c32ed4b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions genshin/client/components/geetest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

import aiohttp
import aiohttp.web
import qrcode
import qrcode.image.pil
from qrcode.constants import ERROR_CORRECT_L

from genshin import constants, errors
from genshin.client import routes
Expand Down Expand Up @@ -524,10 +527,6 @@ async def login_with_qrcode(self) -> typing.Dict[str, str]:
Returns cookies.
"""
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
qrcode_.show()
Expand Down

0 comments on commit c32ed4b

Please sign in to comment.