(core) Convince grist-help that REQUEST is really unimplemented

Summary:
Change made to allow rebuilding functions in https://github.com/gristlabs/grist-help/pull/170

Deals the error described here: https://grist.slack.com/archives/C0234CPPXPA/p1660245534781629

Test Plan: Regenerating functions in grist-help works again.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3594
This commit is contained in:
Alex Hall 2022-08-23 17:28:05 +02:00
parent a52d56f613
commit 5f17dd0a06

View File

@ -661,7 +661,11 @@ def is_error(value):
or (isinstance(value, float) and math.isnan(value)))
@unimplemented # exclude from autocomplete while in beta
@unimplemented
# ^ This excludes this function from autocomplete while in beta
# and marks it as unimplemented in the docs.
# It also makes grist-help expect to see the string 'raise NotImplemented' in the function source,
# which it does now, because of this comment. Removing this comment will currently break the docs.
def REQUEST(url, params=None, headers=None):
# Makes a GET HTTP request with an API similar to `requests.get`.
# Actually jumps through hoops internally to make the request asynchronously (usually)