Skip to content

Commit dc0295c

Browse files
gh-145299: Remove misplaced __cached__ deprecation notice
The __cached__ deprecation notice was under __file__ documentation. Since __cached__ was removed in 3.15, the deprecation notice is no longer relevant and has been removed.
1 parent a1ec746 commit dc0295c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Doc/reference/datamodel.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,15 +1084,6 @@ this approach.
10841084
:ref:`import system <importsystem>` may opt to leave it unset if it
10851085
has no semantic meaning (for example, a module loaded from a database).
10861086

1087-
.. deprecated-removed:: 3.13 3.15
1088-
Setting ``__cached__`` on a module while failing to set
1089-
:attr:`!__spec__.cached` is deprecated. In Python 3.15,
1090-
``__cached__`` will cease to be set or taken into consideration by
1091-
the import system or standard library.
1092-
1093-
.. versionchanged:: 3.15
1094-
``__cached__`` is no longer set.
1095-
10961087
Other writable attributes on module objects
10971088
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10981089

0 commit comments

Comments
 (0)