diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-11-13 06:11:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 06:11:23 -0700 |
commit | b64e418cc746adf86a7f13be7dc5005c8cedcb17 (patch) | |
tree | 8ac1b8aa176640505ffc866a7acad07254e23fcd /numpy/core | |
parent | dc560bd3f3669ad7c6ef3a280a209ca177b2f624 (diff) | |
download | numpy-b64e418cc746adf86a7f13be7dc5005c8cedcb17.tar.gz |
STY: Minor style fixups.
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/_dtype_ctypes.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/numpy/core/_dtype_ctypes.py b/numpy/core/_dtype_ctypes.py index 58c1854bd..b6e4ddf9e 100644 --- a/numpy/core/_dtype_ctypes.py +++ b/numpy/core/_dtype_ctypes.py @@ -53,13 +53,11 @@ def _from_ctypes_structure(t): offsets.append(current_offset) current_offset += ctypes.sizeof(ftyp) - return np.dtype(dict( formats=formats, offsets=offsets, names=names, - itemsize=ctypes.sizeof(t) - )) + itemsize=ctypes.sizeof(t))) else: fields = [] for fname, ftyp in t._fields_: |