From 4ef07e67a1bd6fd1e348b04648097339efdce6cf Mon Sep 17 00:00:00 2001 From: bgbsww Date: Fri, 27 Sep 2024 14:27:35 -0400 Subject: [PATCH] Tiny doc format changes to make pybin11_stubgen happy --- src/App/ApplicationPy.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/App/ApplicationPy.cpp b/src/App/ApplicationPy.cpp index 9e5371fc32..cfa9621103 100644 --- a/src/App/ApplicationPy.cpp +++ b/src/App/ApplicationPy.cpp @@ -86,7 +86,7 @@ PyMethodDef Application::Methods[] = { {"getUserAppDataDir", (PyCFunction) Application::sGetUserAppDataPath, METH_VARARGS, "Get the root directory of application data"}, {"getUserMacroDir", (PyCFunction) Application::sGetUserMacroPath, METH_VARARGS, - "getUserMacroDir(bool=False) -> string" + "getUserMacroDir(bool=False) -> str\n\n" "Get the directory of the user's macro directory\n" "If parameter is False (the default) it returns the standard path in the" "user's home directory, otherwise it returns the user-defined path."}, @@ -169,11 +169,13 @@ PyMethodDef Application::Methods[] = { "active transaction causes any document changes to open a transaction with\n" "the given name and ID."}, {"getActiveTransaction", (PyCFunction) Application::sGetActiveTransaction, METH_VARARGS, - "getActiveTransaction() -> (name,id) return the current active transaction name and ID"}, + "getActiveTransaction() -> (name,id)\n\n" + "return the current active transaction name and ID"}, {"closeActiveTransaction", (PyCFunction) Application::sCloseActiveTransaction, METH_VARARGS, "closeActiveTransaction(abort=False) -- commit or abort current active transaction"}, {"isRestoring", (PyCFunction) Application::sIsRestoring, METH_VARARGS, - "isRestoring() -> Bool -- Test if the application is opening some document"}, + "isRestoring() -> bool\n\n" + "Test if the application is opening some document"}, {"checkAbort", (PyCFunction) Application::sCheckAbort, METH_VARARGS, "checkAbort() -- check for user abort in length operation.\n\n" "This only works if there is an active sequencer (or ProgressIndicator in Python).\n"