nshutils 0.11.1__py3-none-any.whl → 0.11.2__py3-none-any.whl

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.11.1
3
+ Version: 0.11.2
4
4
  Summary:
5
5
  Author: Nima Shoghi
6
6
  Author-email: nimashoghi@gmail.com
@@ -46,10 +46,10 @@ typecheck_this_module()
46
46
  You can also use the `tassert` function to assert that a value is of a certain type:
47
47
 
48
48
  ```python
49
- from nshutils.typecheck import tassert, Float32
49
+ import nshutils.typecheck as tc
50
50
 
51
- def my_function(x: Float32):
52
- tassert(Float32, x)
51
+ def my_function(x: tc.Float[torch.Tensor, "bsz seq len"]) -> tc.Float[torch.Tensor, "bsz seq len"]:
52
+ tc.tassert(tc.Float[torch.Tensor, "bsz seq len"], x)
53
53
  ...
54
54
  ```
55
55
 
@@ -6,6 +6,6 @@ nshutils/collections.py,sha256=EE_qLd-LrsX5lsyk9GSKh03Q8bhn9CHB3jiEeNj4uF4,5197
6
6
  nshutils/logging.py,sha256=tL-6XvdvJEEr7bje9DSmUBpm6pnJS9XG_1fuw3U1eME,2573
7
7
  nshutils/snoop.py,sha256=2RNlOcBFnCUyOsfGlbBb8FwSGq03hxfypMfqMA0No-A,7356
8
8
  nshutils/typecheck.py,sha256=_KtfinRy9A0Dgq78kN5MGGrefvb6jn2tGY6svdLEBAs,4915
9
- nshutils-0.11.1.dist-info/METADATA,sha256=5iwp2vgmU_cBK3D2D5eJFxA5RjFhAF-MVl8KprCWIhw,3803
10
- nshutils-0.11.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
11
- nshutils-0.11.1.dist-info/RECORD,,
9
+ nshutils-0.11.2.dist-info/METADATA,sha256=mUToAJkUL0sZBFjA502Qusrt-tJaCKmnlzLQqYQt1-A,3891
10
+ nshutils-0.11.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
11
+ nshutils-0.11.2.dist-info/RECORD,,