pyrefly-torch-stubs 1.5.0.dev1__tar.gz → 1.6.0.dev1__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 (27) hide show
  1. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/PKG-INFO +6 -5
  2. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/README.md +4 -3
  3. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/pyproject.toml +5 -2
  4. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/__init__.pyi +528 -95
  5. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/_shapes.pyi +24 -25
  6. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/__init__.pyi +38 -2
  7. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/linalg.pyi +5 -1
  8. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/__init__.pyi +87 -68
  9. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/attention/__init__.pyi +1 -0
  10. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/attention/flex_attention.pyi +2 -0
  11. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/functional.pyi +77 -2
  12. pyrefly_torch_stubs-1.6.0.dev1/torch-stubs/nn/modules/batchnorm.pyi +15 -0
  13. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/return_types.pyi +15 -13
  14. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/LICENSE +0 -0
  15. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/test/README.md +0 -0
  16. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/_tensor.pyi +0 -0
  17. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/beta.pyi +0 -0
  18. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/categorical.pyi +0 -0
  19. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/constraints.pyi +0 -0
  20. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/transformed_distribution.pyi +0 -0
  21. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/transforms.pyi +0 -0
  22. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/fft.pyi +0 -0
  23. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/init.pyi +0 -0
  24. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/modules/__init__.pyi +0 -0
  25. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/modules/module.pyi +0 -0
  26. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/parameter.pyi +0 -0
  27. {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/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.5.0.dev1
3
+ Version: 1.6.0.dev1
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.10
36
- Requires-Dist: pyrefly-shape-extensions==1.5.0.dev1
36
+ Requires-Dist: pyrefly-shape-extensions==1.6.0.dev1
37
37
  Requires-Dist: torch
38
38
  Description-Content-Type: text/markdown
39
39
 
@@ -41,9 +41,10 @@ Description-Content-Type: text/markdown
41
41
 
42
42
  PyTorch type stubs with tensor shape information for Pyrefly.
43
43
 
44
- This package is a PEP 561 stub-only distribution. It installs the
45
- `torch-stubs` stub package so Pyrefly can discover shape-aware stubs for the
46
- runtime `torch` package without replacing or shadowing PyTorch itself.
44
+ This package installs `torch-shape-stubs`, a Pyrefly-specific stub package for
45
+ runtime `torch`. Pyrefly discovers it by default; set
46
+ `use-shape-comments-and-stubs = false` to opt out. Other type checkers ignore these
47
+ stubs and continue using PyTorch's ordinary types.
47
48
 
48
49
  The package is versioned in lockstep with Pyrefly and depends on the matching
49
50
  `pyrefly-shape-extensions` package. Installing it also installs `torch`, which
@@ -2,9 +2,10 @@
2
2
 
3
3
  PyTorch type stubs with tensor shape information for Pyrefly.
4
4
 
5
- This package is a PEP 561 stub-only distribution. It installs the
6
- `torch-stubs` stub package so Pyrefly can discover shape-aware stubs for the
7
- runtime `torch` package without replacing or shadowing PyTorch itself.
5
+ This package installs `torch-shape-stubs`, a Pyrefly-specific stub package for
6
+ runtime `torch`. Pyrefly discovers it by default; set
7
+ `use-shape-comments-and-stubs = false` to opt out. Other type checkers ignore these
8
+ stubs and continue using PyTorch's ordinary types.
8
9
 
9
10
  The package is versioned in lockstep with Pyrefly and depends on the matching
10
11
  `pyrefly-shape-extensions` package. Installing it also installs `torch`, which
@@ -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.10"
10
10
  license = { file = "LICENSE" }
11
- version = "1.5.0.dev1"
11
+ version = "1.6.0.dev1"
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.5.0.dev1",
21
+ "pyrefly-shape-extensions==1.6.0.dev1",
22
22
  "torch",
23
23
  ]
24
24
 
@@ -29,5 +29,8 @@ documentation = "https://pyrefly.org/en/docs/"
29
29
  [tool.hatch.build.targets.wheel]
30
30
  only-include = ["torch-stubs"]
31
31
 
32
+ [tool.hatch.build.targets.wheel.sources]
33
+ "torch-stubs" = "torch-shape-stubs"
34
+
32
35
  [tool.hatch.build.targets.sdist]
33
36
  include = ["torch-stubs/", "README.md", "LICENSE"]