Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Commit

Permalink
Fix bug where dtype was being set to None (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Dec 6, 2018
1 parent c2c5d16 commit c8ed53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zappy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def _new(self, **kwargs):
out = kwargs.get("out")
obj = out if out else cp.copy(self)
for key, value in kwargs.items():
if key != "out":
if key != "out" and not (key == "dtype" and value is None):
setattr(obj, key, value)
return obj

Expand Down

0 comments on commit c8ed53c

Please sign in to comment.