Skip to content

Conversation

fchapoton
Copy link
Contributor

📚 Description

Various details and tweaks in the code and doc of set_partition.py

in order to reach full pep8 and better pylint compliance

📝 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

for opt in kwargs:
self._latex_options[opt] = kwargs[opt]
for opt, value in kwargs.items():
self._latex_options[opt] = value
Copy link
Contributor

Choose a reason for hiding this comment

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

is this not just self._latex_options.update(kwargs)?

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 20, 2023

Branch seems to be on top of #35542?

@fchapoton fchapoton force-pushed the cleaning_set_partition branch from 1f0f95b to 71e509a Compare April 20, 2023 05:49
@github-actions
Copy link

Documentation preview for this PR is ready! 🎉
Built with commit: 71e509a

@@ -3197,7 +3172,7 @@ def cardinality(self):
sage: stirling_number2(5,3)
25
"""
return stirling_number2(len(self._set), self._k)
return stirling2(len(self._set), self._k)
Copy link
Contributor

Choose a reason for hiding this comment

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

why is that better than stirling_number2?

@mantepse
Copy link
Contributor

In case you have time: #29996 is, for me, a serious problem.

@vbraun vbraun merged commit eca2a77 into sagemath:develop Apr 23, 2023
@fchapoton fchapoton deleted the cleaning_set_partition branch July 16, 2023 19:07
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