Uh oh!
There was an error while loading. Please reload this page.
Extend Py3 Queue type hints - #1885
Conversation
There was a problem hiding this comment.
I don't see any of these documented at https://docs.python.org/3/library/queue.html#queue-objects -- perhaps it's better to leave them out? (UPDATE: In fact I'm sure of it.)
Sterbic
commented
Feb 16, 2018
I only need Is the goal of the typeshed to be a backup documentation or to be as accurate at possible and minimise type errors? |
gvanrossum
commented
Feb 16, 2018
via email
The goal is in between. It's not meant as documentation but it is meant to
help you find problems in your code; I think using private attributes is an
example of that. Unless there's a common idiom that accesses a private or
undocumented attribute, you should just add `# type: ignore` to your code. |
Sterbic
commented
Feb 17, 2018
Fair enough, thanks for the explanation! So far I always viewed In an ideal scenario, should those |
gvanrossum
commented
Feb 17, 2018
Yeah, it was probably a mistake (made 20 years ago) to have those attributes not start with |
No description provided.