File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
source_py3/python_toolbox/math_tools Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,18 @@ def __instancecheck__(self, thing):
1313 return isinstance (thing , numbers .Integral ) or (thing in infinities )
1414class PossiblyInfiniteIntegral (numbers .Number ,
1515 metaclass = _PossiblyInfiniteIntegralType ):
16- pass
16+ '''An integer or infinity (including negative infinity.)'''
1717
1818class _PossiblyInfiniteRealType (abc .ABCMeta ):
1919 def __instancecheck__ (self , thing ):
2020 return isinstance (thing , numbers .Real ) or (thing in infinities )
2121class PossiblyInfiniteReal (numbers .Number ,
2222 metaclass = _PossiblyInfiniteRealType ):
23- pass
23+ '''A real number or infinity (including negative infinity.)'''
2424
2525class _NaturalType (abc .ABCMeta ):
2626 def __instancecheck__ (self , thing ):
2727 return isinstance (thing , numbers .Integral ) and thing >= 1
2828class Natural (numbers .Number ,
2929 metaclass = _NaturalType ):
30- pass
30+ '''A natural number, meaning a positive integer (0 not included.)'''
You can’t perform that action at this time.
0 commit comments