Skip to content

Commit 32406e4

Browse files
committed
chore(deps): remove unused importlib-resources
importlib.resources is part of the standard library since Python 3.7
1 parent b2cd327 commit 32406e4

4 files changed

Lines changed: 2 additions & 34 deletions

File tree

onekey_client/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import functools
22
import gc
33
import secrets
4+
from importlib import resources
45
from pathlib import Path
56

6-
try:
7-
from importlib import resources
8-
except ImportError:
9-
import importlib_resources as resources
10-
117
import httpx
128
from authlib.jose import jwt
139
from authlib.oidc.core import IDToken

onekey_client/queries/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import functools
2+
from importlib import resources
23

34
from .. import queries
45

5-
try:
6-
from importlib import resources
7-
except ImportError:
8-
import importlib_resources as resources
9-
106

117
@functools.lru_cache
128
def load_query(query_name) -> str:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ dependencies = [
1919
"httpx==0.28.1",
2020
"pydantic==2.12.5",
2121
"Authlib>=1.4.1,<2.0.0",
22-
"importlib-resources>=6.0.0,<7",
2322
"click>=8.1.3,<9",
2423
"junit-xml>=1.9,<2",
2524
]

uv.lock

Lines changed: 0 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)