@@ -454,7 +454,7 @@ def _location_hook(
454454 return None
455455 if isinstance (object_ , list ):
456456 if len (object_ ) == 0 :
457- return [] # type: ignore[return-value]
457+ return []
458458 if "targetUri" in object_ [0 ]:
459459 return [
460460 converter .structure (item , lsp_types .LocationLink )
@@ -476,7 +476,7 @@ def _symbol_hook(
476476 return None
477477 if isinstance (object_ , list ):
478478 if len (object_ ) == 0 :
479- return [] # type: ignore[return-value]
479+ return []
480480 if "location" in object_ [0 ]:
481481 return [
482482 converter .structure (item , lsp_types .SymbolInformation )
@@ -688,7 +688,7 @@ def _symbol_list_hook(
688688 return None
689689 assert isinstance (object_ , list )
690690 if len (object_ ) == 0 :
691- return [] # type: ignore[return-value]
691+ return []
692692 if "location" in object_ [0 ]:
693693 return [
694694 converter .structure (item , lsp_types .SymbolInformation )
@@ -1214,7 +1214,7 @@ def _with_custom_unstructure(cls: type) -> Any:
12141214 rename = _to_camel_case (a .name ),
12151215 omit_if_default = _omit (cls , a .name ),
12161216 )
1217- for a in attrs .fields (cls ) # type: ignore
1217+ for a in attrs .fields (cls )
12181218 }
12191219 return cattrs .gen .make_dict_unstructure_fn (cls , converter , ** attributes )
12201220
@@ -1224,7 +1224,7 @@ def _with_custom_structure(cls: type) -> Any:
12241224 rename = _to_camel_case (a .name ),
12251225 omit_if_default = _omit (cls , a .name ),
12261226 )
1227- for a in attrs .fields (cls ) # type: ignore
1227+ for a in attrs .fields (cls )
12281228 }
12291229 return cattrs .gen .make_dict_structure_fn (cls , converter , ** attributes )
12301230
0 commit comments