Skip to content

Duplicate attributes in tornado stubs #2423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ilevkivskyi opened this issue Sep 3, 2018 · 0 comments
Closed

Duplicate attributes in tornado stubs #2423

ilevkivskyi opened this issue Sep 3, 2018 · 0 comments

Comments

@ilevkivskyi
Copy link
Member

I am working on some unrelated things and noticed these errors:

mypy/typeshed/third_party/2/tornado/httpclient.pyi:58: error: Name 'headers' already defined on line 26
mypy/typeshed/third_party/2/tornado/httpclient.pyi:62: error: Name 'body' already defined on line 33
mypy/typeshed/third_party/2/tornado/httpclient.pyi:66: error: Name 'body_producer' already defined on line 34
mypy/typeshed/third_party/2/tornado/httpclient.pyi:70: error: Name 'streaming_callback' already defined on line 45
mypy/typeshed/third_party/2/tornado/httpclient.pyi:74: error: Name 'header_callback' already defined on line 46
mypy/typeshed/third_party/2/tornado/httpclient.pyi:78: error: Name 'prepare_curl_callback' already defined on line 47

This are technically OK, but anyway it looks like an inconsistency that should not be in typeshed IMO.

JelleZijlstra added a commit that referenced this issue Sep 3, 2018
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.
JelleZijlstra added a commit that referenced this issue Sep 3, 2018
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.
cocoatomo pushed a commit to cocoatomo/typeshed that referenced this issue Sep 8, 2018
Fixes python#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.
yedpodtrzitko pushed a commit to yedpodtrzitko/typeshed that referenced this issue Jan 23, 2019
Fixes python#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant