File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,19 @@ def process_doc(self, docstrings):
6666 yield ""
6767
6868 def get_object_members (self , want_all ):
69- children = ((child .name , child ) for child in self .object .children )
69+ children = (
70+ autodoc .ObjectMember (child .name , child ) for child in self .object .children
71+ )
7072
7173 if not want_all :
7274 if not self .options .members :
7375 return False , []
7476
75- children = (child for child in children if child [0 ] in self .options .members )
77+ children = (
78+ child for child in children if child .__name__ in self .options .members
79+ )
7680 elif not self .options .inherited_members :
77- children = (child for child in children if not child [ 1 ] .inherited )
81+ children = (child for child in children if not child . object .inherited )
7882
7983 return False , children
8084
Original file line number Diff line number Diff line change 1+ Address get_object_members() incompatibility with Sphinx v8
You can’t perform that action at this time.
0 commit comments