diff options
| author | Eric Wieser <wieser.eric@gmail.com> | 2018-09-20 23:21:38 -0700 |
|---|---|---|
| committer | Eric Wieser <wieser.eric@gmail.com> | 2018-09-20 23:24:40 -0700 |
| commit | bb72516d9227d8447d9b39e5ab56c17ccdc639ac (patch) | |
| tree | 0b991fc273100fd935a5e5c47d39caac72045913 /numpy | |
| parent | 7248c1d8ccfa3643a9286c46bd134b2e113ba85f (diff) | |
| download | numpy-bb72516d9227d8447d9b39e5ab56c17ccdc639ac.tar.gz | |
MAINT: Add a RuntimeError to prove `_typestr` is unused
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/numerictypes.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/numerictypes.py b/numpy/core/numerictypes.py index 1cb32a0ec..60d2d88ec 100644 --- a/numpy/core/numerictypes.py +++ b/numpy/core/numerictypes.py @@ -774,6 +774,7 @@ for key in _sctype2char_dict.keys(): for key, val in _typestr.items(): if val not in sctypeDict: sctypeDict[val] = key + raise RuntimeError('{!r}: {!r} was not in sctype'.format(key, val)) # Add additional strings to the sctypeDict |
