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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

using less isinstance(..., Ring) #36922

Merged
merged 2 commits into from
Jan 14, 2024

Conversation

fchapoton
Copy link
Contributor

in favour of the more categorical ... in Rings()

also fixing a few pep8 details in passing but not too much

馃摑 Checklist

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

Copy link

Documentation preview for this PR (built with commit 1272029; changes) is ready! 馃帀

if category is None:
homset_cat = A.category()
else:
homset_cat = category
# Remark: Ring.__init__ will automatically form the join
# Remark: Parent.__init__ will automatically form the join
# of the category of rings and of homset_cat
Copy link
Member

Choose a reason for hiding this comment

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

does it? or is that done by Endsets()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, that's the line Parent.__init __ that does the job. Once done, the categories contains that of "rings". The next line does not change anything to the list of categories.

Copy link
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

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

LGTM.

@vbraun vbraun merged commit cf3c930 into sagemath:develop Jan 14, 2024
18 of 22 checks passed
@mkoeppe mkoeppe added this to the sage-10.3 milestone Jan 14, 2024
@fchapoton fchapoton deleted the less_isinstance_ring branch January 15, 2024 07:54
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.

None yet

4 participants