diff --git a/src/python/jw/pkg/lib/util.py b/src/python/jw/pkg/lib/util.py index 3390b58b..c3f581b9 100644 --- a/src/python/jw/pkg/lib/util.py +++ b/src/python/jw/pkg/lib/util.py @@ -5,7 +5,7 @@ import os import sys from enum import Enum, auto -from typing import TYPE_CHECKING, Iterable, TypeVar, cast +from typing import TYPE_CHECKING, Iterable, TypeVar from .base import Input, InputMode, Result from .log import DEBUG, ERR, log @@ -93,7 +93,7 @@ async def run_curl_into( raise TypeError( f'Expected {expected_type.__name__}, got {type(ret).__name__} from Curl' ) - return cast('T', ret) + return ret async def run_askpass( askpass_env: list[str],