[issue45391] 3.10 objects.inv classifies UnionType as data

gaborjbernat report at bugs.python.org
Wed Oct 6 20:54:33 EDT 2021


gaborjbernat <gaborjbernat at gmail.com> added the comment:

Here's a gist where I managed to detect roughly 140 errors (some looks like potential false positive, so likely the real number is more around 100):

https://gist.github.com/gaborbernat/5360badab2125b3f81a3bcbce0e94c2a#file-found_issues-output-L1

This does make a few concessions:
- ignores the difference between function and method; way to many functions are documented as methods and vice-versa to disallow this (or would be a major overhaul)
- https://docs.python.org/3/c-api/structures.html?highlight=meth_class#METH_VARARGS is documented under python domain but IMHO should be C
- https://docs.python.org/3/c-api/typeobj.html?highlight=py_tpflags_base_exc_subclass#c.PyTypeObject.tp_flags is documented under python domain but IMHO should be C
- does not clarifies where to type classes goes - they seem to be a weird in-between a method and a class, satisfying neither - see related discussion on topic from https://bugs.python.org/issue41973

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45391>
_______________________________________


More information about the Python-bugs-list mailing list