Skip to content

Conversation

fchapoton
Copy link
Contributor

📚 Description

This fixes most E301 warnings, except 2 problematic ones relating to strange new syntax for code typing

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • 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 accordingly.

⌛ Dependencies

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only a few minor remarks.

@@ -964,19 +963,22 @@ def sum_by_coefficients_with(self, right):
# raise TypeError, "Oh no! The multiplier cannot be coerced into the base ring of the quadratic form. =("
#
# return QuadraticForm(self.base_ring(), self.dim(), [c * self.__coeffs[i] for i in range(len(self.__coeffs))])
# =========================================================================================================================
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this change in view of the bloc of commented code.

coercible to the base ring of the quadratic form. If a vector
coercible to the base ring of the quadratic form.

If a vector
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could align this bloc in 80 columns mode

@@ -6643,6 +6643,7 @@ def reduction_at(p):
return (H_q)
#<-------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it a problem to let this line without space after # ?

@@ -6727,6 +6728,7 @@ def test_with_T(R):
return xs
#<-------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question here

@github-actions
Copy link

Documentation preview for this PR (built with commit dce64d6) is ready! 🎉

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@fchapoton
Copy link
Contributor Author

Merci beaucoup, David.

@vbraun vbraun merged commit 02ab700 into sagemath:develop Jun 21, 2023
@fchapoton fchapoton deleted the fixing_most_E301 branch July 16, 2023 19:25
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.

4 participants