Skip to content

Commit 13136e8

Browse files
Carreauencukou
authored andcommitted
bpo-36896: Clarify that some types constructors are unstable (GH-13271)
1 parent 1e375c6 commit 13136e8

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/types.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ the types that arise only incidentally during processing such as the
9898
Typical use of these names is for :func:`isinstance` or
9999
:func:`issubclass` checks.
100100

101+
102+
If you instantiate any of these types, note that signatures may vary between Python versions.
103+
101104
Standard names are defined for the following types:
102105

103106
.. data:: FunctionType
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Clarify that some types have unstable constructor signature between Python
2+
versions.

0 commit comments

Comments
 (0)