Skip to content

Commit

Permalink
Test docstring update.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeichikawasalesforce committed Nov 21, 2024
1 parent 16e1f25 commit 3dbbd83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tabpy/tabpy_tools/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
}
Expand Down

0 comments on commit 3dbbd83

Please sign in to comment.