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.
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/PKG-INFO +6 -5
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/README.md +4 -3
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/pyproject.toml +5 -2
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/__init__.pyi +528 -95
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/_shapes.pyi +24 -25
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/__init__.pyi +38 -2
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/linalg.pyi +5 -1
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/__init__.pyi +87 -68
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/attention/__init__.pyi +1 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/attention/flex_attention.pyi +2 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/functional.pyi +77 -2
- pyrefly_torch_stubs-1.6.0.dev1/torch-stubs/nn/modules/batchnorm.pyi +15 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/return_types.pyi +15 -13
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/LICENSE +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/test/README.md +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/_tensor.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/beta.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/categorical.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/constraints.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/transformed_distribution.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/distributions/transforms.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/fft.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/init.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/modules/__init__.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/modules/module.pyi +0 -0
- {pyrefly_torch_stubs-1.5.0.dev1 → pyrefly_torch_stubs-1.6.0.dev1}/torch-stubs/nn/parameter.pyi +0 -0
- {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.
|
|
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.
|
|
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
|
|
45
|
-
`torch
|
|
46
|
-
|
|
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
|
|
6
|
-
`torch
|
|
7
|
-
|
|
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.
|
|
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.
|
|
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"]
|