File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2525from .types import get_types
2626from .top_level_docs import get_top_level_docs
2727from .class_attribute_docs import get_class_attribute_docs
28- from ..utils import render_value , render_value_list
28+ from ..utils import render_value_list
2929
3030
3131class Extractor :
@@ -170,7 +170,6 @@ def extract_component(self, comp):
170170 can be either a Hyperdiv exported function, like
171171 `hd.global_state` or `hd.cache`, or a component class.
172172 """
173-
174173 # If already extracted, do nothing.
175174 if comp .__name__ in self .output ["components" ]:
176175 return
@@ -204,10 +203,12 @@ def extract_component(self, comp):
204203 is_mixin = not issubclass (comp , Component )
205204
206205 # Collect info for all the class attributes
207- for name , attr in vars (comp ).items ():
206+ for name in vars (comp ).keys ():
208207 if name .startswith ("_" ):
209208 continue
210209
210+ attr = getattr (comp , name )
211+
211212 # The class attribute is a prop
212213 if isinstance (attr , Prop ):
213214 prop_doc = self .get_prop_doc (comp , attr .name )
You can’t perform that action at this time.
0 commit comments