Skip to content

Restore os.path methods overload workaround - #12837

Merged
hauntsaninja merged 7 commits into
python:mainfrom
Avasam:restore-path-method-overload-workaround
Oct 17, 2024
Merged

hauntsaninja merged 7 commits into
python:mainfrom
Avasam:restore-path-method-overload-workaround

Conversation

@Avasam

@Avasam Avasam commented Oct 17, 2024 •

Copy link
Copy Markdown
Collaborator

@github-actions

This comment has been minimized.

@hauntsaninja hauntsaninja left a comment •

Copy link
Copy Markdown
Collaborator

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) )

@github-actions

This comment has been minimized.

@Avasam

Avasam commented Oct 17, 2024

Copy link
Copy Markdown
Collaborator Author

(We could also link the issue in re, as Alex mentions here #12208 (review) )

I think I did what you meant here. But I'm not certain.

@github-actions

Copy link
Copy Markdown
Contributor

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]

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

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 :-)

@hauntsaninja
hauntsaninja merged commit 559ae97 into python:main Oct 17, 2024
@Avasam
Avasam deleted the restore-path-method-overload-workaround branch October 17, 2024 22:36
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

Successfully merging this pull request may close these issues.

3 participants