We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe7b011 commit ba6e886Copy full SHA for ba6e886
fluent.runtime/fluent/runtime/resolver.py
@@ -194,7 +194,7 @@ def lookup_reference(ref, env):
194
return FluentNoneResolver(ref_id)
195
196
197
-class VariableReference(FTL.VariableReference):
+class VariableReference(FTL.VariableReference, BaseResolver):
198
def __call__(self, env):
199
name = self.id.name
200
try:
@@ -205,10 +205,7 @@ def __call__(self, env):
205
FluentReferenceError("Unknown external: {0}".format(name)))
206
return FluentNoneResolver(name)
207
208
- if isinstance(arg_val,
209
- (int, float, Decimal,
210
- date, datetime,
211
- text_type)):
+ if isinstance(arg_val, (FluentType, text_type)):
212
return arg_val
213
env.errors.append(TypeError("Unsupported external type: {0}, {1}"
214
.format(name, type(arg_val))))
0 commit comments