Skip to content

Commit 132f4e6

Browse files
committed
-
1 parent be00bb9 commit 132f4e6

File tree

1 file changed

+3
-3
lines changed
  • source_py3/python_toolbox/math_tools

1 file changed

+3
-3
lines changed

source_py3/python_toolbox/math_tools/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ def __instancecheck__(self, thing):
1313
return isinstance(thing, numbers.Integral) or (thing in infinities)
1414
class PossiblyInfiniteIntegral(numbers.Number,
1515
metaclass=_PossiblyInfiniteIntegralType):
16-
pass
16+
'''An integer or infinity (including negative infinity.)'''
1717

1818
class _PossiblyInfiniteRealType(abc.ABCMeta):
1919
def __instancecheck__(self, thing):
2020
return isinstance(thing, numbers.Real) or (thing in infinities)
2121
class PossiblyInfiniteReal(numbers.Number,
2222
metaclass=_PossiblyInfiniteRealType):
23-
pass
23+
'''A real number or infinity (including negative infinity.)'''
2424

2525
class _NaturalType(abc.ABCMeta):
2626
def __instancecheck__(self, thing):
2727
return isinstance(thing, numbers.Integral) and thing >= 1
2828
class Natural(numbers.Number,
2929
metaclass=_NaturalType):
30-
pass
30+
'''A natural number, meaning a positive integer (0 not included.)'''

0 commit comments

Comments
 (0)