Skip to content

Commit be9420a

Browse files
committed
Drop automodule from deprecated nlinalg/slinalg doc pages
The deprecation pages still carried `.. automodule:: pytensor.tensor.{nlinalg,slinalg} :members:` directives. Each automodule walks the module's `__dir__`, which on the new shims returns every moved name and triggers `__getattr__` per name — emitting a DeprecationWarning per attribute on every doc build, and producing duplicate doc entries that already exist on the new :ref:`libdoc_linalg` page. Drop the automodule blocks; the pages are now pure deprecation notices that point at `pytensor.tensor.linalg`.
1 parent e39e533 commit be9420a

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

doc/library/tensor/nlinalg.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
.. ../../../../pytensor/sandbox/nlinalg.py
2-
31
.. _libdoc_nlinalg:
42

53
===================================================================
6-
:mod:`tensor.nlinalg` -- Linear Algebra Ops Using Numpy
4+
:mod:`tensor.nlinalg` -- Linear Algebra Ops Using Numpy (deprecated)
75
===================================================================
86

97
.. module:: tensor.nlinalg
@@ -13,11 +11,6 @@
1311

1412
.. deprecated:: 2.x
1513
The ``nlinalg`` module is deprecated. Use :mod:`pytensor.tensor.linalg` instead.
16-
All symbols from ``nlinalg`` are available from ``pytensor.tensor.linalg``.
17-
Imports from ``nlinalg`` will be removed in PyTensor 3.0.
18-
19-
API
20-
===
21-
22-
.. automodule:: pytensor.tensor.nlinalg
23-
:members:
14+
All symbols previously exported from ``nlinalg`` are available from
15+
``pytensor.tensor.linalg`` — see :ref:`libdoc_linalg`. Imports from
16+
``nlinalg`` will be removed in PyTensor 3.0.

doc/library/tensor/slinalg.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
.. ../../../../pytensor/sandbox/slinalg.py
2-
31
.. _libdoc_slinalg:
42

53
===================================================================
6-
:mod:`tensor.slinalg` -- Linear Algebra Ops Using Scipy
4+
:mod:`tensor.slinalg` -- Linear Algebra Ops Using Scipy (deprecated)
75
===================================================================
86

97
.. module:: tensor.slinalg
@@ -13,11 +11,6 @@
1311

1412
.. deprecated:: 2.x
1513
The ``slinalg`` module is deprecated. Use :mod:`pytensor.tensor.linalg` instead.
16-
All symbols from ``slinalg`` are available from ``pytensor.tensor.linalg``.
17-
Imports from ``slinalg`` will be removed in PyTensor 3.0.
18-
19-
API
20-
===
21-
22-
.. automodule:: pytensor.tensor.slinalg
23-
:members:
14+
All symbols previously exported from ``slinalg`` are available from
15+
``pytensor.tensor.linalg`` — see :ref:`libdoc_linalg`. Imports from
16+
``slinalg`` will be removed in PyTensor 3.0.

0 commit comments

Comments
 (0)