-
-
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
Restore os.path methods overload workaround #12837
Restore os.path methods overload workaround #12837
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks, and tests looks great! Let's remove the references to python/mypy#3644 since that issue is fixed and replace them with reference to python/mypy#17952 which we can use to track the remaining issue with Any.
(We could also link the issue in re, as Alex mentions here #12208 (review) )
This comment has been minimized.
This comment has been minimized.
I think I did what you meant here. But I'm not certain. |
Diff from mypy_primer, showing the effect of this PR on open source code: setuptools (https://github.com/pypa/setuptools)
- pkg_resources/__init__.py:2651: error: Value of type variable "AnyStr" of "abspath" cannot be "Sequence[object]" [type-var]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you! Hopefully these get fixed and we can reland the cleanup :-)
See python/mypy#17952 and https://github.com/pypa/setuptools/pull/4688/files#diff-e3d3d454fa3a072c9f46f8affa27513892fbc2d245e87f57a5927a7be851de05R2651
Reverts #12208 and adds tests
CC @hauntsaninja @srittau