From b824ad5c5cdf5a6928bb083aa0a7c9ec1bc555c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 11 May 2020 13:05:57 +0200 Subject: [PATCH] documentation/python: ignore __next_in_mro__ under Py3.6. --- documentation/python.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/documentation/python.py b/documentation/python.py index d448bcea..9faf2346 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -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) -- 2.30.2