nshutils 0.6.0__tar.gz → 0.6.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nshutils
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary:
5
5
  Author: Nima Shoghi
6
6
  Author-email: nimashoghi@gmail.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "nshutils"
3
- version = "0.6.0"
3
+ version = "0.6.1"
4
4
  description = ""
5
5
  authors = ["Nima Shoghi <nimashoghi@gmail.com>"]
6
6
  readme = "README.md"
@@ -33,7 +33,7 @@ try:
33
33
  FLOATING_POINTS = set()
34
34
  for i in ["float", "double", "half", "complex128", "complex32", "complex64"]:
35
35
  # older version of PyTorch do not have complex dtypes
36
- if torch is not None and not hasattr(torch, i):
36
+ if torch is None or not hasattr(torch, i):
37
37
  continue
38
38
  FLOATING_POINTS.add(getattr(torch, i))
39
39
 
File without changes