-
Notifications
You must be signed in to change notification settings - Fork 0
Add backward-compatible add_note helper for Python <3.11 #2
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
base: master
Are you sure you want to change the base?
Conversation
…xcadd-note-with-add-note
Co-authored-by: ev-br <2133832+ev-br@users.noreply.github.com>
Co-authored-by: ev-br <2133832+ev-br@users.noreply.github.com>
|
@copilot Please test your the PR with python 3.10, in addition to the existing GH workflow runs |
Co-authored-by: ev-br <2133832+ev-br@users.noreply.github.com>
Added Python 3.10 to the test matrix in commit d942809. The GitHub workflow will now test on Python 3.10, 3.12, and 3.13. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot Great. Please send your patch as pull request to upstream at data-apis/array-api-tests |
I don't have the necessary permissions to create a PR directly to the upstream repository (data-apis/array-api-tests). The changes are ready in the gh pr create --repo data-apis/array-api-tests \
--head ev-br:copilot/replace-excadd-note-with-add-note \
--base master \
--title "Add backward-compatible add_note helper for Python <3.11"Or via the GitHub web interface by visiting: data-apis/array-api-tests@master...ev-br:array-api-tests:copilot/replace-excadd-note-with-add-note |
Replace exc.add_note(repro_snippet) with add_note helper function
Summary
This PR implements a backward-compatible
add_notehelper function to replace direct calls toexc.add_note(), which is only available in Python 3.11+. The helper function provides compatibility for older Python versions while maintaining the same functionality.Changes Completed
Testing
Security Summary
No security vulnerabilities were introduced by these changes. CodeQL analysis completed with 0 alerts.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.