pyrefly-torch-stubs 1.4.0.dev1__tar.gz → 1.4.0.dev2__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 (30) hide show
  1. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/PKG-INFO +3 -3
  2. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/pyproject.toml +3 -3
  3. pyrefly_torch_stubs-1.4.0.dev2/test/README.md +8 -0
  4. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/__init__.pyi +1308 -419
  5. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/_shapes.pyi +581 -77
  6. pyrefly_torch_stubs-1.4.0.dev2/torch-stubs/distributions/__init__.pyi +144 -0
  7. pyrefly_torch_stubs-1.4.0.dev2/torch-stubs/distributions/constraints.pyi +48 -0
  8. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/distributions/transforms.pyi +21 -0
  9. pyrefly_torch_stubs-1.4.0.dev2/torch-stubs/fft.pyi +178 -0
  10. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/linalg.pyi +33 -3
  11. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/nn/__init__.pyi +163 -43
  12. pyrefly_torch_stubs-1.4.0.dev2/torch-stubs/nn/attention/__init__.pyi +26 -0
  13. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/nn/attention/flex_attention.pyi +10 -0
  14. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/nn/functional.pyi +167 -13
  15. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/nn/init.pyi +18 -1
  16. pyrefly_torch_stubs-1.4.0.dev2/torch-stubs/return_types.pyi +89 -0
  17. pyrefly_torch_stubs-1.4.0.dev1/torch-stubs/distributions/__init__.pyi +0 -68
  18. pyrefly_torch_stubs-1.4.0.dev1/torch-stubs/distributions/constraints.pyi +0 -15
  19. pyrefly_torch_stubs-1.4.0.dev1/torch-stubs/fft.pyi +0 -94
  20. pyrefly_torch_stubs-1.4.0.dev1/torch-stubs/nn/attention/__init__.pyi +0 -12
  21. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/LICENSE +0 -0
  22. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/README.md +0 -0
  23. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/_tensor.pyi +0 -0
  24. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/distributions/beta.pyi +0 -0
  25. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/distributions/categorical.pyi +0 -0
  26. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/distributions/transformed_distribution.pyi +0 -0
  27. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/nn/modules/__init__.pyi +0 -0
  28. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/nn/modules/module.pyi +0 -0
  29. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/torch-stubs/nn/parameter.pyi +0 -0
  30. {pyrefly_torch_stubs-1.4.0.dev1 → pyrefly_torch_stubs-1.4.0.dev2}/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.4.0.dev1
3
+ Version: 1.4.0.dev2
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/
@@ -32,8 +32,8 @@ Classifier: License :: OSI Approved :: MIT License
32
32
  Classifier: Programming Language :: Python
33
33
  Classifier: Programming Language :: Python :: 3
34
34
  Classifier: Typing :: Stubs Only
35
- Requires-Python: >=3.12
36
- Requires-Dist: pyrefly-shape-extensions==1.4.0.dev1
35
+ Requires-Python: >=3.10
36
+ Requires-Dist: pyrefly-shape-extensions==1.4.0.dev2
37
37
  Description-Content-Type: text/markdown
38
38
 
39
39
  # pyrefly-torch-stubs
@@ -6,9 +6,9 @@ build-backend = "hatchling.build"
6
6
  name = "pyrefly-torch-stubs"
7
7
  description = "PyTorch type stubs with tensor-shape tracking, maintained by Pyrefly"
8
8
  readme = "README.md"
9
- requires-python = ">=3.12"
9
+ requires-python = ">=3.10"
10
10
  license = { file = "LICENSE" }
11
- version = "1.4.0.dev1"
11
+ version = "1.4.0.dev2"
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.4.0.dev1",
21
+ "pyrefly-shape-extensions==1.4.0.dev2",
22
22
  ]
23
23
 
24
24
  [project.urls]
@@ -0,0 +1,8 @@
1
+ Tests directly in this directory run both statically and against Torch at runtime.
2
+ Static suites enable expectation checking, so every `# E:` marker must match a
3
+ Pyrefly error. Tests under `old/` remain static-only until they are migrated here.
4
+
5
+ Each test function outside a `TYPE_CHECKING` block is executed against the installed
6
+ Torch package. In particular, `assert_raises(ExpectedError)` is a runtime assertion:
7
+ the call must raise that exception class (or a subclass). An adjacent `# E:` marker
8
+ independently asserts that Pyrefly reports a static error for the same call.