File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
fluent.runtime/fluent/runtime Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def lookup_reference(ref, env):
194194 return FluentNoneResolver (ref_id )
195195
196196
197- class VariableReference (FTL .VariableReference ):
197+ class VariableReference (FTL .VariableReference , BaseResolver ):
198198 def __call__ (self , env ):
199199 name = self .id .name
200200 try :
@@ -205,10 +205,7 @@ def __call__(self, env):
205205 FluentReferenceError ("Unknown external: {0}" .format (name )))
206206 return FluentNoneResolver (name )
207207
208- if isinstance (arg_val ,
209- (int , float , Decimal ,
210- date , datetime ,
211- text_type )):
208+ if isinstance (arg_val , (FluentType , text_type )):
212209 return arg_val
213210 env .errors .append (TypeError ("Unsupported external type: {0}, {1}"
214211 .format (name , type (arg_val ))))
You can’t perform that action at this time.
0 commit comments