@@ -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 :
@@ -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,9 +4132,8 @@ 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 :
41394138 return _tp .from_dict (dct , validate = validate )
41404139 except jsonschema .ValidationError :
0 commit comments