Skip to content

Commit e1cc836

Browse files
committed
remove outdated deprecations
1 parent 9ed8c70 commit e1cc836

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

pytensor/scalar/basic.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4449,26 +4449,3 @@ def handle_composite(node, mapping):
44494449

44504450

44514451
Compositef32.special[Composite] = handle_composite
4452-
4453-
4454-
DEPRECATED_NAMES = [
4455-
("Inv", "`Inv` is deprecated; use `Reciprocal` instead.", Reciprocal),
4456-
("inv", "`inv` is deprecated; use `reciprocal` instead.", reciprocal),
4457-
("Scalar", "`Scalar` is deprecated; use `ScalarType` instead.", ScalarType),
4458-
]
4459-
4460-
4461-
def __getattr__(name):
4462-
"""Intercept module-level attribute access of deprecated symbols.
4463-
4464-
Adapted from https://stackoverflow.com/a/55139609/3006474.
4465-
4466-
"""
4467-
from warnings import warn
4468-
4469-
for old_name, msg, old_object in DEPRECATED_NAMES:
4470-
if name == old_name:
4471-
warn(msg, DeprecationWarning, stacklevel=2)
4472-
return old_object
4473-
4474-
raise AttributeError(f"module {__name__} has no attribute {name}")

0 commit comments

Comments
 (0)