Skip to content

Commit d4127e5

Browse files
committed
Fix pyright issues with JSON
1 parent 788c5f5 commit d4127e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

twitchio/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
try:
5353
import orjson # type: ignore
5454

55-
_from_json = orjson.loads # type: ignore
55+
_from_json: Any = orjson.loads # type: ignore
5656
except ImportError:
57-
_from_json = json.loads
57+
_from_json: Any = json.loads
5858

5959

6060
PY_312 = sys.version_info >= (3, 12)

0 commit comments

Comments
 (0)