Skip to content

Commit

Permalink
Ignore bug in typeshed for array.array
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Oct 14, 2017
1 parent 7017fa6 commit cde4956
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hypothesis/internal/conjecture/floats.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ def exponent_key(e):


ENCODING_TABLE = array('H', sorted(hrange(MAX_EXPONENT + 1), key=exponent_key))
DECODING_TABLE = array('H', [0]) * len(ENCODING_TABLE)
DECODING_TABLE = array('H', [0]) * len(ENCODING_TABLE) # type: ignore
# https://github.com/python/mypy/issues/3956

for i, b in enumerate(ENCODING_TABLE):
for i, b in enumerate(ENCODING_TABLE): # type: ignore
DECODING_TABLE[b] = i

del i, b
Expand Down

0 comments on commit cde4956

Please sign in to comment.