Skip to content

Commit 2af3de6

Browse files
author
Release Manager
committed
gh-39509: Add a doctest for HomsetsCategory._make_named_class_key Follow-up to #39160 . ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. (no visible change, method is private.) ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #39509 Reported by: user202729 Reviewer(s):
2 parents d8b7cdf + 2393565 commit 2af3de6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage/categories/homsets.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ def _make_named_class_key(self, name):
163163
164164
- :meth:`CategoryWithParameters`
165165
- :meth:`CategoryWithParameters._make_named_class_key`
166+
167+
TESTS::
168+
169+
sage: ModulesWithBasis(ZZ).Homsets()._make_named_class_key('parent_class')
170+
<class 'sage.categories.modules_with_basis.ModulesWithBasis.parent_class'>
166171
"""
167172
return getattr(self.base_category(), name)
168173

0 commit comments

Comments
 (0)