Skip to content

Conversation

@AlexWaygood
Copy link
Member

  • Adjust wording: the onerror parameter is no longer expected to be removed in Python 3.14
  • Fix it so that type checkers only emit an error if an argument is actually passed for the onerror parameter. If no argument is passed, there's no need for type checkers to emit a diagnostic.

Fixes#12103

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittausrittau merged commit 7fc9d65 into python:mainJun 8, 2024
@AlexWaygoodAlexWaygood deleted the shutil-false-pos branch June 8, 2024 19:28
@Avasam
Copy link
Collaborator

Thanks!

Sign up for freeto 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.

False positive for shutil.rmtree for python 3.12

3 participants

@AlexWaygood@Avasam@srittau