Open
Description
Steps To Reproduce
The signature of the method sage.categories.enumerated_sets.EnumeratedSets.ParentMethods.map
is map(self, f, name=None, *, is_injective=True)
, but the documentation shows map(f, name, is_injective=None)
. (See this doc page.)
Expected Behavior
The documentation should show the correct signature of the method.
Actual Behavior
There are two problems with the signature that is presented in the documentation:
- The default value for the
name
argument is erroneously given tois_injective
instead. - There is no indication that
is_injective
is a keyword-only argument.
Additional Information
The problems are not unique to this method -- they also show up in the documentation of other methods that have a keyword-only argument, such as sage.combinat.designs.bibd.BalancedIncompleteBlockDesign.arc. It appears to me that sphinx/autodoc is shifting the default values one step to the right.
Environment
- OS: any(?)
- Sage Version: 10.5 (but probably not important)
Checklist
- I have searched the existing issues for a bug report that matches the one I want to file, without success.
- I have read the documentation and troubleshoot guide