-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
class ellipsis is public but shouldn't #3556
Comments
You're probably right, but I think mypy depends internally on the object being available under this name, so it might be fairly complicated to fix. (The same goes for |
That's why I didn't patch it. #2999 is also from me. My opinion is this: We should get closer to what Python actually does. Mypy is not the only typeshed user and is probably also not the biggest one in terms of user numbers. |
I agree that we should work towards a fix, but currently mypy and typeshed are closely tied together and we can't make changes that will break mypy. This should probably be brought up in mypy's issue tracker of there isn't an issue already. |
Opened python/mypy#8240. Hopefully that helps.
It's a bit unfortunate that the CI's are circular (both depend on each other). However other than that, typeshed could depend on an older version of typeshed. |
In Python 3.10, there is now References: https://bugs.python.org/issue41810, python/cpython#22336, python/typing#684 (comment) |
Closing as we now have #7580, and I don't think we need both issues to be open when they're about the same thing. |
Ellipsis
is defined like this:However I do not see how this
ellipsis
does not leak. Wouldn't it be better to renameellipsis
to_ellipsis
or import it from somewhere and not export it again?The text was updated successfully, but these errors were encountered: