From ded83398ea2b6895b8b00a648ae425a2a7866341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 11 Jun 2024 19:20:03 +0200 Subject: [PATCH] python: supply docstrings for the most used pluginmanager APIs. It's fun to test out docstring and type annotation use in an IDE only to hit an undocumented function as the very first thing. Sigh. --- src/python/corrade/pluginmanager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/corrade/pluginmanager.h b/src/python/corrade/pluginmanager.h index b1542e7..d6660af 100644 --- a/src/python/corrade/pluginmanager.h +++ b/src/python/corrade/pluginmanager.h @@ -84,7 +84,7 @@ template void manager(py::class_, PluginManag } return PluginManager::pyPluginHolder(std::move(loaded), py::cast(self)); - }) + }, "Instantiate a plugin") .def("load_and_instantiate", [](PluginManager::Manager& self, const std::string& plugin) { auto loaded = self.loadAndInstantiate(plugin); if(!loaded) { @@ -93,7 +93,7 @@ template void manager(py::class_, PluginManag } return PluginManager::pyPluginHolder(std::move(loaded), py::cast(self)); - }); + }, "Load and instantiate plugin"); } }