]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Standardize type documentation for HTTPRequest init 2814/head
authorRecursing <buonanno.lorenzo@gmail.com>
Fri, 21 Feb 2020 12:15:59 +0000 (12:15 +0000)
committerGitHub <noreply@github.com>
Fri, 21 Feb 2020 12:15:59 +0000 (12:15 +0000)
tornado/httpclient.py

index 8418cd7f732facf584e1d24ef7fa0a5fedefafff..4b7009df094f98181ac502e42fb17ffaf0e2a890 100644 (file)
@@ -401,7 +401,9 @@ class HTTPRequest(object):
         :type headers: `~tornado.httputil.HTTPHeaders` or `dict`
         :arg body: HTTP request body as a string (byte or unicode; if unicode
            the utf-8 encoding will be used)
-        :arg body_producer: Callable used for lazy/asynchronous request bodies.
+        :type body: `str` or `bytes`
+        :arg collections.abc.Callable body_producer: Callable used for
+           lazy/asynchronous request bodies.
            It is called with one argument, a ``write`` function, and should
            return a `.Future`.  It should call the write function with new
            data as it becomes available.  The write function returns a