Skip to content

Conversation

fchapoton
Copy link
Contributor

fix pycodestyle warnings E228 and E225 in rings

done using autopep8

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.

@dcoudert
Copy link
Contributor

dcoudert commented Sep 4, 2023

Have you checked possible conflicts with #36152 ?

v = []
return Sequence(v, universe=self, check=False, immutable=True, cr=v!=[])
return Sequence(v, universe=self, check=False, immutable=True, cr=v != [])

Copy link
Collaborator

Choose a reason for hiding this comment

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

cr=(v != []) or cr=(v!=[])may be better than inserting spaces.

v = [self(f, check=False) for f in D_abs.Hom(C).list()]
return Sequence(v, universe=self, check=False, immutable=True, cr=v!=[])
return Sequence(v, universe=self, check=False, immutable=True, cr=v != [])

Copy link
Collaborator

Choose a reason for hiding this comment

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

The same here.

w = C.zeta(n)
v = [self([w**k], check=False) for k in Zmod(n) if k.is_unit()]
return Sequence(v, universe=self, check=False, immutable=True, cr=v!=[])
return Sequence(v, universe=self, check=False, immutable=True, cr=v != [])
Copy link
Collaborator

Choose a reason for hiding this comment

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

The same here.

ans.append((K, from_K, to_K))
ans = Sequence(ans, immutable=True, cr=ans!=[])
ans = Sequence(ans, immutable=True, cr=ans != [])
return ans
Copy link
Collaborator

Choose a reason for hiding this comment

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

The same comment above.


self.__embeddings[K] = Sequence(v, cr=v!=[], immutable=True, check=False, universe=self.Hom(K))
self.__embeddings[K] = Sequence(v, cr=v != [], immutable=True, check=False, universe=self.Hom(K))
return self.__embeddings[K]
Copy link
Collaborator

Choose a reason for hiding this comment

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

The same here.

@kwankyu
Copy link
Collaborator

kwankyu commented Sep 5, 2023

Otherwise, lgtm.

@github-actions
Copy link

github-actions bot commented Sep 5, 2023

Documentation preview for this PR (built with commit 39dfddd; changes) is ready! 🎉

Copy link
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

Thanks.

@vbraun vbraun merged commit 15a0566 into sagemath:develop Sep 10, 2023
@fchapoton fchapoton deleted the E228_E225_in_rings branch September 11, 2023 06:20
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.

5 participants