Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 79250c6

Browse files
committed
Add documentation of Integer index
1 parent 12be2d9 commit 79250c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sage/sets/family.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ def __setstate__(self, state):
13461346
class EnumeratedFamily(LazyFamily):
13471347
r"""
13481348
:class:`EnumeratedFamily` turns an enumerated set ``c`` into a family
1349-
indexed by the set `\{0,\dots, |c|-1\}`.
1349+
indexed by the set `\{0,\dots, |c|-1\}` or ``ZZ``.
13501350
13511351
Instances should be created via the :func:`Family` factory. See its
13521352
documentation for examples and tests.
@@ -1374,6 +1374,8 @@ def __init__(self, enumset):
13741374
True
13751375
sage: Family(Permutations()).keys()
13761376
Non negative integers
1377+
sage: type(Family(ZZ))
1378+
<class 'sage.sets.family.EnumeratedFamily_with_category'>
13771379
"""
13781380
if enumset.cardinality() == Infinity:
13791381
baseset = NonNegativeIntegers()

0 commit comments

Comments
 (0)