pyrefly-torch-stubs 1.1.1__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyrefly-torch-stubs
3
+ Version: 1.1.1
4
+ Summary: PyTorch type stubs with tensor-shape tracking, maintained by Pyrefly
5
+ Project-URL: homepage, https://pyrefly.org
6
+ Project-URL: documentation, https://pyrefly.org/en/docs/
7
+ License: MIT License
8
+
9
+ Copyright (c) Meta Platforms, Inc. and affiliates.
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+ License-File: LICENSE
29
+ Keywords: pytorch,stubs,torch,typechecker,typechecking
30
+ Classifier: Development Status :: 4 - Beta
31
+ Classifier: License :: OSI Approved :: MIT License
32
+ Classifier: Programming Language :: Python
33
+ Classifier: Programming Language :: Python :: 3
34
+ Classifier: Typing :: Stubs Only
35
+ Requires-Python: >=3.12
36
+ Requires-Dist: pyrefly-shape-extensions==1.1.1
37
+ Description-Content-Type: text/markdown
38
+
39
+ # pyrefly-torch-stubs
40
+
41
+ PyTorch type stubs with tensor shape information for Pyrefly.
42
+
43
+ This package is a PEP 561 stub-only distribution. It installs the
44
+ `torch-stubs` stub package so Pyrefly can discover shape-aware stubs for the
45
+ runtime `torch` package without replacing or shadowing PyTorch itself.
46
+
47
+ The package is versioned in lockstep with Pyrefly and depends on the matching
48
+ `pyrefly-shape-extensions` package.
@@ -0,0 +1,10 @@
1
+ # pyrefly-torch-stubs
2
+
3
+ PyTorch type stubs with tensor shape information for Pyrefly.
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.
8
+
9
+ The package is versioned in lockstep with Pyrefly and depends on the matching
10
+ `pyrefly-shape-extensions` package.
@@ -0,0 +1,32 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "pyrefly-torch-stubs"
7
+ description = "PyTorch type stubs with tensor-shape tracking, maintained by Pyrefly"
8
+ readme = "README.md"
9
+ requires-python = ">=3.12"
10
+ license = { file = "LICENSE" }
11
+ version = "1.1.1"
12
+ keywords = ["typechecker", "typechecking", "stubs", "torch", "pytorch"]
13
+ classifiers = [
14
+ "Development Status :: 4 - Beta",
15
+ "License :: OSI Approved :: MIT License",
16
+ "Programming Language :: Python",
17
+ "Programming Language :: Python :: 3",
18
+ "Typing :: Stubs Only",
19
+ ]
20
+ dependencies = [
21
+ "pyrefly-shape-extensions==1.1.1",
22
+ ]
23
+
24
+ [project.urls]
25
+ homepage = "https://pyrefly.org"
26
+ documentation = "https://pyrefly.org/en/docs/"
27
+
28
+ [tool.hatch.build.targets.wheel]
29
+ only-include = ["torch-stubs"]
30
+
31
+ [tool.hatch.build.targets.sdist]
32
+ include = ["torch-stubs/", "README.md", "LICENSE"]