@@ -111,7 +111,7 @@ def _get_extended_namespace() -> Dict[str, Any]:
111111 return result
112112
113113
114- def _resolve_type (t : type ) -> type :
114+ def resolve_declared_type (t : type ) -> type :
115115 """Resolve a type through registered resolvers, returning the unwrapped type."""
116116 for resolver in _type_resolvers :
117117 resolved = resolver (t )
@@ -502,7 +502,7 @@ def _resolve_lazy_target(target: Union[Callable, type]) -> Union[Callable, type]
502502 """Resolve a proxy type through the registered type authority."""
503503 if not inspect .isclass (target ):
504504 return target
505- return _resolve_type (target )
505+ return resolve_declared_type (target )
506506
507507 @staticmethod
508508 def _parse_docstring (docstring : str ) -> DocstringInfo :
@@ -1045,7 +1045,7 @@ def _analyze_dataclass(dataclass_type: type) -> Dict[str, ParameterInfo]:
10451045 type_hints = resolved_class_annotations (dataclass_type )
10461046 parameters = {}
10471047 for field in dataclasses .fields (dataclass_type ):
1048- if field . name . startswith ( CONSTANTS . DUNDER_PREFIX ) and field .name . endswith ( CONSTANTS . DUNDER_SUFFIX ) :
1048+ if not field .init :
10491049 continue
10501050 param_type = type_hints [field .name ]
10511051 if field .default is not dataclasses .MISSING :
@@ -1286,7 +1286,7 @@ def _extract_field_type_docs(dataclass_type: type) -> Dict[str, str]:
12861286 # If the field type is a dataclass, extract its docstring as field documentation
12871287 if dataclasses .is_dataclass (field_type ):
12881288 # ENHANCEMENT: Resolve lazy dataclasses to their base classes for documentation
1289- resolved_field_type = _resolve_type (field_type )
1289+ resolved_field_type = resolve_declared_type (field_type )
12901290
12911291 docstring_info = DocstringExtractor .extract (resolved_field_type )
12921292 if docstring_info .summary :
@@ -1373,7 +1373,7 @@ def extract_field_documentation(dataclass_type: type, field_name: str) -> Option
13731373
13741374 # ENHANCEMENT: Resolve lazy dataclasses to their base classes
13751375 # Frameworks can register explicit proxy-to-public type resolvers.
1376- resolved_type = _resolve_type (dataclass_type )
1376+ resolved_type = resolve_declared_type (dataclass_type )
13771377
13781378 # Check cache first for performance
13791379 cache_key = (resolved_type .__name__ , resolved_type .__module__ )
0 commit comments