pyrefly-torch-stubs 1.3.0.dev4__tar.gz → 1.3.2__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.
Files changed (26) hide show
  1. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/PKG-INFO +13 -2
  2. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/README.md +11 -0
  3. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/pyproject.toml +2 -2
  4. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/__init__.pyi +412 -65
  5. pyrefly_torch_stubs-1.3.2/torch-stubs/_tensor.pyi +10 -0
  6. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/linalg.pyi +19 -1
  7. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/nn/__init__.pyi +32 -35
  8. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/nn/functional.pyi +22 -0
  9. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/nn/init.pyi +11 -1
  10. pyrefly_torch_stubs-1.3.2/torch-stubs/nn/modules/__init__.pyi +10 -0
  11. pyrefly_torch_stubs-1.3.2/torch-stubs/nn/modules/module.pyi +10 -0
  12. pyrefly_torch_stubs-1.3.2/torch-stubs/nn/parameter.pyi +10 -0
  13. pyrefly_torch_stubs-1.3.0.dev4/torch-stubs/optim/__init__.pyi +0 -207
  14. pyrefly_torch_stubs-1.3.0.dev4/torch-stubs/quantization/__init__.pyi +0 -18
  15. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/LICENSE +0 -0
  16. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/_shapes.pyi +0 -0
  17. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/distributions/__init__.pyi +0 -0
  18. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/distributions/beta.pyi +0 -0
  19. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/distributions/categorical.pyi +0 -0
  20. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/distributions/constraints.pyi +0 -0
  21. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/distributions/transformed_distribution.pyi +0 -0
  22. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/distributions/transforms.pyi +0 -0
  23. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/fft.pyi +0 -0
  24. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/nn/attention/__init__.pyi +0 -0
  25. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/nn/attention/flex_attention.pyi +0 -0
  26. {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.3.2}/torch-stubs/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pyrefly-torch-stubs
3
- Version: 1.3.0.dev4
3
+ Version: 1.3.2
4
4
  Summary: PyTorch type stubs with tensor-shape tracking, maintained by Pyrefly
5
5
  Project-URL: homepage, https://pyrefly.org
6
6
  Project-URL: documentation, https://pyrefly.org/en/docs/
@@ -33,7 +33,7 @@ Classifier: Programming Language :: Python
33
33
  Classifier: Programming Language :: Python :: 3
34
34
  Classifier: Typing :: Stubs Only
35
35
  Requires-Python: >=3.12
36
- Requires-Dist: pyrefly-shape-extensions==1.3.0.dev4
36
+ Requires-Dist: pyrefly-shape-extensions==1.3.2
37
37
  Description-Content-Type: text/markdown
38
38
 
39
39
  # pyrefly-torch-stubs
@@ -46,3 +46,14 @@ runtime `torch` package without replacing or shadowing PyTorch itself.
46
46
 
47
47
  The package is versioned in lockstep with Pyrefly and depends on the matching
48
48
  `pyrefly-shape-extensions` package.
49
+
50
+ Static checks use the installed Torch package for modules that this package
51
+ intentionally leaves unshaped:
52
+
53
+ ```bash
54
+ python3 tensor-shapes/pyrefly-torch-stubs/run_pyrefly.py
55
+ ```
56
+
57
+ The runner uses `~/.tensor-shapes-venv` by default. Set
58
+ `$TENSOR_SHAPES_VENV` to select another virtualenv, or pass `--python` with an
59
+ interpreter from a virtualenv that has Torch installed.
@@ -8,3 +8,14 @@ runtime `torch` package without replacing or shadowing PyTorch itself.
8
8
 
9
9
  The package is versioned in lockstep with Pyrefly and depends on the matching
10
10
  `pyrefly-shape-extensions` package.
11
+
12
+ Static checks use the installed Torch package for modules that this package
13
+ intentionally leaves unshaped:
14
+
15
+ ```bash
16
+ python3 tensor-shapes/pyrefly-torch-stubs/run_pyrefly.py
17
+ ```
18
+
19
+ The runner uses `~/.tensor-shapes-venv` by default. Set
20
+ `$TENSOR_SHAPES_VENV` to select another virtualenv, or pass `--python` with an
21
+ interpreter from a virtualenv that has Torch installed.
@@ -8,7 +8,7 @@ description = "PyTorch type stubs with tensor-shape tracking, maintained by Pyre
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.12"
10
10
  license = { file = "LICENSE" }
11
- version = "1.3.0.dev4"
11
+ version = "1.3.2"
12
12
  keywords = ["typechecker", "typechecking", "stubs", "torch", "pytorch"]
13
13
  classifiers = [
14
14
  "Development Status :: 4 - Beta",
@@ -18,7 +18,7 @@ classifiers = [
18
18
  "Typing :: Stubs Only",
19
19
  ]
20
20
  dependencies = [
21
- "pyrefly-shape-extensions==1.3.0.dev4",
21
+ "pyrefly-shape-extensions==1.3.2",
22
22
  ]
23
23
 
24
24
  [project.urls]