From 2cb4e27ee962342e53ad8e27261f82697d7e93a4 Mon Sep 17 00:00:00 2001 From: Mel Massadian Date: Fri, 7 Feb 2025 16:32:36 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20manual=20stub=20edits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit using patch to easily update bindings if needed --- .../OpenImageIO_pyi_20250207_163132.patch | 40 +++++++++++++++++++ ...OpenImageIO_pyi_20250207_163132.patch.json | 7 ++++ typings/OpenImageIO/OpenImageIO.pyi | 8 ++-- 3 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 typings/OpenImageIO/.patches/OpenImageIO_pyi_20250207_163132.patch create mode 100644 typings/OpenImageIO/.patches/OpenImageIO_pyi_20250207_163132.patch.json diff --git a/typings/OpenImageIO/.patches/OpenImageIO_pyi_20250207_163132.patch b/typings/OpenImageIO/.patches/OpenImageIO_pyi_20250207_163132.patch new file mode 100644 index 0000000..791e417 --- /dev/null +++ b/typings/OpenImageIO/.patches/OpenImageIO_pyi_20250207_163132.patch @@ -0,0 +1,40 @@ +diff --git a/typings/OpenImageIO/OpenImageIO.pyi b/typings/OpenImageIO/OpenImageIO.pyi +index 32639f3..e0c5a28 100644 +--- a/typings/OpenImageIO/OpenImageIO.pyi ++++ b/typings/OpenImageIO/OpenImageIO.pyi +@@ -3410,7 +3410,7 @@ class ImageInput: + """geterror(self: OpenImageIO.OpenImageIO.ImageInput, clear: bool = True) -> str""" + @overload + @staticmethod +- def open(filename: str) -> object: ++ def open(filename: str) -> ImageInput: + """open(*args, **kwargs) + Overloaded function. + +@@ -3420,7 +3420,7 @@ class ImageInput: + """ + @overload + @staticmethod +- def open(filename: str, config: ImageSpec) -> object: ++ def open(filename: str, config: ImageSpec) -> ImageInput: + """open(*args, **kwargs) + Overloaded function. + +@@ -3545,7 +3545,7 @@ class ImageOutput: + def copy_image(self, arg0: ImageInput) -> bool: + """copy_image(self: OpenImageIO.OpenImageIO.ImageOutput, arg0: OpenImageIO.OpenImageIO.ImageInput) -> bool""" + @staticmethod +- def create(filename: str, plugin_searchpath: str = ...) -> object: ++ def create(filename: str, plugin_searchpath: str = ...) -> ImageOutput: + """create(filename: str, plugin_searchpath: str = '') -> object""" + def format_name(self) -> str: + """format_name(self: OpenImageIO.OpenImageIO.ImageOutput) -> str""" +@@ -3651,7 +3651,7 @@ class ImageSpec: + 5. __init__(self: OpenImageIO.OpenImageIO.ImageSpec, arg0: OpenImageIO.OpenImageIO.ImageSpec) -> None + """ + @overload +- def __init__(self, arg0: int, arg1: int, arg2: int, arg3: TypeDesc) -> None: ++ def __init__(self, arg0: int, arg1: int, arg2: int, arg3: BASETYPE) -> None: + """__init__(*args, **kwargs) + Overloaded function. + diff --git a/typings/OpenImageIO/.patches/OpenImageIO_pyi_20250207_163132.patch.json b/typings/OpenImageIO/.patches/OpenImageIO_pyi_20250207_163132.patch.json new file mode 100644 index 0000000..e10cb08 --- /dev/null +++ b/typings/OpenImageIO/.patches/OpenImageIO_pyi_20250207_163132.patch.json @@ -0,0 +1,7 @@ +{ + "target": "C:\\Users\\User\\dev\\melMass\\stable-diffusion\\ComfyUI.git\\custom_nodes\\comfy_oiio\\typings\\OpenImageIO\\OpenImageIO.pyi", + "created": "2025-02-07 16:31:32.626596900 +01:00", + "min_version": null, + "max_version": null, + "description": "Initial Refinements" +} \ No newline at end of file diff --git a/typings/OpenImageIO/OpenImageIO.pyi b/typings/OpenImageIO/OpenImageIO.pyi index 32639f3..e0c5a28 100644 --- a/typings/OpenImageIO/OpenImageIO.pyi +++ b/typings/OpenImageIO/OpenImageIO.pyi @@ -3410,7 +3410,7 @@ class ImageInput: """geterror(self: OpenImageIO.OpenImageIO.ImageInput, clear: bool = True) -> str""" @overload @staticmethod - def open(filename: str) -> object: + def open(filename: str) -> ImageInput: """open(*args, **kwargs) Overloaded function. @@ -3420,7 +3420,7 @@ class ImageInput: """ @overload @staticmethod - def open(filename: str, config: ImageSpec) -> object: + def open(filename: str, config: ImageSpec) -> ImageInput: """open(*args, **kwargs) Overloaded function. @@ -3545,7 +3545,7 @@ class ImageOutput: def copy_image(self, arg0: ImageInput) -> bool: """copy_image(self: OpenImageIO.OpenImageIO.ImageOutput, arg0: OpenImageIO.OpenImageIO.ImageInput) -> bool""" @staticmethod - def create(filename: str, plugin_searchpath: str = ...) -> object: + def create(filename: str, plugin_searchpath: str = ...) -> ImageOutput: """create(filename: str, plugin_searchpath: str = '') -> object""" def format_name(self) -> str: """format_name(self: OpenImageIO.OpenImageIO.ImageOutput) -> str""" @@ -3651,7 +3651,7 @@ class ImageSpec: 5. __init__(self: OpenImageIO.OpenImageIO.ImageSpec, arg0: OpenImageIO.OpenImageIO.ImageSpec) -> None """ @overload - def __init__(self, arg0: int, arg1: int, arg2: int, arg3: TypeDesc) -> None: + def __init__(self, arg0: int, arg1: int, arg2: int, arg3: BASETYPE) -> None: """__init__(*args, **kwargs) Overloaded function.