chiark / gitweb /
documentation/python: ignore __next_in_mro__ under Py3.6.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 11 May 2020 11:05:57 +0000 (13:05 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 11 May 2020 11:05:57 +0000 (13:05 +0200)
documentation/python.py

index d448bcea48b2fe7e02efa73960df2cbd09af7ec0..9faf23461819f10824432ee229361f16e74731b0 100755 (executable)
@@ -414,6 +414,9 @@ def crawl_class(state: State, path: List[str], class_):
             # instance checks" (ugh), object.__base__ == Generic is also not
             # enough because it fails for typing.Iterator.__base__.
             if sys.version_info < (3, 7) and name == '_gorg' and type(object) == typing.GenericMeta: continue
+            # __next_in_mro__ is an internal typing thing in 3.6, ignore as
+            # well
+            if sys.version_info < (3, 7) and name == '__next_in_mro__': continue
             if is_underscored_and_undocumented(state, type_, subpath, object.__doc__): continue
 
             crawl_class(state, subpath, object)