integral? that took me a while to figure out

integral: "In mathematics, an integral assigns numbers to functions in a way that describes displacement, area, volume, and other concepts that arise by combining infinitesimal data."

integer: an int type
This commit is contained in:
Paul Miller 2021-10-08 21:04:12 -04:00 committed by GitHub
parent ff58e0c6da
commit e3b0b1f91a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ class ChunkedReader(object):
def read(self, size): def read(self, size):
if not isinstance(size, int): if not isinstance(size, int):
raise TypeError("size must be an integral type") raise TypeError("size must be an integer type")
if size < 0: if size < 0:
raise ValueError("Size must be positive.") raise ValueError("Size must be positive.")
if size == 0: if size == 0: