Factor-out common code with a new macro
diff --git a/Doc/c-api/set.rst b/Doc/c-api/set.rst
index 2ed93e9..0aa6bce 100644
--- a/Doc/c-api/set.rst
+++ b/Doc/c-api/set.rst
@@ -52,6 +52,12 @@
 the constructor functions work with any iterable Python object.
 
 
+.. cfunction:: int PySet_Check(PyObject *p)
+
+   Return true if *p* is a :class:`set` object or an instance of a subtype.
+
+   .. versionadded:: 2.6
+
 .. cfunction:: int PyAnySet_Check(PyObject *p)
 
    Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or an