@@ -199,7 +199,7 @@ def _determine_param_details(self, name: str) -> Tuple[Any, Any]:
199199 if param_signature is not None :
200200 if param_signature .default is not empty :
201201 default = param_signature .default
202- kind = param_signature .kind
202+ kind = param_signature .kind # type: ignore[assignment]
203203
204204 return default , kind
205205
@@ -213,10 +213,10 @@ def _determine_param_annotation(self, name: str, directive_type: Optional[str])
213213
214214 parsed_param_type = self ._parsed_values .param_types .get (name )
215215 if parsed_param_type is not None :
216- annotation = parsed_param_type
216+ annotation = parsed_param_type # type: ignore[assignment]
217217
218218 if directive_type is not None :
219- annotation = directive_type
219+ annotation = directive_type # type: ignore[assignment]
220220
221221 if directive_type is not None and parsed_param_type is not None :
222222 self .error (f"Duplicate parameter information for '{ name } '" )
@@ -293,7 +293,7 @@ def _read_attribute(self, lines: List[str], start_index: int) -> int:
293293
294294 parsed_attribute_type = self ._parsed_values .attribute_types .get (name )
295295 if parsed_attribute_type is not None :
296- annotation = parsed_attribute_type
296+ annotation = parsed_attribute_type # type: ignore[assignment]
297297
298298 context_attribute_annotation = self ._typed_context .attributes [name ].get ("annotation" )
299299 if context_attribute_annotation is not None :
@@ -388,7 +388,7 @@ def _read_return(self, lines: List[str], start_index: int) -> int:
388388 if self ._typed_context .signature is not None and self ._typed_context .signature .return_annotation is not empty :
389389 annotation = self ._typed_context .signature .return_annotation
390390 elif self ._parsed_values .return_type is not None :
391- annotation = self ._parsed_values .return_type
391+ annotation = self ._parsed_values .return_type # type: ignore[assignment]
392392 else :
393393 annotation = self ._typed_context .annotation
394394
0 commit comments