From 076aab518f07837e9b42396e896bdb9741972287 Mon Sep 17 00:00:00 2001 From: laggykiller Date: Wed, 13 Sep 2023 02:28:51 +0800 Subject: [PATCH] Fix documentation typo --- CMakeLists.txt | 4 ++-- src-python/apngasm_python/__init__.py | 2 +- src-python/apngasm_python/apngasm.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a1639d..db17dd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,10 +55,10 @@ endif() if (EXISTS ${CONAN_TOOLCHAIN}) include(${CONAN_TOOLCHAIN}) else() - message(WARNING "The conan_toolchain file could not be found: ${CONAN_TOOLCHAIN}") + message(FATAL_ERROR "The conan_toolchain file could not be found: ${CONAN_TOOLCHAIN}") endif() -project(apngasm-python VERSION 1.0.7) +project(apngasm-python VERSION 1.0.8) set(PY_VERSION_SUFFIX "") set(PY_FULL_VERSION ${PROJECT_VERSION}${PY_VERSION_SUFFIX}) diff --git a/src-python/apngasm_python/__init__.py b/src-python/apngasm_python/__init__.py index 453ef4c..de28bf1 100755 --- a/src-python/apngasm_python/__init__.py +++ b/src-python/apngasm_python/__init__.py @@ -1,4 +1,4 @@ '''apngasm-python''' -__version__ = '1.0.7' +__version__ = '1.0.8' from .apngasm import APNGAsmBinder \ No newline at end of file diff --git a/src-python/apngasm_python/apngasm.py b/src-python/apngasm_python/apngasm.py index 8366c6f..b0fc5e6 100755 --- a/src-python/apngasm_python/apngasm.py +++ b/src-python/apngasm_python/apngasm.py @@ -138,7 +138,7 @@ def frame_transparency(self, frame: int, new_value: int = None): is set with this value. :return: 1D numpy array representation of transparency data of frame (get) or None (set) - :rtype: numpy.adarray or None + :rtype: numpy.ndarray or None ''' if new_value: self.apngasm.get_frames()[frame].transparency = new_value @@ -420,7 +420,7 @@ def get_frames(self): Returns the frame vector. :return: frame vector - :rtype: numpy.adarray + :rtype: numpy.ndarray ''' return self.apngasm.get_frames() @@ -466,7 +466,7 @@ def version(self): ''' Returns the version of APNGAsm. - 'return: version of APNGAsm. + :return: version of APNGAsm. :rtype: str ''' return self.apngasm.version()