From 3dbbd83a010185b2bcf2aef8bc25755bf384d234 Mon Sep 17 00:00:00 2001 From: Jake Ichikawa Date: Thu, 21 Nov 2024 09:15:05 -0800 Subject: [PATCH] Test docstring update. --- tabpy/tabpy_tools/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tabpy/tabpy_tools/client.py b/tabpy/tabpy_tools/client.py index 6a3f67db..bf355889 100644 --- a/tabpy/tabpy_tools/client.py +++ b/tabpy/tabpy_tools/client.py @@ -380,7 +380,6 @@ def _gen_endpoint(self, name, obj, description, version=1, schema=None, is_publi description = obj.__doc__.strip() or "" if isinstance(obj.__doc__, str) else "" endpoint_object = CustomQueryObject(query=obj, description=description,) - docstring = "-- no docstring found in query function --" return { "name": name, @@ -392,7 +391,7 @@ def _gen_endpoint(self, name, obj, description, version=1, schema=None, is_publi "methods": endpoint_object.get_methods(), "required_files": [], "required_packages": [], - "docstring": docstring, + "docstring": endpoint_object.get_doc_string(), "schema": copy.copy(schema), "is_public": is_public, }