mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-02-03 12:36:56 +00:00
update
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user