1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-02-03 12:36:56 +00:00
This commit is contained in:
c-basalt
2024-12-28 03:56:12 -05:00
parent 5d32d72a83
commit 65e238c45d
4 changed files with 13 additions and 13 deletions

View File

@@ -1,10 +1,10 @@
from .native import JSInterpreter as NativeJSI
from .native import JSInterpreter
from .external import PhantomJSwrapper, DenoJSI, PuppeteerJSI
from .common import _JSI_PREFERENCES, _JSI_HANDLERS, JSInterp
__all__ = [
NativeJSI,
JSInterpreter,
PhantomJSwrapper,
DenoJSI,
PuppeteerJSI,

View File

@@ -240,7 +240,7 @@ def _base_preference(handler: JSI, *args):
if typing.TYPE_CHECKING:
from ..YoutubeDL import YoutubeDL
JsiClass = typing.TypeVar('JsiClass', bound=typing.Type[JSI])
JsiClass = typing.TypeVar('JsiClass', bound=type[JSI])
class JSIPreference(typing.Protocol):
def __call__(self, handler: JSI, method_name: str, *args, **kwargs) -> int: