Skip to content

Commit

Permalink
return docstring escaped.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeichikawasalesforce committed Nov 21, 2024
1 parent 72be566 commit a351438
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion tabpy/tabpy_tools/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import copy
import inspect
from re import compile
import time
import requests
Expand Down
11 changes: 6 additions & 5 deletions tabpy/tabpy_tools/custom_query_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ def query(self, *args, **kwargs):

def get_doc_string(self):
"""Get doc string from customized query"""
return "-- no docstring found in query function --"
# if self.custom_query.__doc__ is not None:
# return self.custom_query.__doc__
# else:
# return "-- no docstring found in query function --"
if self.custom_query.__doc__ is not None:
return str(
bytes(self.custom_query.__doc__, "utf-8").decode("unicode_escape")
)
else:
return "-- no docstring found in query function --"

def get_methods(self):
return [self.get_query_method()]
Expand Down

0 comments on commit a351438

Please sign in to comment.