diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-12-13 14:14:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-13 14:14:49 -0700 |
commit | 3fe2d9d2627fc0f84aeed293ff8afa7c1f08d899 (patch) | |
tree | 2ea27fe06a19c39e8d7a5fe2f87cb7e05363247d /tools/refguide_check.py | |
parent | 7d7e446fcbeeff70d905bde2eb0264a797488280 (diff) | |
parent | eff302e5e8678fa17fb3d8156d49eb585b0876d9 (diff) | |
download | numpy-3fe2d9d2627fc0f84aeed293ff8afa7c1f08d899.tar.gz |
Merge branch 'master' into fix-issue-10244
Diffstat (limited to 'tools/refguide_check.py')
-rw-r--r-- | tools/refguide_check.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/refguide_check.py b/tools/refguide_check.py index b3891c5cb..138e0ece7 100644 --- a/tools/refguide_check.py +++ b/tools/refguide_check.py @@ -71,7 +71,6 @@ BASE_MODULE = "numpy" PUBLIC_SUBMODULES = [ 'core', - 'doc.structured_arrays', 'f2py', 'linalg', 'lib', @@ -122,6 +121,15 @@ RST_SKIPLIST = [ 'c-info.python-as-glue.rst', 'f2py.getting-started.rst', 'arrays.nditer.cython.rst', + # See PR 17222, these should be fixed + 'basics.broadcasting.rst', + 'basics.byteswapping.rst', + 'basics.creation.rst', + 'basics.dispatch.rst', + 'basics.indexing.rst', + 'basics.subclassing.rst', + 'basics.types.rst', + 'misc.rst', ] # these names are not required to be present in ALL despite being in @@ -260,7 +268,7 @@ def get_all_dict(module): except ValueError: pass if not all_dict: - # Must be a pure documentation module like doc.structured_arrays + # Must be a pure documentation module all_dict.append('__doc__') # Modules are almost always private; real submodules need a separate @@ -388,8 +396,8 @@ def check_items(all_dict, names, deprecated, others, module_name, dots=True): output += "Objects in refguide: %i\n\n" % num_ref only_all, only_ref, missing = compare(all_dict, others, names, module_name) - dep_in_ref = set(only_ref).intersection(deprecated) - only_ref = set(only_ref).difference(deprecated) + dep_in_ref = only_ref.intersection(deprecated) + only_ref = only_ref.difference(deprecated) if len(dep_in_ref) > 0: output += "Deprecated objects in refguide::\n\n" |