@@ -455,7 +455,7 @@ def to_dict(self) -> dict[str, str | dict[str, Any]]:
455455 return {"expr" : self .name }
456456 elif self .param_type == "selection" :
457457 nm : Any = self .name
458- return {"param" : nm .to_dict () if hasattr (nm , "to_dict" ) else nm }
458+ return {"param" : nm .to_dict () if hasattr (nm , "to_dict" ) else nm } # ty: ignore
459459 else :
460460 msg = f"Unrecognized parameter type: { self .param_type } "
461461 raise ValueError (msg )
@@ -648,7 +648,7 @@ def _predicate_to_condition(
648648 elif _is_test_predicate (predicate ):
649649 condition = {"test" : predicate }
650650 elif isinstance (predicate , dict ):
651- condition = predicate
651+ condition = predicate # ty: ignore
652652 elif isinstance (predicate , _expr_core .OperatorMixin ):
653653 condition = {"test" : predicate ._to_expr ()}
654654 else :
@@ -937,7 +937,7 @@ def _when_then(
937937 ) -> _ConditionClosed | _Condition :
938938 condition : Any = _deepcopy (self ._condition )
939939 then = _parse_then (statement , kwds )
940- condition .update (then )
940+ condition .update (then ) # ty: ignore
941941 return condition
942942
943943
@@ -2149,15 +2149,15 @@ def to_dict( # noqa: C901
21492149 )
21502150 raise ValueError (msg )
21512151 else :
2152- return _compile_with_vegafusion (vegalite_spec )
2152+ return _compile_with_vegafusion (vegalite_spec ) # ty: ignore
21532153 elif format == "vega" :
21542154 plugin = vegalite_compilers .get ()
21552155 if plugin is None :
21562156 msg = "No active vega-lite compiler plugin found"
21572157 raise ValueError (msg )
21582158 return plugin (vegalite_spec )
21592159 else :
2160- return vegalite_spec
2160+ return vegalite_spec # ty: ignore
21612161
21622162 def to_json (
21632163 self ,
@@ -2501,7 +2501,7 @@ def repeat(
25012501 repeat_arg : list [str ] | LayerRepeatMapping | RepeatMapping
25022502 if repeat_specified :
25032503 assert isinstance (repeat , list )
2504- repeat_arg = repeat
2504+ repeat_arg = repeat # ty: ignore
25052505 elif layer_specified :
25062506 repeat_arg = core .LayerRepeatMapping (layer = layer , row = row , column = column )
25072507 else :
@@ -2764,7 +2764,7 @@ def transform_aggregate(
27642764 "op" : parsed .get ("aggregate" , Undefined ),
27652765 }
27662766 assert isinstance (aggregate , list )
2767- aggregate .append (core .AggregatedFieldDef (** dct ))
2767+ aggregate .append (core .AggregatedFieldDef (** dct )) # ty: ignore
27682768 return self ._add_transform (
27692769 core .AggregateTransform (aggregate = aggregate , groupby = groupby )
27702770 )
@@ -3097,7 +3097,7 @@ def transform_joinaggregate(
30973097 "op" : parsed .get ("aggregate" , Undefined ),
30983098 }
30993099 assert isinstance (joinaggregate , list )
3100- joinaggregate .append (core .JoinAggregateFieldDef (** dct ))
3100+ joinaggregate .append (core .JoinAggregateFieldDef (** dct )) # ty: ignore
31013101 return self ._add_transform (
31023102 core .JoinAggregateTransform (joinaggregate = joinaggregate , groupby = groupby )
31033103 )
@@ -3785,7 +3785,7 @@ def transform_window(
37853785 parse_types = False ,
37863786 )
37873787 )
3788- w .append (core .WindowFieldDef (** kwds ))
3788+ w .append (core .WindowFieldDef (** kwds )) # ty: ignore
37893789
37903790 return self ._add_transform (
37913791 core .WindowTransform (
@@ -4132,11 +4132,10 @@ def from_dict(
41324132 jsonschema.ValidationError :
41334133 If ``validate`` and ``dct`` does not conform to the schema
41344134 """
4135- _tp : Any
41364135 for tp in TopLevelMixin .__subclasses__ ():
4137- _tp = super () if tp is Chart else tp
4136+ _tp : Any = super () if tp is Chart else tp
41384137 try :
4139- return _tp .from_dict (dct , validate = validate )
4138+ return _tp .from_dict (dct , validate = validate ) # ty: ignore
41404139 except jsonschema .ValidationError :
41414140 pass
41424141
0 commit comments