From 43e252f32259ea4796c04e2ca19df7395c81dfcf Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:51:46 +0200 Subject: [PATCH 1/3] Make stable node inspect api public --- vsgenstubs4/_vapoursynth.part.pyi | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/vsgenstubs4/_vapoursynth.part.pyi b/vsgenstubs4/_vapoursynth.part.pyi index 5eaeba6..c659925 100644 --- a/vsgenstubs4/_vapoursynth.part.pyi +++ b/vsgenstubs4/_vapoursynth.part.pyi @@ -1010,24 +1010,24 @@ class RawNode: def is_inspectable(self, version: Union[int, None] = None) -> bool: ... - if not TYPE_CHECKING: - @property - def _node_name(self) -> str: ... - - @property - def _name(self) -> str: ... + @property + def node_name(self) -> str: ... - @property - def _inputs(self) -> Dict[str, _VapourSynthMapValue]: ... + @property + def timings(self) -> int: ... - @property - def _timings(self) -> int: ... + @property + def mode(self) -> FilterMode: ... + @property + def dependencies(self): ... + + if not TYPE_CHECKING: @property - def _mode(self) -> FilterMode: ... + def _name(self) -> str: ... @property - def _dependencies(self): ... + def _inputs(self) -> Dict[str, _VapourSynthMapValue]: ... @overload def __eq__(self: 'SelfRawNode', other: 'SelfRawNode', /) -> bool: ... # type: ignore[misc] From 8a9968628e80a9ed2013343a14bfc4cd9b7c6fa0 Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:57:29 +0200 Subject: [PATCH 2/3] Add CoreTimings --- vsgenstubs4/_vapoursynth.part.pyi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vsgenstubs4/_vapoursynth.part.pyi b/vsgenstubs4/_vapoursynth.part.pyi index c659925..65f9fc6 100644 --- a/vsgenstubs4/_vapoursynth.part.pyi +++ b/vsgenstubs4/_vapoursynth.part.pyi @@ -1123,6 +1123,20 @@ class LogHandle: def __init__(self) -> NoReturn: ... +class CoreTimings: + @property + def enabled(self) -> bool: ... + + @enabled.setter + def enabled(self) -> None: ... + + @property + def freed_nodes(self) -> int: ... + + @freed_nodes.setter + def freed_nodes(self) -> None: ... + + class Function: plugin: 'Plugin' name: str @@ -1153,6 +1167,8 @@ class Plugin: class Core: + timings: CoreTimings + def __init__(self) -> NoReturn: ... @property From f87963fd27ef808f71362f351501769502345990 Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:58:16 +0200 Subject: [PATCH 3/3] Add timings setter to RawNode to reflect CoreTimings --- vsgenstubs4/_vapoursynth.part.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vsgenstubs4/_vapoursynth.part.pyi b/vsgenstubs4/_vapoursynth.part.pyi index 65f9fc6..4451da4 100644 --- a/vsgenstubs4/_vapoursynth.part.pyi +++ b/vsgenstubs4/_vapoursynth.part.pyi @@ -1016,6 +1016,9 @@ class RawNode: @property def timings(self) -> int: ... + @timings.setter + def timings(self) -> None: ... + @property def mode(self) -> FilterMode: ...