mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 12:12:54 +01:00
Use a better docstring for NonNegativeInteger.
This commit is contained in:
parent
ff88488420
commit
8cc4a98d9e
@ -332,7 +332,7 @@ class Integer(Value):
|
|||||||
self.error()
|
self.error()
|
||||||
|
|
||||||
class NonNegativeInteger(Integer):
|
class NonNegativeInteger(Integer):
|
||||||
"""Value must not be negative."""
|
"""Value must be a non-negative integer."""
|
||||||
def setValue(self, v):
|
def setValue(self, v):
|
||||||
if v < 0:
|
if v < 0:
|
||||||
self.error()
|
self.error()
|
||||||
|
Loading…
Reference in New Issue
Block a user