Skip to content

Commit

Permalink
Dtype name lists are now tuples
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Soklaski <ry26099@mit.edu>
  • Loading branch information
honno and rsokl committed Sep 10, 2021
1 parent 72dd427 commit 520d018
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hypothesis-python/src/hypothesis/extra/array_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
]


INT_NAMES = ["int8", "int16", "int32", "int64"]
UINT_NAMES = ["uint8", "uint16", "uint32", "uint64"]
INT_NAMES = ("int8", "int16", "int32", "int64")
UINT_NAMES = ("uint8", "uint16", "uint32", "uint64")
ALL_INT_NAMES = INT_NAMES + UINT_NAMES
FLOAT_NAMES = ["float32", "float64"]
FLOAT_NAMES = ("float32", "float64")
NUMERIC_NAMES = ALL_INT_NAMES + FLOAT_NAMES
DTYPE_NAMES = ["bool"] + NUMERIC_NAMES
DTYPE_NAMES = ("bool",) + NUMERIC_NAMES

DataType = TypeVar("DataType")

Expand Down

0 comments on commit 520d018

Please sign in to comment.