Skip to content

Commit

Permalink
docstring str
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeichikawasalesforce committed Nov 21, 2024
1 parent a351438 commit ef066ac
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tabpy/tabpy_tools/custom_query_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,7 @@ def query(self, *args, **kwargs):

def get_doc_string(self):
"""Get doc string from customized query"""
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 --"
return str(self.custom_query.__doc__ or "-- no docstring found in query function --")

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

0 comments on commit ef066ac

Please sign in to comment.