Skip to content

Commit 8be1cfd

Browse files
Deprecate and raise AttributeError for MaxAndArgmax
1 parent 25af747 commit 8be1cfd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pytensor/tensor/math.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@
108108

109109

110110
def __getattr__(name):
111-
if name == "MaxAndArgmax":
112-
raise AttributeError(
113-
"The class `MaxAndArgmax` has been deprecated. "
114-
"Call `Max` and `Argmax` separately as an alternative."
115-
)
111+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
116112

117113

118114
def _get_atol_rtol(a, b):

0 commit comments

Comments
 (0)