@@ -38,7 +38,7 @@ def inspect_static_attributes(
3838 class_type : Type ,
3939 root_module_name : str ,
4040 domain_relations : List [UmlRelation ]
41- ) -> List [ UmlAttribute ] :
41+ ):
4242 # inspect_domain_definition(class_type)
4343 type_annotations = getattr (class_type , '__annotations__' , None )
4444 if type_annotations is not None :
@@ -75,7 +75,6 @@ def inspect_static_attributes(
7575 uml_attr = UmlAttribute (attr_name , attr_type , static = True )
7676 definition_attrs .append (uml_attr )
7777
78- return definition_attrs
7978
8079def inspect_methods (
8180 definition_methods , class_type ,
@@ -116,14 +115,12 @@ def inspect_class_type(
116115 domain_relations : List [UmlRelation ]
117116):
118117 uml_class = handle_class_type (class_type , class_type_fqn , domain_items_by_fqn )
119- attributes = inspect_static_attributes (
118+ inspect_static_attributes (
120119 class_type_fqn , uml_class .attributes , class_type , root_module_name , domain_relations
121120 )
122- inspect_methods (
123- uml_class .methods , class_type
124- )
121+ inspect_methods (uml_class .methods , class_type )
125122 instance_attributes , compositions = parse_class_constructor (class_type , class_type_fqn , root_module_name )
126- attributes .extend (instance_attributes )
123+ uml_class . attributes .extend (instance_attributes )
127124 domain_relations .extend (compositions .values ())
128125
129126 handle_inheritance_relation (class_type , class_type_fqn , root_module_name , domain_relations )
@@ -136,13 +133,11 @@ def inspect_dataclass_type(
136133 domain_relations : List [UmlRelation ]
137134):
138135 uml_class = handle_class_type (class_type , class_type_fqn , domain_items_by_fqn )
139- attributes = inspect_static_attributes (
136+ inspect_static_attributes (
140137 class_type_fqn , uml_class .attributes , class_type , root_module_name , domain_relations
141138 )
142- inspect_methods (
143- uml_class .methods , class_type
144- )
145- for attribute in attributes :
139+ inspect_methods (uml_class .methods , class_type )
140+ for attribute in uml_class .attributes :
146141 attribute .static = False
147142
148143 handle_inheritance_relation (class_type , class_type_fqn , root_module_name , domain_relations )
0 commit comments