@@ -37,9 +37,9 @@ def _type_shortcut(
3737 return name_or_instance # type: ignore[return-value]
3838
3939 if not (type or kwargs ):
40- return cls .get_dsl_class ("builtin" )(name_or_instance ) # type: ignore
40+ return cls .get_dsl_class ("builtin" )(name_or_instance ) # type: ignore[no-any-return, attr-defined]
4141
42- return cls .get_dsl_class (type , "custom" )( # type: ignore
42+ return cls .get_dsl_class (type , "custom" )( # type: ignore[no-any-return, attr-defined]
4343 name_or_instance , type or "custom" , ** kwargs
4444 )
4545
@@ -54,13 +54,13 @@ def __init__(self, filter_name: str, builtin_type: str = "custom", **kwargs: Any
5454
5555 def to_dict (self ) -> Dict [str , Any ]:
5656 # only name to present in lists
57- return self ._name # type: ignore
57+ return self ._name # type: ignore[return-value]
5858
5959 def get_definition (self ) -> Dict [str , Any ]:
60- d = super ().to_dict () # type: ignore
60+ d = super ().to_dict () # type: ignore[misc]
6161 d = d .pop (self .name )
6262 d ["type" ] = self ._builtin_type
63- return d # type: ignore
63+ return d # type: ignore[no-any-return]
6464
6565
6666class CustomAnalysisDefinition (CustomAnalysis ):
@@ -111,7 +111,7 @@ def __init__(self, name: str):
111111
112112 def to_dict (self ) -> Dict [str , Any ]:
113113 # only name to present in lists
114- return self ._name # type: ignore
114+ return self ._name # type: ignore[return-value]
115115
116116
117117class Analyzer (AnalysisBase , DslBase ):
0 commit comments