Skip to content

Commit 10814fc

Browse files
authored
Merge pull request #91 from teto/fix_check
Additionnal check
2 parents 476c7d8 + bdca0cb commit 10814fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitmath/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Bitmath(object):
157157
"""The base class for all the other prefix classes"""
158158

159159
# All the allowed input types
160-
valid_types = (int, float)
160+
valid_types = (int, float, numbers.Integral)
161161

162162
def __init__(self, value=0, bytes=None, bits=None):
163163
"""Instantiate with `value` by the unit, in plain bytes, or

0 commit comments

Comments
 (0)