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):
194
194
return FluentNoneResolver (ref_id )
195
195
196
196
197
- class VariableReference (FTL .VariableReference ):
197
+ class VariableReference (FTL .VariableReference , BaseResolver ):
198
198
def __call__ (self , env ):
199
199
name = self .id .name
200
200
try :
@@ -205,10 +205,7 @@ def __call__(self, env):
205
205
FluentReferenceError ("Unknown external: {0}" .format (name )))
206
206
return FluentNoneResolver (name )
207
207
208
- if isinstance (arg_val ,
209
- (int , float , Decimal ,
210
- date , datetime ,
211
- text_type )):
208
+ if isinstance (arg_val , (FluentType , text_type )):
212
209
return arg_val
213
210
env .errors .append (TypeError ("Unsupported external type: {0}, {1}"
214
211
.format (name , type (arg_val ))))
You can’t perform that action at this time.
0 commit comments