mirror of
https://github.com/wassname/jaxtyping.git
synced 2026-09-10 12:14:04 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a19149d23d | ||
|
|
0c596ff373 |
@@ -115,7 +115,6 @@ else:
|
|||||||
Int32 as Int32,
|
Int32 as Int32,
|
||||||
Int64 as Int64,
|
Int64 as Int64,
|
||||||
Integer as Integer,
|
Integer as Integer,
|
||||||
Key as Key,
|
|
||||||
Num as Num,
|
Num as Num,
|
||||||
Shaped as Shaped,
|
Shaped as Shaped,
|
||||||
UInt as UInt,
|
UInt as UInt,
|
||||||
@@ -125,6 +124,9 @@ else:
|
|||||||
UInt64 as UInt64,
|
UInt64 as UInt64,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if has_jax:
|
||||||
|
from .array_types import Key as Key
|
||||||
|
|
||||||
|
|
||||||
# Now import PyTree
|
# Now import PyTree
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "jaxtyping"
|
name = "jaxtyping"
|
||||||
version = "0.2.17"
|
version = "0.2.19"
|
||||||
description = "Type annotations and runtime checking for shape and dtype of JAX arrays, and PyTrees."
|
description = "Type annotations and runtime checking for shape and dtype of JAX arrays, and PyTrees."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python ="~=3.8"
|
requires-python ="~=3.8"
|
||||||
@@ -24,7 +24,7 @@ classifiers = [
|
|||||||
]
|
]
|
||||||
urls = {repository = "https://github.com/google/jaxtyping" }
|
urls = {repository = "https://github.com/google/jaxtyping" }
|
||||||
dependencies = ["numpy>=1.20.0", "typeguard>=2.13.3", "typing_extensions>=3.7.4.1"]
|
dependencies = ["numpy>=1.20.0", "typeguard>=2.13.3", "typing_extensions>=3.7.4.1"]
|
||||||
entry_points = {pytest11 = ["jaxtyping = jaxtyping.pytest_plugin"]}
|
entry-points = {pytest11 = {jaxtyping = "jaxtyping.pytest_plugin"}}
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling"]
|
requires = ["hatchling"]
|
||||||
|
|||||||
Reference in New Issue
Block a user