Skip to content

Commit b0485f9

Browse files
committed
Add a migration note for isNewType
1 parent feeee57 commit b0485f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CHANGES.rst

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Incompatible changes
6969
unless forced with ``force=True``.
7070
Patch by Adam Turner.
7171
* #12646: Remove :py:func:`!sphinx.util.inspect.isNewType`.
72+
Use ``isinstance(obj, typing.NewType)`` instead on Python 3.10 and newer.
7273
Patch by Adam Turner.
7374
* Remove the long-deprecated (since Sphinx 2) alias
7475
to :py:class:`!VersionChange` in

0 commit comments

Comments
 (0)