Skip to content

Commit

Permalink
gh-35224: fixing some :class:, :meth: roles
Browse files Browse the repository at this point in the history
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes #1234" use "Introduce new method to
calculate 1+1"
-->
### 📚 Description

This just fixes two wrong uses of the class and meth roles in the doc,

<!-- Describe your changes here in detail -->
<!-- Why is this change required? What problem does it solve? -->
<!-- If it resolves an open issue, please link to the issue here. For
example "Closes #1337" -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->

- [x] I have made sure that the title is self-explanatory and the
description concisely explains the PR.
- [ ] I have linked an issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies
<!-- List all open pull requests that this PR logically depends on -->
<!--
- #xyz: short description why this is a dependency
- #abc: ...
-->
    
URL: #35224
Reported by: Frédéric Chapoton
Reviewer(s): roed314
  • Loading branch information
Release Manager committed Mar 31, 2023
2 parents 9e46c9a + 68fde19 commit 03e1c31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/sage/combinat/integer_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ class IntegerVectors(Parent, metaclass=ClasscallMetaclass):
.. SEEALSO::
:class: `sage.combinat.integer_lists.invlex.IntegerListsLex`.
:class:`sage.combinat.integer_lists.invlex.IntegerListsLex`
"""
@staticmethod
def __classcall_private__(cls, n=None, k=None, **kwargs):
Expand Down
11 changes: 7 additions & 4 deletions src/sage/modular/modform/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,27 +174,30 @@ def level(self):
"""
return self.parent().level()

def is_homogeneous(self):
def is_homogeneous(self) -> bool:
"""
Return true. For compatibility with elements of a graded modular forms ring.
Return ``True``.
For compatibility with elements of a graded modular forms ring.
An alias of this method is ``is_modular_form``.
.. SEEALSO::
:meth: `sage.modular.modform.element.GradedModularFormElement.is_homogeneous`
:meth:`sage.modular.modform.element.GradedModularFormElement.is_homogeneous`
EXAMPLES::
sage: ModularForms(1,12).0.is_homogeneous()
True
"""
return True

is_modular_form = is_homogeneous # alias

def _repr_(self):
"""
Return the string representation of self.
Return the string representation of ``self``.
EXAMPLES::
Expand Down

0 comments on commit 03e1c31

Please sign in to comment.