Skip to content
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

Correctly passing kwargs in short_vectors #39848

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

edgarcosta
Copy link
Member

This fixes the bug in that I tested for.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

Copy link

github-actions bot commented Apr 1, 2025

Documentation preview for this PR (built with commit 1a41ce9; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@user202729
Copy link
Contributor

user202729 commented Apr 2, 2025

While the fix is correct, the test is incorrect — as you can see there is an identical test above and the behavior appears to be correct before the fix.

The reason being the thing is passed as a positional argument and the string "up_to_sign_flag" is considered True.

I suggest testing by A2.short_vectors(3, x=y) then test that the error message says "no parameter named x" or something.

Do add an explanation what you're testing for, link to this pull request.

@user202729
Copy link
Contributor

Documentation build is failing, please fix.

@edgarcosta
Copy link
Member Author

Thanks.
The documentation now builds and I wrote a better test.

vbraun pushed a commit to vbraun/sage that referenced this pull request Apr 3, 2025
This fixes the bug in that I tested for.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.

URL: sagemath#39848
Reported by: Edgar Costa
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Apr 4, 2025
sagemathgh-39848: Correctly passing kwargs in short_vectors
    
This fixes the bug in that I tested for.


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
    
URL: sagemath#39848
Reported by: Edgar Costa
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Apr 5, 2025
sagemathgh-39848: Correctly passing kwargs in short_vectors
    
This fixes the bug in that I tested for.


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
    
URL: sagemath#39848
Reported by: Edgar Costa
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Apr 7, 2025
sagemathgh-39848: Correctly passing kwargs in short_vectors
    
This fixes the bug in that I tested for.


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
    
URL: sagemath#39848
Reported by: Edgar Costa
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Apr 10, 2025
sagemathgh-39848: Correctly passing kwargs in short_vectors
    
This fixes the bug in that I tested for.


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
    
URL: sagemath#39848
Reported by: Edgar Costa
Reviewer(s):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants