@@ -279,3 +279,53 @@ def handle_item(fieldarg, content):
279279# TODO add an RST epilogue defining the version numbers of the Python
280280# and C APIs. Should be simple to do the Python version. Getting C
281281# will probably mean parsing the doxygen XML.
282+
283+ nitpicky = True
284+ nitpick_ignore = [
285+ ("c:type" , "int32_t" ),
286+ ("c:type" , "uint32_t" ),
287+ ("c:type" , "bool" ),
288+ # TODO these have been triaged here to make the docs compile, but we should
289+ # sort them out properly. https://github.com/tskit-dev/tskit/issues/336
290+ ("py:class" , "a" ),
291+ ("py:class" , "ndarray" ),
292+ ("py:class" , "numpy array" ),
293+ ("py:class" , "numpy.ndarray" ),
294+ ("py:class" , "numpy.array" ),
295+ ("py:class" , "array-like" ),
296+ ("py:class" , "np.uint32" ),
297+ ("py:class" , "np.float64" ),
298+ ("py:class" , "np.int32" ),
299+ ("py:class" , "np.int8" ),
300+ ("py:class" , "dtype=np.uint32" ),
301+ ("py:class" , "dtype=np.uint32." ),
302+ ("py:class" , "dtype=np.int32" ),
303+ ("py:class" , "dtype=np.int8" ),
304+ ("py:class" , "dtype=np.float64" ),
305+ ("py:class" , "dtype=np.int64" ),
306+ ("py:class" , "iter" ),
307+ ("py:class" , "iterator" ),
308+ ("py:class" , "map" ),
309+ ("py:class" , "array" ),
310+ ("py:class" , "array_like" ),
311+ ("py:class" , "File" ),
312+ ("py:class" , "callable" ),
313+ ("py:class" , "stream" ),
314+ ("py:class" , "string" ),
315+ ("py:class" , "" ),
316+ ("py:class" , "Provenance" ),
317+ ("py:class" , "ProvenanceValidationError" ),
318+ ("py:class" , "function" ),
319+ ("py:class" , "Table" ),
320+ ("py:const" , "tskit.FORWARD" ),
321+ ("py:const" , "tskit.REVERSE" ),
322+ ("py:const" , "NULL" ),
323+ ("py:attr" , "NULL" ),
324+ ("py:func" , "numpy.round" ),
325+ ("py:func" , "numpy.nonzero" ),
326+ ("py:func" , "pack_bytes" ),
327+ ("py:func" , "unpack_bytes" ),
328+ ("py:func" , "parse_individuals" ),
329+ ("py:func" , "parse_populations" ),
330+ ("py:meth" , "Tree.get_num_tracked_samples" ),
331+ ]
0 commit comments