Skip to content

Add missing _optimize parameter to importlib.machinery.SourceFileLoader method. #13880

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

Merged

Conversation

Sachaa-Thanasius
Copy link
Contributor

This has been present since before Python 3.9, I think.

Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

vision (https://github.com/pytorch/vision)
- torchvision/utils.py:270: error: Unused "type: ignore" comment  [unused-ignore]

beartype (https://github.com/beartype/beartype)
+ beartype/claw/_importlib/_clawimpload.py:447: error: Unused "type: ignore" comment  [unused-ignore]

@srittau srittau merged commit e07284f into python:main Apr 25, 2025
55 checks passed
@Sachaa-Thanasius Sachaa-Thanasius deleted the add-missing-source_to_code-param branch April 25, 2025 12:40
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
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.

2 participants