From: Vladimír Vondruš Date: Mon, 11 May 2020 11:05:57 +0000 (+0200) Subject: documentation/python: ignore __next_in_mro__ under Py3.6. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=b824ad5c5cdf5a6928bb083aa0a7c9ec1bc555c8;p=blog.git documentation/python: ignore __next_in_mro__ under Py3.6. --- 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)