Skip to content

Commit

Permalink
Fix things
Browse files Browse the repository at this point in the history
  • Loading branch information
1st1 committed Oct 11, 2024
1 parent e2fae16 commit eb6d2d7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
1 change: 1 addition & 0 deletions docs/stdlib/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Standard Library
objects
abstract
constraints
net
fts
sys
cfg
Expand Down
25 changes: 8 additions & 17 deletions docs/stdlib/net.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,30 +120,21 @@ The ``net::http`` submodule provides types and functions for making HTTP request
.. eql:function:: net::http::schedule_request( \
url: str, \
body: optional bytes = {}, \
method: optional net::http::Method = net::http::Method.GET, \
method: optional net::http::Method = net::http::Method.`GET`, \
headers: optional array<tuple<name: str, value: str>> = {} \
) -> net::http::ScheduledRequest
Schedules an HTTP request.

:param url:
The URL to send the request to.
:paramtype url: str
Parameters:

:param body:
The body of the request (optional).
:paramtype body: bytes
* ``url``: The URL to send the request to.
* ``body``: The body of the request (optional).
* ``method``: The HTTP method to use (optional, defaults to GET).
* ``headers``: The headers to include in the request (optional).

:param method:
The HTTP method to use (optional, defaults to GET).
:paramtype method: net::http::Method

:param headers:
The headers to include in the request (optional).
:paramtype headers: array<tuple<name: str, value: str>>

:return: A object representing the scheduled request.
:returntype: net::http::ScheduledRequest
Returns ``net::http::ScheduledRequest`` object representing
the scheduled request.

Example:

Expand Down
6 changes: 4 additions & 2 deletions edb/tools/docs/eql.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ class EQLTypeDirective(BaseEQLDirective):

def handle_signature(self, sig, signode):
if '::' in sig:
mod, name = sig.strip().split('::')
mod, name = sig.strip().rsplit('::', 1)
else:
name = sig.strip()
mod = 'std'
Expand Down Expand Up @@ -772,7 +772,9 @@ def handle_signature(self, sig, signode):
f'create function {sig} using SQL function "xxx";')[0]
except Exception as ex:
raise self.error(
f'could not parse function signature {sig!r}') from ex
f'could not parse function signature {sig!r}: '
f'{ex.__class__.__name__}({ex.args[0]!r})'
) from ex

if (not isinstance(astnode, ql_ast.CreateFunction) or
not isinstance(astnode.name, ql_ast.ObjectRef)):
Expand Down

0 comments on commit eb6d2d7

Please sign in to comment.