mirror of
https://github.com/wassname/jaxtyping.git
synced 2026-09-10 12:14:04 +08:00
Fixes for g3
This commit is contained in:
@@ -187,9 +187,11 @@ elif has_jax:
|
||||
|
||||
# Conveniences
|
||||
if typing.TYPE_CHECKING:
|
||||
from jax.random import PRNGKeyArray as PRNGKeyArray
|
||||
|
||||
from ._indirection import Scalar as Scalar, ScalarLike as ScalarLike
|
||||
from ._indirection import (
|
||||
PRNGKeyArray as PRNGKeyArray,
|
||||
Scalar as Scalar,
|
||||
ScalarLike as ScalarLike,
|
||||
)
|
||||
elif has_jax:
|
||||
from ._array_types import Scalar, ScalarLike # noqa: F401
|
||||
|
||||
|
||||
@@ -48,5 +48,8 @@ from typing import (
|
||||
Annotated as UInt64, # noqa: F401
|
||||
)
|
||||
|
||||
from jax import Array as Scalar # noqa: F401
|
||||
from jax import (
|
||||
Array as PRNGKeyArray, # noqa: F401
|
||||
Array as Scalar, # noqa: F401
|
||||
)
|
||||
from jax.typing import ArrayLike as ScalarLike # noqa: F401
|
||||
|
||||
@@ -29,7 +29,7 @@ import pytest
|
||||
import jaxtyping
|
||||
|
||||
|
||||
_here = pathlib.Path(__file__).resolve().parent
|
||||
_here = pathlib.Path(__file__).parent
|
||||
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user