Merge pull request #2665 from jettero/patch-1

integral? that took me a while to figure out
This commit is contained in:
Benoit Chesneau 2022-08-06 18:33:23 +02:00 committed by GitHub
commit 053e15c05c
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):
if not isinstance(size, int):
raise TypeError("size must be an integral type")
raise TypeError("size must be an integer type")
if size < 0:
raise ValueError("Size must be positive.")
if size == 0: