diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2020-12-11 21:45:00 +0100 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2020-12-22 17:24:04 +0100 |
commit | 4b27d3a54d7c8dd4d2ae502f85a15d8bc529ba86 (patch) | |
tree | 5b4cd553b368f67176475f5171851c09cc1043a3 | |
parent | ba4ad04b356aac976cf7940d8885c66cdab0b706 (diff) | |
download | numpy-4b27d3a54d7c8dd4d2ae502f85a15d8bc529ba86.tar.gz |
Update mypy_plugin.py
-rw-r--r-- | numpy/typing/mypy_plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/typing/mypy_plugin.py b/numpy/typing/mypy_plugin.py index 505a01a0b..bdd5c50f3 100644 --- a/numpy/typing/mypy_plugin.py +++ b/numpy/typing/mypy_plugin.py @@ -32,7 +32,7 @@ def _get_precision_dict() -> t.Dict[str, str]: ] ret = {} for name, typ in names: - n: int = 8 * typ().dtype.alignment + n: int = 8 * typ().dtype.itemsize ret[f'numpy.typing._nbit.{name}'] = f"numpy._{n}Bit" return ret |