Skip to content

Commit fe61644

Browse files
Remove old warning.
1 parent 1161111 commit fe61644

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

jaxtyping/__init__.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import functools as ft
2121
import importlib.metadata
2222
import typing
23-
import warnings
2423
from typing import TypeAlias, Union
2524

2625
from ._array_types import (
@@ -218,20 +217,4 @@ def __getattr__(item):
218217
raise AttributeError(f"module jaxtyping has no attribute {item!r}")
219218

220219

221-
check_equinox_version = True # easy-to-replace line with copybara
222-
if check_equinox_version:
223-
try:
224-
eqx_version = importlib.metadata.version("equinox")
225-
except importlib.metadata.PackageNotFoundError:
226-
pass
227-
else:
228-
major, minor, patch = eqx_version.split(".")
229-
equinox_version = (int(major), int(minor), int(patch))
230-
if equinox_version < (0, 11, 0):
231-
warnings.warn(
232-
"jaxtyping version >=0.2.23 should be used with Equinox version "
233-
">=0.11.1"
234-
)
235-
236-
237220
__version__ = importlib.metadata.version("jaxtyping")

0 commit comments

Comments
 (0)