File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -4449,26 +4449,3 @@ def handle_composite(node, mapping):
44494449
44504450
44514451Compositef32 .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 } " )
You can’t perform that action at this time.
0 commit comments