From 5fc5abafd7c5075d174a35c6d9dcc2a7d87da801 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 3 Sep 2018 09:47:31 -0700 Subject: [PATCH] fix duplicate definitions in tornado Fixes #2423. I followed https://github.com/tornadoweb/tornado/blob/master/tornado/httpclient.py and kept the `@property` where it exists in the implementation and the attribute where it doesn't. --- third_party/2/tornado/httpclient.pyi | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/third_party/2/tornado/httpclient.pyi b/third_party/2/tornado/httpclient.pyi index d3c7127cd97f..0e1ec833a43f 100644 --- a/third_party/2/tornado/httpclient.pyi +++ b/third_party/2/tornado/httpclient.pyi @@ -23,14 +23,12 @@ class AsyncHTTPClient(Configurable): def configure(cls, impl, **kwargs): ... class HTTPRequest: - headers = ... # type: Any proxy_host = ... # type: Any proxy_port = ... # type: Any proxy_username = ... # type: Any proxy_password = ... # type: Any url = ... # type: Any method = ... # type: Any - body = ... # type: Any body_producer = ... # type: Any auth_username = ... # type: Any auth_password = ... # type: Any @@ -63,22 +61,6 @@ class HTTPRequest: def body(self): ... @body.setter def body(self, value): ... - @property - def body_producer(self): ... - @body_producer.setter - def body_producer(self, value): ... - @property - def streaming_callback(self): ... - @streaming_callback.setter - def streaming_callback(self, value): ... - @property - def header_callback(self): ... - @header_callback.setter - def header_callback(self, value): ... - @property - def prepare_curl_callback(self): ... - @prepare_curl_callback.setter - def prepare_curl_callback(self, value): ... class HTTPResponse: request = ... # type: Any